Joomla: PHP register_globals setting is `ON` instead of `OFF`
24 April 2007
This is tutorial for joomla problem, cause usually when you just installed joomla, some of you may get this notice:
PHP register_globals setting is `ON` instead of `OFF`
What to do? this is an easy step by step to fix that problem:
- make .htaccess file in your Joomla site’s root and add this lines:
# Offers protection during hack attacks by NOT disclosing error
# messages, server paths, et cetera, and turns off your globals.
php_flag display_errors off
php_flag register_globals off
- make “php.ini” in your Joomla site’s root and add this lines:
register_globals = Off
magic_quotes_gpc = On
- open your globals.php file, and change the line:
define( 'RG_EMULATION', 1 )
to
define( 'RG_EMULATION', 0 )
now, your register globals is OFF!























on February 22nd, 2008 at 3:50 am
I dont know how to
- open your globals.php file
I have made the other files
on March 29th, 2008 at 2:08 pm
you must in globals.php atributes the numeric value set tu 644
on April 1st, 2008 at 1:36 am
I tried to do your resolutions but … unsuccessful!
huhu…
on April 7th, 2008 at 9:41 pm
worked great. thanks!!
on April 26th, 2008 at 7:08 am
I’m new to Joomla and am having trouble getting this to work. Could someone post an example of what the files look like after inserted.
on May 5th, 2008 at 11:40 am
This worked for me as well! Thanks!
on May 10th, 2008 at 8:51 am
There is already an .htaccess in my root file. When I try to change or create another, there comes a big error in my site. What can I do?
on May 23rd, 2008 at 10:51 pm
I’m having the same problem.. Any suggestion. I did email my web hosting service to see if they can shut if off from the Apache root level.
on July 15th, 2008 at 2:44 am
Thats was straight and to the point, it worked great. Thanks a million!!
on July 16th, 2008 at 12:28 am
It work well
Thank you too much
on July 19th, 2008 at 3:34 pm
works
on July 24th, 2008 at 10:48 pm
this broke the website, I dont know how to fix, extremely stressful, ive back tracked and i just cant fix it now what the hell just happend
on July 24th, 2008 at 11:03 pm
fuck please help me here i broke my fucking clients website this is fucking rediculous what the fuck do i do
on July 24th, 2008 at 11:22 pm
lol ok, i fixed it but dayyum i was freaking out there, the solution was to download a new joomla and upload the new globals.php
on July 25th, 2008 at 11:37 pm
I use joomla 1.0.15 and follow your instruction but no successfully. Pls help. Many thanks
on August 14th, 2008 at 6:35 pm
Thanks for this tip, it worked!
on August 16th, 2008 at 2:48 pm
Man! Thanks! Work well! Thanks for support!
on August 18th, 2008 at 1:17 am
PERFECT! THANX!!
on August 31st, 2008 at 1:51 pm
Bravo
Worked a treat,
on September 1st, 2008 at 7:52 pm
That worked! Thanks for the tip.
on September 3rd, 2008 at 1:45 pm
This completely wrecked my site. I will look elsewhere. Luckily I undid everything to get it back
on September 5th, 2008 at 1:52 pm
You Brilliany Guy !!
Had a bit of challenge to get the .htaccess sorted, i tried to upload it to my pc and save it. It refused because Windows needs an extension to the file. So I added the lines in a text file eg - happy.txt , i then uploaded to the site, i then used ftp software ( eg. Smart Ftp) to rename it to .htaccess ( without anny extension , this is important else it does not work). The php.ini is just a normal text file and can be created on the pc and named - php.ini , upload it to the folder. Finally, I used my Dreamweaver Cs3 to open the global.php, inserted the code you advised, and what do you know - GLOBAL IS OFF.
You a star, thanks, my clients will all be safer from today onward.
on October 28th, 2008 at 11:39 am
Followed the instructions and…Voila!
on October 30th, 2008 at 11:25 am
thanks
on November 13th, 2008 at 7:13 am
This works, thanx