mrherman Posted January 22, 2012 Share Posted January 22, 2012 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? Quote Link to comment https://forums.phpfreaks.com/topic/255493-indexphp-not-loading-on-localhost/ Share on other sites More sharing options...
kryoxis Posted January 22, 2012 Share Posted January 22, 2012 is your index.php in the correct folder? Quote Link to comment https://forums.phpfreaks.com/topic/255493-indexphp-not-loading-on-localhost/#findComment-1309942 Share on other sites More sharing options...
mrherman Posted January 22, 2012 Author Share Posted January 22, 2012 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! Quote Link to comment https://forums.phpfreaks.com/topic/255493-indexphp-not-loading-on-localhost/#findComment-1309950 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.