By fuzi on
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
Comments
Try uploading a custom php.ini
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.
Thank you! It is
Thank you! It is working.
But 1and1.com mysql version is too low.
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?
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
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
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.
Adding line to PHP.ini worked for me but
I had to run login as admin and run www.mysite.com/update.php
Thanks Derek.
thanks alot
nadasaif
hi,
yah , i had the same proplem ,
thanks alot,
Nada
thanks, derekb
Just wanted to say thanks for sharing the fix. Mindlessly easy and works beautifully.
Creating a php.ini file did
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
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
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
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
register_globals
How such settings can be changed in windows server.I still not able to find the solution for windows server.
Solution for GoDaddy
Solution for GoDaddy Host
Create a file name php.ini in your root directory
Inside cut and paste the following
register_globals = offThat's it, enjoy!
php.ini .htaccess
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?
php.ini file
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:
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.
Thank you so much!!!
I just wish the information such as this would be easier to find...
Got it fixed!
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
SetEnv REGISTER_GLOBALS 0
Put copied php.ini file at the root of the drupal folder
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