1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

register_globals off

Discussion in 'Plesk for Linux - 8.x and Older' started by swapnil_india20, Sep 26, 2005.

  1. swapnil_india20

    swapnil_india20 Guest

    how do i turn off register_globals in php.
    I have done it in php.ini but still not working.

    Some one told me that i need to do it using

    Can some one pls help me doing this.

    -- swapnil
  2. phoenixisp

    phoenixisp Silver Pleskian

    Feb 2, 2002
    Likes Received:
    Changing the php.ini file is the correct way. But be sure to restart Apache to implement the change.
  3. jamesyeeoc

    jamesyeeoc Guest

    Turning it off in /etc/php.ini has a global effect. If you still have domain(s) where phpinfo() still shows globals turned on, then check those domain(s) vhost.conf and vhost_ssl.conf files to see if they have it turned on.

    These files are kept in the domain's 'conf' directory:


    It will look something like the following:
    <Directory /home/httpd/vhosts/domain.com/httpdocs>
    php_admin_flag engine on
    php_admin_value register_globals 1
    Where 1=on and 0=off

    If you edit or create any vhost.conf or vhost_ssl.conf file, you must issue the command:

    /usr/local/psa/admin/bin/websrvmng -u --vhost-name=domain.com

    Then restart Apache service.