Business Management | Editors Column | Hosting Customers | Interviews & PR | Marketing/Advertising | Online Marketing/SEO | Web Hosting | Web Hosting Reviews

Web Hosting Reviews and Tutorials

Fully Managed Dedicated Servers from Liquidweb Cheap - Click here

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

by WHRKIT on September 24, 2006

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. Apache HTTP Web server configuration Tutorial
  4. Configuring Basic Cisco Router Security
  5. Poor Man’s Version of Server Security
  6. CHMOD – Understanding File Permissions on a Unix-Based Server
  7. How to remove or disable mod_evasive from Apache Web Server?

Leave a Comment

Previous post:

Next post: