Drupal 6 Falsely redirects to cgi-bin

DWizzy - June 4, 2008 - 14:40

Drupal tries to get all its files from /cgi-bin and thus does not find its files.

I am trying to set up a version 6 at a live server, say 'www.fest.org'. Before opening it to the world, I like to set things up on www.fest.org/drupal-6.2. I have modified .htaccess and default.settings.php's Base paths to /drupal-6.2. When I try www.fest.org/drupal-6.2, I get redirected to /cgi-bin/install.php and get a 404 in return. When I surf to /drupal-6.2/install.php?profile=default, I at least get part of the website but without the ?profile=default, I get redirected again.

Disabling .htaccess does not work and I have no other domains available to test at root level.

I am at a loss here, any ideas are welcome!

I have limited access to the webserver, it is an XS4ALL(.nl) Advanced Unix Website running Apache, and php4 for .php files (for php5, files need to have a .php5 extension).

register_globals appears enabled

DWizzy - June 4, 2008 - 14:48

Perhaps unrelated and a next step to bear with:

When at the step drupal-6.2/install.php?profile=default&locale=en, I get:

"The following error must be resolved before you can continue the installation process:

register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings. (Currently using PHP register globals Enabled ('1'))"

.htaccess should disable register_globals by default, should it not?

Register Globals

HotDrupal.com - June 5, 2008 - 14:04

Yes it should, but some (many) providers don't honor PHP settings in the .htaccess file. Often this isn't a choice made on purpose but a effect of how many people choose to implement how PHP runs.

You can try setting it in the sites/default/setting.php file. Look for all the lines which have ini_set in them and add an additional line:

ini_set('register_globals', 0);

If that doesn't work check to see if your provider can disable register globals.

Steve
HotDrupal.com - Drupal Friendly Hosting

 
 

Drupal is a registered trademark of Dries Buytaert.