Trying to install Drupal on Yahoo Webhosting & receiving the following error:
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'))
Have tried creating php.ini in Drupal installation directory as suggested by several posts but it is not working. Since this is Yahoo, I don't have access to the actual root of the server, only the "root" of the website it is hosting.
Could the installation routine include an option to continue installation with register_globals enabled?
Please advise as to whether or not to waste my time trying to make this work.
Comments
=-=
No.
file a support ticket with the host or check the hosts documentation for how register globlas is to be turned off.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Waiting on reply to support ticket
I filed a support ticket & am just waiting on a response. Posted issue here as well looking for more work-arounds.
I think I've gone through all the solutions posted here. It will be a shame if it doesn't work because the Yahoo Small Business hosting deal is for unlimited space, unlimited transfer, & unlimited e-mail storage. On the other hand, maybe it's total BS if they are going to tie my hands up & prevent me from doing what I need to do. I will either have to abandon Yahoo or Drupal for this project.
Suggestions?
=-=
There are multiple PHP projects that won't install in an environement with register_globals = ON
That said, I'd venture a guess that they have a method for shutting it off that you've just not found yet.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
Thx...you're probably right.
Thx...you're probably right. We'll see what they say.
Yahoo PHP & Add'l Info
For what it's worth here is some of the Yahoo PHP & Add'l Info...
PHP Version 4.3.11
FreeBSD (version unknown)
MySQL 4.1
Apache (version unknown)
Ancient software with insecure settings.
Hate to break it to you but unlimited storage and unlimited transfer hardly compensate for ancient software on the server. That PHP version won't even be capable of running Drupal 7 so you will not have an upgrade path. Imagine going into a store and buying a laptop with Windows 2000. Look for a host that supports PHP 5.2 or higher. You've not invested much into Yahoo! at this point, so it's still the best time to back out.
- Robert Douglass
-----
my Drupal book
my Drupal book | Twitter | Senior Drupal Advisor, Acquia | Advisor ICanLocalize
Still haven't heard from them
I too submitted a support ticket with them last night and haven't heard a thing.
While pulling up the phpinfo, I noticed that they look for php.ini in one place, so having it in the root directory of our hosting account will do us no good.
If they can't change this for us I'm going to have to look elsewhere for hosting needs.
Yahoo Tech Support Reply
I asked the same question, here's what they said:
"Thank you for writing to Yahoo! Web Hosting.
I understand that you wish to set the "register_global" to be "OFF".
Mike, in order to turn off the "register_globals", the "php.ini" file
needs to be edited. Due to security reasons Yahoo! does not allow to
edit the "php.ini" file and so the status of the directive cannot be
changed.
However, the feature you wished is really recommendable and I
appreciate
your understanding for bringing them to our concern. I have forwarded
your concern to our engineering and development team and hope that the
features will be available very soon in near future.
I would also request you to voice your words and send your valuable
suggestions to our development team directly on the following email
address:
hosting-suggestions@cc.yahoo-inc.com
We are always looking for ways to make Yahoo! Web Hosting more useful
to
our users, and we will be sure to keep your question in mind as we
continue to make improvements to our service. I hope that my
explanations are to your satisfaction.
We value you as a customer. It is sincere people like you who make our
company successful. We appreciate you contacting us and appreciate your
understanding in this regard.
Please do not hesitate to reply if you need further assistance.
Have a nice day.
Regards,
Shannon
Yahoo! Customer Care"
Maybe if enough people request it, they will consider it........
email: hosting-suggestions@cc.yahoo-inc.com
This is bullshit. They've heard the same request a million times
This is a total blowoff. They're selling you an outdated product and saying they don't care about your needs.
UPDATE: http://help.yahoo.com/l/us/yahoo/geocities/php/php-36.html
So try this: ask to have your account transfered to an account that has register globals turned off. Tell them to close your account and re-open it on new infrastructure.
- Robert Douglass
-----
my Drupal book
my Drupal book | Twitter | Senior Drupal Advisor, Acquia | Advisor ICanLocalize
You can bypass it with...
I did find a work around, although, I am unsure of the consequences. I discovered that the installation script that runs this particular method is located at: drupal installation folder > modules > system > system.install.
On line 54* is an if statement which you can change From:
($register_globals) != 'off')
To:
($register_globals) == 'on')
It worked for me. Good luck.
source: newtriks
I am doing the exact same thing...
Where there any resources that helped you out with this process?
I am have installed drupal before on my GoDaddy account, but the NGO I am working with already has this yahoo Small Business account, and I have a feeling that it will be difficult.
-.g
Any luck with a solution to the Yahoo register_globals issue?
Thanks!
Marvin
OpportunisticInvestment.com
php5-cgi.ini
hi,
i don't know if this works with yahoo,
but here's what my hosting provider told me to do:
just create a file "php5-cgi.ini" in the document root directory.
then add the line:
register_globals=off
save the file, and you should be done. i hope that this also applies to yahoo servers.
What exactly is the root directory
I tried creating such a file and putting it in my Drupal folder, but to no avail. I then tried moving the file to the main folder for all my web files and that didn't work either. I'm not sure I can get any deeper into the Yahoo server directory.
- Steve
Did you try .htaccess?
Did you try putting a "php_value" directive into your .htaccess file?
Mine contains:
php_value register_globals 0Depending on your php and apache versions, it would go into either of the following sections:
# PHP 4, Apache 1.<IfModule mod_php4.c>
or
# PHP 4, Apache 2.<IfModule sapi_apache2.c>
or
# PHP 5, Apache 1 and 2.<IfModule mod_php5.c>
respectively.
Hope this helps,
Ronald
php_flag, not php_value
Actually, I think that should be:
php_flag register_globals offBased on the docs at http://nz2.php.net/configuration.changes - see "Note" near top of page.
It's possible that php_value register_globals 0 works for your setup, but that's not what the documentation says to do, and it may not work in other installations.
Or, it might work fine ... for now ;)
The .htaccess approach will only work on some sites, which allow the overriding of config variables via .htaccess. On others, the .htaccess file gets ignored.
If my comments have helped you, please pay it forward!
Use issue queues to discuss module issues - this will help your questions assist others (including yourself!) in future.
http://twitter.com/grobot ● www.giantrobot.co.nz
This sucks
I'll send Yahoo Small Business hosting an email and see if they respond.
- Steve
Yahoo
Good luck getting any help from them. The other thing you need to worry about is Yahoo has no vested interest in keeping any solution they come up with working in the future - don't be shocked if they do rig something up for you that one day three or six months from now your site just dies because their latest update causes register globals to magically turn back to ON.
Steve
HotDrupal.com - Drupal Friendly Hosting
info on register_globals
http://help.yahoo.com/l/us/yahoo/geocities/php/php-36.html
Yahoo able to turn off register_globals manually
After a few failed attempts in the past, someone at tech support graciously agreed to turn off register_globals for my account and that error no longer appears for me upon installation.
Chaim
Yahoo! Webhosting limitations
If you are trying to use Drupal on Yahoo! Webhosting, then I have some bad news for you.
The current versions of PHP and MySQL on Yahoo! Webhosting do not meet the required specification for many CMS.
I have checked the version information for MySQL and PHP on my maakusan.com domain on Yahoo! Webhosting:
PHP version 4.3.11
MySQL version 4.1.14
Drupal recommend:
PHP 5.2 or higher
MySQL 4.1 or higher for Drupal 6
MySQL 5.0 or higher for Drupal 7
Joomla recommend
PHP
minimum version 4.3.x for Joomla v1.5
recommended version 4.4.7 for Joomla v1.5
optimum version 5.0.x series for Joomla v1.5
MySQL
minimum version 3.23.x or above for Joomla v1.5
recommended version 4.1.22 for Joomla v1.5
optimum version 5.0.x series for Joomla v1.5
CMSMadeSimple recommend
PHP version 4.3+ (version 4.3.3+ required for pretty URL's)
MySQL versions 3.23 or higher
Yahoo! Small Business Support have informed me that they have no intention of upgrading the installations of PHP and MySQL on the server that hosts my domain. In addition, all of their servers are on the same versions of PHP and MySQL and therefore this problem cannot be overcome by moving my domain onto another server.
I also noted some key settings of the current PHP configuration directives on my Yahoo! Webhosting PHP installation:
register_globals: on;
session.save_handler: files
error_reporting set to 2036
This conflicts with the Drupal requirements:
register_globals: off;
session.save_handler: user
error_reporting set to E_ALL
Yahoo! Small Business Support have informed me that they cannot change these PHP configuration directive settings for individual accounts, which conflicts with some reports from other users.
In summary, you can bypass the Drupal 6 install script by resetting the register_globals directive but Yahoo! Webhosting does not meet the minimum requirements for Drupal 6 and above.
You can get Joomla v1.5 to run on Yahoo! Webhosting but it runs slow because Yahoo! Webhosting does not meet the recommended specification.
You can get CMSMadeSimple to run on Yahoo! Webhosting but only without pretty URL's.
I have been checking the requirements between Drupal, Joomla, and CMSMadeSimple because of the recent CMS Awards '08. I have been using CMSMadeSimple but I would like some additional features that means I need some quality hardcopy documentation, which is not available for CMSMadeSimple.
All of this means that I will now have to look into moving my domain from Yahoo! Webhosting onto a Drupal webhosting solution that will support the current and future versions of Drupal. For further information about my experience installing and using CMSMadeSimple so far, you may wish to check my blog.
One final thing to mention is that Yahoo! Webhosting does not currently allow you to upload .htaccess files to your account, which unfortunately is one of the requirements of installing Drupal.
Mark K Smitham
maakusan
MySQLi Error?
"In your ./sites/default/settings.php file you have configured Drupal to use a mysqli server, however your PHP installation currently does not support this database type"
What do I do following that error? Won't let me attempt to install. I am new to putting Drupal online. I followed http://animatrick.com/?p=699 to help me get to where I'm at. I haven't done anything since I followed those directions.
Any ideas anybody?
=-=
open settings.php
find $db_url
change mysqli to mysql