Web Hosting Talk







View Full Version : index.php not loading.


Milo
05-28-2004, 01:42 PM
When one goes to a subdirectory on my page, Apache won't load the index.php file. Instead it loads up a directory listing.

I've checked my httpd.conf file to be sure that it has a php handler. It has these lines:

# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

so that looks good. I've checked permissions and those are good. If I replace the index.php file with index.html, it loads up just fine. What's wrong with my setup?

SPaReK
05-28-2004, 01:58 PM
Make sure index.php is in the list of DirectoryIndex in your httpd.conf file.

Milo
05-28-2004, 02:17 PM
Originally posted by SPaReK
Make sure index.php is in the list of DirectoryIndex in your httpd.conf file.

That was it. Thanks! :)