In your httpd.conf
file do you have something similar to this:
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
DirectoryIndex index.html index.php
# Uncomment the following line to enable PHP:
Also, in your php.ini
file (which is usually in /etc/httpd
; Enable the PHP scripting language engine under Apache.
engine = On
Those, at least, must be there.
Also, make sure that you've actually stopped httpd
. If you're using apachectl
ps -ef | grep hpptd
and there should be zero lines that look like these
root 2215 1 0 Apr06 ? 00:01:34 /usr/sbin/httpd -k start
apache 2571 2215 0 Apr06 ? 00:00:04 /usr/sbin/httpd -k start
apache 16667 2215 0 May19 ? 00:00:00 /usr/sbin/httpd -k start
If there are, you'll need to kill them by hand (or reboot the thing, but that's cheating):
kill -9 2215 2275 16667
Somethings a restart will leave corpses running (not often, but it's been known to happen) and you need to make sure you're doing a clean start (no httpd
Hope this helps some.