Sounds like you may not have included one or two things in your httpd.conf
; in a text editor, look for php
. You should find something that looks like this
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
DirectoryIndex index.html index.php
If the index.php
is not there, you want to add it (there needs to be one of those somewhere, it may be added someplace else so look first).
Next, look for
# Uncomment the following line to enable PHP:
Your distribution may have mod_php.conf
located somewhere other than in /etc/httpd
, you may have to look for it.
If you have changed either of those, be sure to restart httpd
Hope this helps some.