Why Isn't Index.php Served Automatically on My server?


Recommended Posts

So i have a directory, (phpmyadmin if you must know)

when i go to mysite/phpmyadmin/

it shows me index of / Whatever.

and shows me everything there. why isn't the file served?

Link to comment
Share on other sites

You've got to set it as the default page for the site, I'm assuming you're using Apache?

http://httpd.apache.org/docs/2.0/mod/mod_d...#directoryindex

(Put "DirectoryIndex index.php" in the correct place in the site config, assuming your Apache's all set up for php)

As for the directory listing you might want to turn it off:

http://httpd.apache.org/docs/1.3/misc/FAQ-E.html#indexes

Options -Indexes

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.