Jump to content

[SOLVED] Index.php not working [SOLVED]


SirEddie

Recommended Posts

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 :)

Link to comment
https://forums.phpfreaks.com/topic/51434-solved-indexphp-not-working-solved/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.