Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    56
    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:
    68
    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.. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice