Trouble setting register_globals in php

I am doing a Drupal install on a shared server. When I atempt to install I get the following message:

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.
.
My 0htaccess file has the following relevant code:

# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.

# PHP 4, Apache 1.
<IfModule mod_php4.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

#php_value register_globals                0

# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_value magic_quotes_gpc                0
  php_value register_globals                0
  php_value session.auto_start              0
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_value mbstring.encoding_translation   0
</IfModule>


I have the Drupal files installed in rooi\mysite. I have added the .htaccess file to both the root and sub directory yet I am still getting the same error message when I try and do an install.

What do I need to do?

Kevin
PetGuyCEOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

junipllcCommented:
Do you have access to a php.ini file? The best way to figure out how to disable register_globals (which should never really be enabled on any hosting, IMO) is to ask the hosting company. There are some ways you can try, but ultimately they can limit your ability to change their server default values.

The fact that it's on to begin with is a red flag ... again, just my opinion, though. PHP has had that turned off by default for quite a number of years now.

I just did a couple of searches and came across this too (which kinda reiterates what I said, but has more information as well):

http://drupal.org/node/218763

It's regarding Drupal 5.x, but it's still applicable regardless of which version of Drupal you're using.

Give the host a call (or email) and see what they say. If that proves too difficult (believe me, I've had my share of horror stories when it comes to hosting customer service) let me know and we can run through some possibilities and tests to see if we can get it to work.

Good luck!

Mike
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PetGuyCEOAuthor Commented:
I called host. They did change PHP.ini for me but then I found out that memory for php is limited to 8, half of the 16 Drupal suggests. Going to try new host. Sugestions appreciated.

Kevin
0
junipllcCommented:
Oh wow...just an important note: not even 16MB will do. In fact, if you're going to have a decently appointed site, it's not even close. :)

Hosting for Drupal is certainly something for which there are a lot of options, for a lot of different budgets. What are you currently paying for your hosting, and what is realistic as far as your budget is concerned? Also, what volume of traffic are you expecting? The number and complexity of the modules you use will also dictate how much horsepower you'll need.

Drop a note back and I'll see if I can dig up any suggestions based on the answers to the questions above.

Cheers,

Mike
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.