Solved

Drupal on Apache 2.2 / MySQL / Windows displays directory listing instead of web page

Posted on 2008-10-27
2
371 Views
Last Modified: 2013-12-13
Hi,

Drupal has installed successfully, and I can get to the home page ok. When I click on any link such as:

http://localhost/drupal-6.6/?q=admin/settings

I get this instead of the web page... Any Ideas why?

Index of /drupal-6.6

    * Parent Directory
    * CHANGELOG.txt
    * COPYRIGHT.txt
    * INSTALL.mysql.txt
    * INSTALL.pgsql.txt
    * INSTALL.txt
    * LICENSE.txt
    * MAINTAINERS.txt
    * UPGRADE.txt
    * cron.php
    * includes/
    * index.php
    * install.php
    * misc/
    * modules/
    * profiles/
    * robots.txt
    * scripts/
    * sites/
    * themes/
    * update.php
    * xmlrpc.php
0
Comment
Question by:BrettskiWork
2 Comments
 
LVL 5

Accepted Solution

by:
stephencolson earned 500 total points
ID: 22818706
This gets back to Apache at the core. The following could be off:
1) Apache is not allowing you to do any overrides in the .htaccess file (Solution: correct this to AllowOverrides all in your apache configuration)
2) Apache does not have mod_rewrite installed or enabled (Solution: check that mod_rewrite is available and turned on)
3) Your server is expecting the .htaccess file to be named something else. Commonly, apache on windows installs might use htaccess.txt instead. (Solution: check your apache config for the AccessFileName directive and rename the .htaccess to that)
0
 
LVL 10

Expert Comment

by:oliverpolden
ID: 22819989
Just use XAMPP and you'll avoid all those issues.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question