marketing articles, adsense optimization, technology, traffic tips, seo tips, free downloads
« Improve Usability of Your Website - How to Backup Wordpress Database »

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!

Share and Enjoy:
  • co.mments
  • del.icio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • Ma.gnolia
  • NewsVine
  • Reddit
  • Shadows
  • Simpy
  • Spurl
  • YahooMyWeb


25 Responses to ' Joomla: PHP register_globals setting is `ON` instead of `OFF` '

Subscribe to comments with RSS or TrackBack to ' Joomla: PHP register_globals setting is `ON` instead of `OFF` '.

  1. swebbo said,

    on February 22nd, 2008 at 3:50 am

    I dont know how to

    - open your globals.php file

    I have made the other files

  2. toso said,

    on March 29th, 2008 at 2:08 pm

    you must in globals.php atributes the numeric value set tu 644

  3. Thanh Su said,

    on April 1st, 2008 at 1:36 am

    I tried to do your resolutions but … unsuccessful!
    huhu…

  4. gigglemedia said,

    on April 7th, 2008 at 9:41 pm

    worked great. thanks!!

  5. Robert said,

    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.

  6. thadley said,

    on May 5th, 2008 at 11:40 am

    This worked for me as well! Thanks!

  7. Iannis said,

    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?

  8. richard said,

    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.

  9. chooser said,

    on July 15th, 2008 at 2:44 am

    Thats was straight and to the point, it worked great. Thanks a million!!

  10. asel said,

    on July 16th, 2008 at 12:28 am

    It work well

    Thank you too much

  11. kapoing said,

    on July 19th, 2008 at 3:34 pm

    works

  12. Jp said,

    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

  13. Jp said,

    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

  14. Jp said,

    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

  15. namazu said,

    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

  16. skillzy said,

    on August 14th, 2008 at 6:35 pm

    Thanks for this tip, it worked!


  17. on August 16th, 2008 at 2:48 pm

    Man! Thanks! Work well! Thanks for support!

  18. Steve said,

    on August 18th, 2008 at 1:17 am

    PERFECT! THANX!!

  19. Pete said,

    on August 31st, 2008 at 1:51 pm

    Bravo :)

    Worked a treat,

  20. ts said,

    on September 1st, 2008 at 7:52 pm

    That worked! Thanks for the tip.

  21. David said,

    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

  22. Liro said,

    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.

  23. moonshooter said,

    on October 28th, 2008 at 11:39 am

    Followed the instructions and…Voila!

  24. sidlo said,

    on October 30th, 2008 at 11:25 am

    thanks

  25. Christian said,

    on November 13th, 2008 at 7:13 am

    This works, thanx :)

Leave a reply