You may need to manually enable php4
Edit your /etc/sysconfig/apache2 file and look for the
Section. In that section you will want to make sure that php4 or php5 is enabled. because I deal with legacy apps *gag* for some clients, I use php4, as you will see:
Code:
APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime mod_rewrite negotiation setenvif ssl suexec userdir php4"
Once you add php4, restart apache with either of the following commands:
Code:
/etc/init.d/apache2 reload
or
Code:
/etc/init.d/apache2 restart
Also, in /etc/apache2/mime.types .php should be defined as anapplication type it hasn't been already. Make sure the following line is present in the mime.types file.
Code:
application/x-httpd-php phtml pht php
Add any other extensions you might use (e.g., php4, php5, pfoo, or whatever) and after any changes are made to mime.types restart apache.
Now do a hello world script (e.g., echo hello world or do phpinfo) to verify the php processor is working.