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!

How would one customize the open_basedir global and individual values?

Discussion in 'General Discussion' started by Valetia, Aug 25, 2013.

  1. Valetia

    Valetia Well-Known Member

    Joined:
    Jun 20, 2002
    Messages:
    213
    Likes Received:
    1
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    When open_basedir is enabled via WHM, how does one customize the following values:

    a) Global open_basedir value

    b) Individual open_basedir value (per cPanel account)

    Thanks in advance.
     
    #1 Valetia, Aug 25, 2013
    Last edited: Aug 25, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you let us know the specific value you are attempting to modify? For example, you can enable/disable PHP's open_basedir protection globally and on a per-account basis via:

    "WHM Home » Security Center » PHP open_basedir Tweak"

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Valetia

    Valetia Well-Known Member

    Joined:
    Jun 20, 2002
    Messages:
    213
    Likes Received:
    1
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    We are attempting to modify the 'open_basedir' value that shows up in phpinfo().

    Thank you.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    This value is configured in the /usr/local/lib/php.ini file:

    Code:
    [/]# grep open_base /usr/local/lib/php.ini
    ; open_basedir, if set, limits all file operations to the defined directory
    ;open_basedir =
    
    Thank you.
     
    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