Upgrading from php3 to php4?

NaughtyusMaximus

Diamond Member
Oct 9, 1999
3,220
0
0
I'm running Mandrake Corp Server, which has php3 running right now. I've gotten php4 installed, but apache doesn't seem to want to use it (if I create a htm file with <?php phpinfo(); ?> , it shows as running php v 3).

I've used the following config options:

./configure --with-mysql --with-apxs=(apache dir)/bin/apxs
 

freebsddude

Senior member
Jan 31, 2002
298
0
0
Do you have the following lines in your httpd.conf file (I am assuming that you are installing mod_php4):

LoadModule php4_module libexec/apache/libphp4.so
AddModule mod_php4.c
DirectoryIndex index.php index.html
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps