Turn on Global Variables ?

Discussion in 'Linux VPS/Dedicated - cPanel' started by knownhoster, Oct 3, 2006.

  1. knownhoster

    knownhoster New Member

    I have accessed my site via SSH . I need to turn on Global variables . I ran the following command in SSH console : pico /usr/local/lib/php.ini

    then i went to line 316 and changed register_globals = Off to register_globals = On .

    I have saved it by pressing Ctrl + O and then pressing Enter.

    i checked my phpinfo script and it still shows that Global variables is turned Off. any other way of verifying if its on or off ?
  2. KH-Paul

    KH-Paul CTO Staff Member

    Apache needs to be restarted to load modified PHP configuration. Just run the following command and re-check phpinfo():

    service httpd restart

Share This Page