I got this when I install 6.0 on 1and1.com

Requirements problem
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'))

Please check the error messages and try again.

I just wondering how to let it goes to next step by change the code.
I just want to do some test




derek.b’s picture

I had a similar problem. I created a text file called "php.ini" with the code below and added that to the root of my Drupal installation. That fixed it for me.

register_globals = Off
fuzi’s picture

Thank you! It is working.

But 1and1.com mysql version is too low.

Requirements problem
The following error must be resolved before you can continue the installation process:
Your MySQL Server is too old. Drupal requires at least MySQL 4.1.1. (Currently using MySQL database 4.0.27)

Please check the error messages and try again.

I have to wait until they upgrade the mysql.

I also need install SugarCMS and Wiki, all due to database version too low and have to use other isp.


Steve McClelland’s picture

Thanks, derek.b

Does this workaround make the database safe, or just trick Drupal into thinking it can do the install?

mickh’s picture

register_globals doesn't directly affect your database, and it doesn't really matter how/where it is turned off as long as it is in fact off.

Turning it off makes PHP code safer and lessens the likelihood of someone exploiting a bug or hole somewhere.

It doesn't "trick" Drupal, the php.ini file actually turns it off.

xxparanormalxx’s picture

Awesome. This worked for me. But now I got another issue:

Fatal error: Cannot redeclare color_requirements() (previously declared in /beta/modules/color/color.install:4) in /beta/sites/all/modules/color/color.install on line 35

Totally stumped at this point.

prokopton’s picture

I had to run login as admin and run www.mysite.com/update.php

Thanks Derek.

nadasaif’s picture



yah , i had the same proplem ,

thanks alot,


eyedream’s picture

Just wanted to say thanks for sharing the fix. Mindlessly easy and works beautifully.

playdreamer’s picture

Creating a php.ini file did not work for me but I was able to switch off register_globals with the following line inserted into an .htaccess file:

php_flag register_globals 0

lewisw’s picture

Hi everyone,

First time user of Drupal here...

I am trying to install it, however, I receive the same register_globals error as described above. I have tried both editing the .htaccess file & adding a php.ini file, however, they do not appear to resolve my problem.

I use an ASP based host (Ihostasp) & was wondering if this is the cause? I contacted my host & they suggested changing the php version to version 4, however, after doing that, Drupal install does not even load.

Any help would be greatly appreciated.

justlikethat’s picture

Now I can signup with Hostgator and install 5.7. D6.1 is available at Fantastico but the modules that I need is not yet ready. Thanks again.

PAULSPEED’s picture

Hi Guys,
Just got past the error messages for installing Drupal 6.

I am on the 1 and 1 server. This worked for me.

Use jedit and make a file called


Add this text below.

register_globals = OFF
memory_limit = 16M

Thanks for your help.

ashiwebi’s picture

How such settings can be changed in windows server.I still not able to find the solution for windows server.

bryancasler’s picture

Solution for GoDaddy Host

Create a file name php.ini in your root directory
Inside cut and paste the following

 register_globals = off

That's it, enjoy!

cbladd’s picture

I've got this same problem and I've done the things in the above posts. Edited the php.ini and the .htaccess files on the server. I'm using ixwebhosting, drupal 6.5, and cyberduck as my ftp client. What am I missing?

rickmartin’s picture

I tried the php.ini file with register_globals = off in it. I put this in the root directory, and sure enough, it got rid of the register_globals error.

But in my case, it did not solve the problem. I could move on to the configure database step, but it would not accept my db username and password even though they were correct. After speaking with my hosting company (ICDsoft), they told me that the code I should have used for the php.ini file is:

register_globals = off
post_max_size = 20M
memory_limit = 200M
upload_max_filesize = 20M
max_execution_time = 120
expose_php = off
session.save_path = /tmp
mysqli.default_socket = /tmp/mysql5.sock

This solved the register_globals error (as expected), but it also allowed me to successfully configure the databases as well. My hosting company said “The issue is that php.ini files override the global settings, and when you do not add the compatibility lines the socket for mysqli is not set.”

Let me be clear, I'm not sure if this block of code is the solution that everyone should use. But it worked for me where only "register_globals = off" did not.

AndKrewni’s picture

I just wish the information such as this would be easier to find...

fvuong’s picture

The steps above-mentioned did not work for me. I had the setup working after adding the two following lines at the beginning of the .htaccess (root folder of the Drupal install):

SetEnv PHP_VER 5


Kakoma’s picture

On copying the host's php.ini file, put it at the root of your drupal folder.
If your drupal implementation is at www.example.com/drupal, then put the copied(and modified) version of your php.ini file in the /drupal folder