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).

Comments

DWizzy’s picture

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?

HotDrupal.com’s picture

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

NoLimits’s picture

I have the same problem, did you find a solution vor XS4ALL Advanced Unix.
I hope you will share it

Thanks
NoLimits

lbatteau’s picture

Some intensive googling led me to the answer for everyone struggling with cgi-bin redirects at XS4ALL.

Set $base_url in sites/default/settings.php. Thanks to http://blog.timstoop.nl/2009/01/08/drupal-the-requested-url-cgi-bininsta...

Also necessary for Drupal to work: Add a php.ini file to your cgi-bin directory (not your Drupal root directory!), with

[PHP]
register_globals = Off
NoLimits’s picture

Hi DWizzy,

I am trying to put Drupal 6.6 to an XS4ALL(.nl) Advanced Unix Website, and i have probems to get it work.
Can you give me some help.

Thanks NoLimits

Summit’s picture

Hi,

I have the same problem. All url's have cgi-bin in between.
As above post it is a xs4all hosting thing.
Thanks a lot in advance for answering.

EDIT: This post helped me a lot on the anonymous usersside: http://drupal.org/node/63217, but admin pages are blank...

greetings,
Martijn

tonythijs’s picture

Hi,
I'm also considering xs4all advanced for hosting a Drupal site. Has anyone links to manual pages describing how to install and maintain Drupal on a advanced (unix) website offering from xs4all?

After setting up my next step would be integrating Alfrsco. Any tips in that area are welcome too.

Kind regards,
Tony Thijs

Summit’s picture

Hi Tony,

Don't use the update-status module, and build your own php.ini to have more than the usual MB's to get drupal working. Success!

greetings,
Martijn

tonythijs’s picture

Hi Martijn,
By the way were you succesful in launching Drupal on an xs4all account?
Kind regards,
Tony Thijs

corneverbruggen’s picture

Hi,

my experiences with XS4ALL Advanced Unix Hosting are not so good, especially in combination with Drupal. Although that was half a year ago, and in the meantime they do seem to have updated their servers finally to PHP5, i doubt whether XS4ALL is a good choice. There were lots of problems (e.g. old PHP versions, safe mode enabled, etc) that made it unpossible to run Drupal and some contributed modules that have stricter requirements than Drupal Core.

In combination with very poor Customer Support, this all made me switch my client to another hosting provider. Btw, the hosting packages of XS4ALL are pretty limited as far as i can see: e.g. only 1 MySQL database. There are better, more flexible (and at the same time) cheaper options.

Just my2cts.

tonythijs’s picture

Hi,
Thanks for the warning. Considering what xs4all advertises:
http://www.xs4all.nl/allediensten/website/hosting/specificatiesadvanced.php
it should work

Any suggestions for a different provider?
Kind regards,
Tony Thijs

Summit’s picture

I agree completely, customer support is very poor. I couldn't get info of my logs. I had to get the errormessages from the screen.
It took me more than a month to upload the site on the right spot and have it running. And update_status module is not working because of the low amount of MB.

I would suggest www.dihost.nl thats my favorite hoster!

greetings,
Martijn

corneverbruggen’s picture

Hi,

the specifications provided by XS4ALL are not detailed enough to determine whether it really would be a good host. PHP5 without further specific sub-version is not enough. Many very useful contributed modules like FileField require e.g. at least PHP 5.2.

Unfortunately, most hostingproviders lack detailed specifications. So the best way to go is indeed to hear from others which provider is OK. Or have the output of a phpinfo() from the hosting provider in addition to the basic info.

Anyway, I have had good experiences with Oxilion. I had some issues once getting Drupal up and running, but they were kind enough to adjust the php configuration within a day to fit my requirements. If I remember correctly, their shared hosting packages are now by default ready-to-go for Drupal. And they're not expensive either. With unlimited MySQL databases. Only major drawback: no SSH access in their shared hosting accounts. If you need that, go for their VDS service, at about the same price as the XS4ALL package you were looking at.

Good luck.
best regards,
Corné