Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2002
    Location
    Montreal, Canada
    Posts
    269

    Can I turn register_globals off in WHM?

    If not then would someone be able to tell me how to turn it off quickly?

    thanks

  2. #2
    Join Date
    Jan 2005
    Location
    Minneapolis, MN
    Posts
    967
    Edit /etc/php.ini and do a search for register_globals. Set it to Off. Restart Apache.
    Doyle Lewis
    BuyHTTP Internet Services - In business since 2003
    Business Hosting | nginx, CloudLinux, Varnish cache, and CDP with every business account
    Shared, Reseller, Semi Dedicated, VPS, Cloud, Dedicated - We can grow with you

  3. #3
    Join Date
    Feb 2002
    Location
    Montreal, Canada
    Posts
    269
    I'm sorry to be such a newb but can you tell me the SSH commands to execute this task?

  4. #4
    Join Date
    Jul 2002
    Location
    Malaysia
    Posts
    698
    1. pico /etc/php.ini

    2. press CTRL+W ( to search for specific keyword ), then enter "register_globals" , hit enter

    3. when you reach the variable, you will see it is either "on" or "off" and set it accordingly as you wish

    4. once done, CTRL+X, it will ask u whether to save the file, type "y" and hit enter

    5. restart apache by running "service httpd restart"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •