I'm part of a not-for-profit organization called Janaagraha based in Bangalore, India. We've just recently developed our website www.janaagraha.org using Drupal and hosted it on Siteground. We had outsourced the development of our Volunteer Management System to another company which developed it using core PHP. The Volunteer Management System used to work on our old website hosted on Yahoo! but has stopped working since we moved it to Siteground. One suspicion we've is that the variable register_globals is "off" in the php.ini file on Siteground and that needs to be "on". Is it possible for me to set it? If so, how?

Thanks,
Indira

Comments

indirav’s picture

Both the Volunteer Management System and our Janaagraha website are using MySQL as the database.

Thanks,
Indira

techczech’s picture

Register globals should be off (for security reasons, I'm told). If, for some reason, you need them on, put the following in your .htaccess file: php_flag register_globals on or register_globals = true in your php.ini file.

kirikoo’s picture

Couldn't find php.ini in my Drupal directory, so created one & added this single line:

register_globals = false

(in my case register_globals was on & I needed it off for 5.6 upgrade)

dangerqc’s picture

Kirikoo is a genius.
It is so simple it is brilliant.
It works, and for those of you on web hosts... so am I!

Woo Hoo!

kirikoo’s picture

LoL thanks :D Happy that's solved your probs :)

Just an addition, I had some mysql problems because of the file I added & after doing some research on the error message I was getting I added a 2nd line to it so now php.ini contains this:

register_globals = false
memory_limit = 40M

seems 40M is the max my host allow, it maybe different with other hosts, I precise also that my drupal is installed in a subdirectory under public_html, good luck.

derfeluk’s picture

Awesome ... so simple I had forgotten all about it!

ncameron’s picture

sorted my D5.6 upgrade problem!

- Connecting Language Learners
www.huitalk.com

kaku’s picture

I am not getting where i have to create directory and what would be the name of it.

strands’s picture

Worked for me when option 2 here didn't.

_doc’s picture

Hi Indira - did the solution fix your problem?

I checked the site - which browser is it best viewed on?

Thanks!

frankywi’s picture

then you can still disable the check for register_globals = off.

Its in modules/system/system.install. Just give the if branche the same code the else branch has and comment the 3 'old' statements.

BUT this is surely not recommended and makes your drupal installation vulnarable.

DBohl’s picture

This work as well for me, but I needed to place the file in my CGI bin. Thanks all!

moxbydesign’s picture

I know this is quite an old thread, but I had a permission denied on a client's 1&1 hosting, so made a php.ini and dumped it into the root directory

register_globals = off
memory_limit = 40M

And that worked a treat. :-) Thanks!

Martin Oxby
Summit Web Solutions