I have a RedHat 7 machine with PHP 4.0.4 running just fine, but I want to upgrade it to 4.0.6 to eliminate some of the bugs. Is the procedure for updating any differnet from the procedure for installing new 4.0.6?
gunzip apache_1.3.x.tar.gz
tar xvf apache_1.3.x.tar
gunzip php-x.x.x.tar.gz
tar xvf php-x.x.x.tar
cd apache_1.3.x
./configure --prefix=/www
cd ../php-x.x.x
./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
make
make install
cd ../apache_1.3.x
./configure --activate-module=src/modules/php4/libphp4.a
make
make install
cd ../php-x.x.x
cp php.ini-dist /usr/local/lib/php.ini
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php
Use your normal procedure for restarting the Apache server. (You must stop and restart the server, not just cause the server to reload by use a HUP or USR1 signal.)
I'd rather not have to reinstall Apache if I don't have to.