So I installed Apache using the typical commands:
./configure
make
make install
Then I downloaded PHP version 5.5.2 and did the same thing, now from command line I get this output:
PHP 5.5.2 (cli) (built: Aug 22 2013 10:47:20)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
Now I have to tell Apache to use PHP, but I don't have modules/libphp5.so as the manual at http://www.php.net/manual/en/install.unix.apache2.php says. Im using SUSE linux by the way.
Edit: libphp5.so came with the php distribution, but if you add it that way it promts this:
httpd: Syntax error on line 147 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: undefined symbol: core_globals_id
So I solved it, actually it was a bad installation. I did:
make clean
make
make install
and everything worked fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.