The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disabling php open_basedir protection

Discussion in 'General Discussion' started by MethOd63, Feb 20, 2009.

  1. MethOd63

    MethOd63 Active Member

    Joined:
    Aug 20, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Hi.
    i want to disable php open_basedir protection but i dont know where is this option, someone can help ??
     
  2. arunsv84

    arunsv84 Well-Known Member

    Joined:
    Oct 20, 2008
    Messages:
    373
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    There are two ways to disable open_basedir restriction in php.

    Site wide
    *******
    Open your php.ini and look for the open_basedir line and comment it.

    Save your php.ini changes and restart your web server

    By specific site
    ***********
    This configuration works only on apache web servers.

    Open your apache web server’s configuration file (httpd.conf) and at the bottom type this line.

    php_admin_value open_basedir “none”

    Save and restart your apache web server.

    service httpd restart

    Hope this helps.. :)
     
Loading...

Share This Page