Web Hosting Resource Kit

Web Hosting, Web Hosting Reviews & Virtualization

How to enable register_globals for a single website without putting an entire server security at risk?

September 24, 2006 By Christoph Puetz Leave a Comment

  • Tweet
  • SumoMe
  • Tweet
How to enable register_globals for a single website without putting the entire server security at risk?
 
Web servers configured with security in mind have PHP register_globals disabled from within PHP.ini. This affects the entire server. If are you trying to install osCommerce or another Fantastico script you are sometimes getting the error message shown below:
 
register_globals is disabled in php.ini, please enable it!
 
This error messages points to a problem with a specific script on a web hosting account. Fortunately register_globals can be turned on per domain. Please follow the instructions below to fix this issue.
  • Go to your control panel and then click on File manager.
  • In your file manager, enter the public_html folder.
  • In the public_html folder you will see a file called .htaccess.
  • Select  the .htaccess  file and click on edit in the upper right hand corner.
  • Copy and paste the text line shown below at the bottom of .htaccess file and then save it:
 php_value register_globals 1
 
This will turn your register_globals on and your script will work properly. Why is register_globals disabled in the first place? Leaving register_globals turned on poses a security risk for an entire web server. It should therefore only be enable on a case by case situation and only per website. Web Developers should no longer develop scripts that require register_globals to be turned on. Unfortunately this is very difficult to enforce.

Related posts:

  1. Q&D Folder Restriction (security)
  2. What is .htaccess and how is it being used?
  3. Configuring Basic Cisco Router Security
  4. Apache HTTP Web server configuration Tutorial
  5. Poor Man’s Version of Server Security
  6. How to move a large forum from Server A to Server B?
  7. How to remove or disable mod_evasive from Apache Web Server?

Filed Under: Web Hosting

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Business Management
  • Editors Column
  • Hosting Customers
  • Interviews & PR
  • Marketing/Advertising
  • Online Marketing/SEO
  • VMWare
  • Web Host Startup
  • Web Hosting
  • Web Hosting Reviews

Pages

  • About Us
  • Contact
  • Disclosure Policy
  • Sitemap
  • Terms of Service
  • Welcome to Web Hosting Resource Kit

More Web Hosting

  • Top 10 Web Hosts

Copyright Webhostingresourcekit.com© 2018 · Log in