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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.