How to enable register_globals for PHP5?

Posted on the September 26th, 2008 under Server Admin Tips by Stephen

 
If your server is configured with suphp, here is now to enable register_globals for php5:

  1. Create a file named php.ini and insert this into it:

    register_globals = On

  2. Upload this file to inside your public_html folder
     
  3. Create a file named .htaccess and put this into it:

    SuPHP_ConfigPath /home/acc_username/public_html/php.ini

    Where acc_username is your account username

  4. Put this .htaccess into inside public_html and that should be it.

 

If your server doesn’t have suphp, here is how to enable register_globals:

  1. Create a file named .htaccess and put this into it:

    php_value register_globals 1

  2. Upload this .htaccess to inside your public_html folder
     
  3. Done

 


Share this page:
  • Facebook
  • Twitter
  • StumbleUpon
  • Slashdot
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Live
  • MySpace
  • Technorati
  • LinkedIn
  • Reddit
Related Posts:

No related posts.

2 Responses to 'How to enable register_globals for PHP5?'

  1. August 28, 2009 at 9:33 am
    acctman
  2. August 28, 2009 at 11:33 am
    admin

Leave a Comment