PDA

View Full Version : help with turning regestered globals off with aabox



blackhawk
06-22-2011, 05:21 AM
Is there a way for us to turn off registered global's from a shared hosting account on AABOX?

Thanks

pgmarshall
06-22-2011, 07:46 AM
Yes - I asked this the other day! I also asked them to add it to their knowledge base. Here is the extract.


We have to keep globals on for the huge amount of customers per server that run outdated software. It is easy to turn off via your own custom php.ini file.

First, add this to .htaccess in your public_html directory:

# Custom php.ini settings
suPHP_ConfigPath /path/to/custom/php.ini/
<Files php.ini>
order allow,deny
deny from all
</Files>

Then at the above suPHP_ConfigPath, create a php.ini file, changing those that you require, like register_globals=off

Regards,

blackhawk
06-22-2011, 07:52 AM
Thank you so much PG,
but i think I'm missing something...I create the php.ini file in my public_html directory with globals off, but that had no effect. What else am I missing? I also tried turning globals off in the .htaccess file, but i got a 500 site error.

bh

blackhawk
06-22-2011, 07:56 AM
Got it! Your instructions posted worked perfectly!!! Had to take a second look ;)