register_globals is enabled

fuzi - February 1, 2008 - 23:12

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

Regards

fuzi

Try uploading a custom php.ini

derek.b - February 2, 2008 - 03:13

fuzi,
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.

[PHP]
register_globals = Off

Thank you! It is

fuzi - February 2, 2008 - 23:58

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.

fuzi

Does this workaround make it safe?

Steve McClelland - February 3, 2008 - 02:17

Thanks, derek.b

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

register_globals doesn't

mickh - February 3, 2008 - 08:53

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.

Awesome

xxparanormalxx - April 13, 2008 - 12:23

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.

thanks alot

nadasaif - February 4, 2008 - 22:19

nadasaif

hi,

yah , i had the same proplem ,

thanks alot,

Nada

thanks, derekb

eyedream - March 5, 2008 - 03:37

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

Creating a php.ini file did

playdreamer - March 26, 2008 - 22:16

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

Help please

lewisw - April 1, 2008 - 11:47

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.

Thank you

justlikethat - March 30, 2008 - 16:08

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.

register_globals

PAULSPEED - May 3, 2008 - 19:00

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

php.ini

Add this text below.

register_globals = OFF
memory_limit = 16M

Thanks for your help.
Paul

 
 

Drupal is a registered trademark of Dries Buytaert.