Jump to content

index.php not loading on localhost


mrherman

Recommended Posts

I've installed Drupal 7.1 on my computer and I'm trying to access it via localhost.  However, the site does not load the "index.php" file.  Instead, I get the list of files and folders in the working directory with the heading "Index of /drupal71" (drupal71 is the temporary site name).

 

The .htaccess file has the following lines, so I'm confused as to why index.php doesn't load automatically.

# Set the default handler.
DirectoryIndex index.php index.html index.htm

 

Any suggestions?

 

 

Link to comment
Share on other sites

Thanks for the reply.  Yeah, the index.php was in the correct folder, but I finally discovered the problem!  In the Apache folder, the "httpd.conf" file did not contain "index.php" in the dir_module (about line number 244):

 

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html index.php (<-- I added)
</IfModule>

 

Thanks again! :D

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.