Portal Home > Knowledgebase > Tech Support > WHM > Enable register globals for single domain

Enable register globals for single domain

How to enable register_globals for a single website without putting the entire server security at risk?
* 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.

If yours is off and you want to enable it use:
php_value register_globals 0
You may also want to create your own php.ini and add it to the cgi_bin. You can write a single file with the name php.ini in the root directory of your hosting account. In that file write this:
register_globals = Off
memory_limit = 120M
This also addresses the memory limit error which may hamper some installs.


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Modifying DNS Records (Views: 1362)

Live Chat
Speak with one of our live support reps!


Why Choose Us?
All of our web hosting plans come with the following cool features!
  • Powerful Control Panel
  • Online Based Website Builder
  • 3,000 Free Website Templates
  • One Click Script Installer
  • Unlimited Email accounts
  • Unlimited MySQL Databases
  • FREE Domain Name


Follow Us
Subscribe to SSA Host Announcements RSS
Follow Us on Twitter
Become a Fan on Facebook

website partners
Special Offer

Special Offer!

We want to give you 25% off the price of your A-La-Carte hosting package, for the life of your account! All you have to do is help us spread the word about the services we offer! Click the link below to get more information, and get your FREE coupon code for 25% off:

Special Offer