How to disable register_globals

limay - January 19, 2008 - 22:13

I just installed Drupal and am getting the message that register_globals is enabled. My web host saus register_globals is off. I am a real newbie, trying to do this myself and can't understand a lot of info in the forum replies. I do see that you can disable this by modifying that .htaaccess file. EXACTLY, what do I add to this file and where do I add it? Thanks for any and all help.

=-=

VeryMisunderstood - January 19, 2008 - 22:22

have you run a phpinfo() to insure that your hosts support is correct ?

you can use a custom php.ini file and set register_globals = Off

I don't use the .htaccess method, I prefer hosts who allow custom php.ini files to override default php settings.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

Neither method helped so

russ77 - January 24, 2008 - 06:12

Neither method helped so far.

http://www.rssmedco.com

found solution to disable register_globals

russ77 - February 19, 2008 - 19:09

FOUND IT !!!

simply add

AddType x-mapp-php5 .php

at the bottom of .htaccess file.
Worked for me.

http://www.rssmedco.com

How to disable register_globals server side

JoshuaB86 - February 23, 2008 - 19:50

Hi guys, my phpinfo says that register_globals in enabled in php core... how can I disable that?

=-=

VeryMisunderstood - February 23, 2008 - 20:48

check with your host by filing a support ticket or by reading your hosts knowledge base for the method that your host prefers to have defaults overridden.

Many use a custom php.ini file, which you would have to copy from your server, adjust and add to your root folder.

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

Already called support

JoshuaB86 - February 24, 2008 - 04:12

Hehe, well I've filed a support ticket, but havn't heard back. Also, I called support and the girl kept telling me to configure my .htcaccess file (or however it's spelled). Haha, well I kept trying to explain that it's enabled server side. Ok, we'll see.

=-=

VeryMisunderstood - February 24, 2008 - 04:29

.htaccess handles server side directives

_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )

Where EXACTLY did you put

evilgenius - May 8, 2008 - 16:14

Where EXACTLY did you put the "AddType x-mapp-php5.php" in the .htaccess file? I'm having the same problem and can't find a way to solve it.

I already asked my host and instructed me to add php.ini in my root folder with 'register_globals = Off'. I did that but when I install Drupal its still says register_globals is 'On'. I checked my phpinfo.php and it says there that its 'Off'.

This is so frustrating!! What should I do? Please help.

 
 

Drupal is a registered trademark of Dries Buytaert.