A webmaster blog writing about any good tips on wordpress,etc

Wordpress Tips

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!

Share and Enjoy:
  • del.icio.us
  • Fark
  • Reddit
  • Blogosphere News
  • Digg
  • Facebook
  • Google Bookmarks
  • Live
  • MSN Reporter
  • MySpace
  • RSS
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • Tumblr
  • Twitter
  • No Related Post

28 Responses to “Joomla: PHP register_globals setting is `ON` instead of `OFF`”

  1. swebbo Says:

    I dont know how to

    - open your globals.php file

    I have made the other files

  2. toso Says:

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

  3. Thanh Su Says:

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

  4. gigglemedia Says:

    worked great. thanks!!

  5. Robert Says:

    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 Says:

    This worked for me as well! Thanks!

  7. Iannis Says:

    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 Says:

    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 Says:

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

  10. asel Says:

    It work well

    Thank you too much

  11. kapoing Says:

    works

  12. Jp Says:

    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 Says:

    fuck please help me here i broke my fucking clients website this is fucking rediculous what the fuck do i do

  14. Jp Says:

    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 Says:

    I use joomla 1.0.15 and follow your instruction but no successfully. Pls help. Many thanks

  16. skillzy Says:

    Thanks for this tip, it worked!

  17. Kamil Pitonak Says:

    Man! Thanks! Work well! Thanks for support!

  18. Steve Says:

    PERFECT! THANX!!

  19. Pete Says:

    Bravo :)

    Worked a treat,

  20. ts Says:

    That worked! Thanks for the tip.

  21. David Says:

    This completely wrecked my site. I will look elsewhere. Luckily I undid everything to get it back

  22. Liro Says:

    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 Says:

    Followed the instructions and…Voila!

  24. sidlo Says:

    thanks

  25. Christian Says:

    This works, thanx :)

  26. Matt Says:

    Yay! Worked like a charm. You rock. Thanks!

  27. NasirJumani Says:

    u r a champ!!….thanks a million…that shit just gone…!!

  28. rpurnama Says:

    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.

Leave a Comment

Home

  • Blog Stuff

    Internet blogs Resources Blogs - Blog Top Sites blog search directory submit a blog blog directory
    Internet Blogs Marketing / SEO Blogs - Blog Flare Blog: VR Junkyard - Articles, Tips, Downloads, Infos, and lots more - Get your quick ping button at autopinger.com!
    eXTReMe Tracker
  • Was Here