SirEddie Posted May 15, 2007 Share Posted May 15, 2007 Hi all, I have Apache with PHP. When I have index.php in the folder with everything else, it doesnt view the index.php, it just brings up the list of files and folders in the directory, but when I make it index.html, it works. Is there anyway to make it so it loads index.php like index.html? EDIT:: SOLVED - Found in the httpd.conf that you have to change index.html to index.php Quote Link to comment Share on other sites More sharing options...
ungown_admin Posted May 15, 2007 Share Posted May 15, 2007 I'm having the same problem. I tried changing the DirectoryIndex variable to index.php. It didn't help. The index.php is in a directory called wiki. I created a softlink in my /var/apache2/htdocs directory to it. Any ideas? Quote Link to comment Share on other sites More sharing options...
Joeddox Posted May 16, 2007 Share Posted May 16, 2007 shouldn't you just change it to: DirectoryIndex index.php index.html I thought you were supost to have both...? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted May 17, 2007 Share Posted May 17, 2007 shouldn't you just change it to: DirectoryIndex index.php index.html I thought you were supost to have both...? That depends on your setup. If you have both .html and .php files in your website then you can have both stated. Also ungrouwn_admin make sure have saved your httd.conf and that you have restarted Apache. It is important you restart Apache after you have changed its configuration. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.