I have gone through hell installing apache, php and mysql. I finally got it working together, and completed the install wizard, and everything got copied to the database.

But, when I go to http://localhost/testsite, it doesnt fire the index.php automatically. I have to push it from directory listing, and the homepage page shows correctly.. But when I push whatever link on the site (i.e. LOGIN) , it just throws me back to the directory listing again. See this image:
http://img172.imageshack.us/my.php?image=drupalbi2.jpg

What have I done wrong? thx ;)

Comments

novice.drupaler’s picture

Perhaps this is due to a misconfiguration of PHP with apache. If you are trying it at home, you can start with XAMPP form http://www.xampp.org. It is a preconfigured bundle of apache/php/mysql.

For your current setup:

Make sure that the following lines exist in your httpd.conf, and not start with #.

AllowOverride all
DirectoryIndex index.php

Also make sure that the .htaccess file exists in your drupal installation directory.

biosv’s picture

I have a similar problem. There are multiple entries of AllowOverride in httpd.conf. Which entry are you referring to?

1.
<Directory "/opt/lampp/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

2. 
<Directory />
    Options FollowSymLinks
    AllowOverride None
    #XAMPP
    #Order deny,allow
    #Deny from all
</Directory>

3.
<Directory "/opt/lampp/htdocs">
...
    AllowOverride All
...
</Directory>
Don Coyote’s picture

The file structure looks different than mine, but the /htdocs instance as you have it should be enough.

I think that lacking the index.php in DirectoryIndex was what gave me the same problem as the OP.