Hi,
I have following Linux system
Server version: Apache/1.3.22 (Unix) (Red-Hat/Linux)
and tried to install php4.3.2 on it.
after unziping tar files in a directory called /home/nav/
I used this commands
./configure --with-apxs=/usr/sbin/apxs --with-mysql
make
make install
the output of make install was: (I repeated make install)
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PHP SAPI module
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
cp /etc/httpd/conf/httpd.conf.new /etc/httpd/conf/httpd.conf
rm /etc/httpd/conf/httpd.conf.new
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - already installed: 0.9
[PEAR] Console_Getopt - already installed: 1.0
[PEAR] PEAR - already installed: 1.1
[PEAR] DB - already installed: 1.3
[PEAR] HTTP - already installed: 1.2
[PEAR] Mail - already installed: 1.0.1
[PEAR] Net_SMTP - already installed: 1.0
[PEAR] Net_Socket - already installed: 1.0.1
[PEAR] XML_Parser - already installed: 1.0.1
[PEAR] XML_RPC - already installed: 1.0.4
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
program: phpextdist
Then I restartd apache, and it gave me this error
Starting httpd: Syntax error on line 893 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/lib/apache/libphp4.so into server: /etc/httpd/lib/apache/libphp4.so: cannot open shared object file: No such file or directory
Then I commented these two lines in httpd.conf,
so apache could start again.
LoadModule php4_module lib/apache/libphp4.so
AddModule mod_php4.c
So as these two lines are needed for php, I looked around for libphp4.so file, and found it in /etc/httpd/modules/libphp4.so
So I changed php line in httpd.conf as
LoadModule php4_module /etc/httpd/modules/libphp4.so
This time, when I restart apache, it fails again, but does not give any error message!!!
Can anybody help me? I greatly appreciate it. If there is any other information needed, please let me know.
Regards,
Navid