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.

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:
    207
    Likes Received:
    1
    Trophy Points:
    18
    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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
  3. Valetia

    Valetia Well-Known Member

    Joined:
    Jun 20, 2002
    Messages:
    207
    Likes Received:
    1
    Trophy Points:
    18
    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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
Loading...

Share This Page