Hi,

I am trying to evaluate Drupal. I downloaded version 6.16. Environment: Windows 7, Apache 2.2, MySQL 14.14., PHP 5.3.2.

I installed in a subdirectory ("Drupal") of htdocs of Apache (i.e. the url is expected to be localhost/Drupal/).

I got to the "Drupal installation complete" page, with one Warning:

"mail(): Failed to connect to mailserver at "localhost" ..."

I have no mailserver configured at localhost and I guess this is not the cause for the problem described below:

When I click on "your new site", I get a directory listing ("Index of /Drupal"); url: http://localhost/Drupal/

(url of "Drupal installation complete" page: http://localhost/Drupal/install.php?locale=en&profile=default)

When I click on "index.php", I get a "Welcome" page (url: http://localhost/Drupal/index.php), with the user name I gave for the Administrator. I am not asked to log in.

When clicking any (internal) link there, I get back to the directory listing (http://localhost/Drupal/).

I did the installation a second time, with a new database, after editing settings.php: $base_url = 'http://localhost/Drupal'; (and granting full write permissions to the whole htdocs directory of Apache); with the same result.

Database access works, the database is filled with tables after installation.

PHP does work (otherwise the installation wouldn't have worked; but I also checked otherwise); I checked PHP memory: 128M.

I also restarted Apache and tried again (after both installations).

I could not find a posting with exactly this problem within a reasonable time, or any hint in the documentation (like Troubleshooting FAQ). Could please anyone give me a hint?

Thanks,
Felix

Comments

quardz’s picture

Use PHP 5.2.x.

Anonymous’s picture

Thanks for the hint. However, I seem to have problems with PHP 5.2.13 that may be related to Windows 7. Still trying.

Anonymous’s picture

Got PHP 5.2.13 working now. However, the problem with Drupal remains exactly as described.

Thanks for any other suggestion,
Felix

quardz’s picture

I once had the same problem in my laptop but i forgot how i fixed.
May be try any of this
Check Apache Rewrite module enabled and working
is .htaccess file is in your drupal root directory ?
Wts the Server WAMP or XAMP?

Anonymous’s picture

Forgot to state what browser I use: Firefox 3.6.3

quardz’s picture

is Apache Rewrite module enabled and working. is .htaccess file is in your drupal root directory ?

Anonymous’s picture

.htaccess is there.

As for Apache Rewrite module, I'll have to check how to check. (Not really experienced with Apache, I have to admit.) I'll be back when I have checked.

Anyway, thanks for replying so fast!

Anonymous’s picture

I guess Apache Rewrite mode should be working now: I added "LoadModule rewrite_module modules/mod_rewrite.so" to httpd.conf.

In .htaccess, I added "RewriteBase /Drupal" (as I use a subdirectory).

Restarted server. No change. Re-installed Drupal. No change.

As for "WAMP/XAMP": I use Windows(7) - Apache - MySQL - PHP

Anonymous’s picture

I finally found the problem.

The URL Rewriting by Apache was a very helpful hint. The problem was actually "AllowOverride None" in the httpd.config of Apache. Replacing "None" with "All" did it. ("None" actually means that any .htaccess file is ignored.)

Thanks for your very swift responses,
Felix

quardz’s picture