Joomla: PHP register_globals setting is `ON` instead of `OFF`
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!
28 Responses to “Joomla: PHP register_globals setting is `ON` instead of `OFF`”
Leave a Comment
Where am I?
You’re currently at “Joomla: PHP register_globals setting is `ON` instead of `OFF`,” an entry on Wordpress Tips by VR Junkyard on Apr 24 2007 @ 6:23 pm
-
Meta








February 22nd, 2008 at 3:50 am
I dont know how to
- open your globals.php file
I have made the other files
March 29th, 2008 at 2:08 pm
you must in globals.php atributes the numeric value set tu 644
April 1st, 2008 at 1:36 am
I tried to do your resolutions but … unsuccessful!
huhu…
April 7th, 2008 at 9:41 pm
worked great. thanks!!
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.
May 5th, 2008 at 11:40 am
This worked for me as well! Thanks!
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?
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.
July 15th, 2008 at 2:44 am
Thats was straight and to the point, it worked great. Thanks a million!!
July 16th, 2008 at 12:28 am
It work well
Thank you too much
July 19th, 2008 at 3:34 pm
works
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
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
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
July 25th, 2008 at 11:37 pm
I use joomla 1.0.15 and follow your instruction but no successfully. Pls help. Many thanks
August 14th, 2008 at 6:35 pm
Thanks for this tip, it worked!
August 16th, 2008 at 2:48 pm
Man! Thanks! Work well! Thanks for support!
August 18th, 2008 at 1:17 am
PERFECT! THANX!!
August 31st, 2008 at 1:51 pm
Bravo
Worked a treat,
September 1st, 2008 at 7:52 pm
That worked! Thanks for the tip.
September 3rd, 2008 at 1:45 pm
This completely wrecked my site. I will look elsewhere. Luckily I undid everything to get it back
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.
October 28th, 2008 at 11:39 am
Followed the instructions and…Voila!
October 30th, 2008 at 11:25 am
thanks
November 13th, 2008 at 7:13 am
This works, thanx
December 28th, 2008 at 2:16 pm
Yay! Worked like a charm. You rock. Thanks!
March 30th, 2009 at 11:34 am
u r a champ!!….thanks a million…that shit just gone…!!
May 13th, 2009 at 5:34 am
Hey, i get trouble when i follow your tutorial. My Error is :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@gemilangku.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.