Fedora 7 & CentOS 5 PHP not working
I have searched through Google, Apache & PHP websites and the distro support forums for an answer. So far I have either missed the obvious or I have not asked the right question.
I have installed CentOS 5 (twice) and Fedora 7 (once to confirm problem). Using the Anaconda installer, I configured Apache to run PHP. For certainty, I have checked off all the modules for both mysql and php.
The http.conf file looks fine. It loads an included php.conf located in the /etc/http/conf.d directory. That file includes the line "LoadModule php5_module modules/libphp5.so". The AddType and AddHandler lines are also loaded.
I have opened up the firewall for port 80. I have disabled SELinux.
I have written a quick test file (index.html) that requests phpinfo() as follows:
PHP Test begins
<?php phpinfo(); ?>
PHP Test ends
The browser only returns the "PHP Test begins" and "PHP Test ends" text strings. Checking the page source reveals that Apache has passed the source directly to the browser without interpretting the phpinfo request.
I am stumped, any theories on what the problem could be?