Keywords: installing PHP4, missing libphp4.so, can\'t compile php4
My Instructions for installing PHP 4.0 on Red Hat Linux systems
Here\'s my version of INSTALL for building a dynamic Apache module (DSO)
for Apache 1.3.x with MySQL support.
- If /usr/lib/libmysqlclient.so... then add /usr/lib -> /etc/ld.so.conf.
- Run ldconfig
- Run httpd -l. You should see
Compiled-in modules:
http_core.c
mod_so.c
- Delete any php-4*.gz files or php-4 src-directories. Redownload the source file.
- tar -xvzf php-4.0.4pl1.tar.gz
- cd php-4.0.4pl1
- ./configure --with-mysql --with-apxs=/etc/httpd/bin/apxs
- make
- make install
- cp ./php.ini-dist /usr/lib/php.ini
- Add the following to the appropiate places in /etc/httpd/conf/httpd.conf:
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php3-source .phps
</IfModule>
- Uncomment any mention of php3
- Restart your server: /etc/rc.d/init.d/httpd restart
- Put in a test page(test.php) in your document root containing <?phpinfo()?>