D6 beta-1 only properly installs in root directory on XAMPP but not in a subdirectory

fschaap - October 7, 2007 - 08:22
Project:Drupal
Version:6.0-beta1
Component:install system
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have posted a question about this here: http://drupal.org/drupal-6.0-beta1#comment-277838

I have only tested Drupal 6 beta-1 on XAMPP on Windows, so I can't speak for other environments, but it seems that beta-1 will not properly install in a subdirectory, only in the root directory of XAMPP.

Here's a copy of the comment linked above:

I just made a fresh XAMPP install (1.6.3a on Windows).

Created 2 DBs with PHPmyadmin (d5 and d6) and copied Drupal 5.2 in directory "localhost/d5" and Drupal 6 in "localhost/d6".

I ran the install script for Drupal 5, everything went well, Drupal 5 installed and functioned correctly.

I ran the install script for Drupal 6, it installed fine, then showed me the "Welcome to your new Drupal website" page... and then, every link I click on that page redirects me back to the root of localhost.

If I hover over the link, it shows up correctly as, for example, "http://localhost/d6/admin" but if I click that link, it just sends me to "http://localhost/xampp"

I deleted the DB, deleted all files in /d6 and redid the whole install. Same problem.

I went into sites/default/settings.php and changed the base_url, same problem.

I installed Drupal 6 beta-1 in the root... problem solved.

#1

catch - October 19, 2007 - 13:56
Category:bug report» support request
Status:active» active (needs more info)

Did you modify the RewriteBase in .htaccess ?

#2

fschaap - October 19, 2007 - 14:22
Status:active (needs more info)» closed

This turns out to be an Apache (or rather XAMPP) issue. You need to enable mod_rewrite in httpd.conf since it is not enabled by default. This solution was suggested in the forum, in this comment: http://drupal.org/drupal-6.0-beta1#comment-280463 . I haven't been able to respond to it because this thread is now closed.

Also, interestingly, Drupal 6 (beta-1 and beta-2) indicate that support for clean URLs is detected, even though mod_rewrite is not enabled in httpd.conf.

 
 

Drupal is a registered trademark of Dries Buytaert.