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.

open_basedir Trailing slash question

Discussion in 'Security' started by Astral God, Jul 29, 2012.

  1. Astral God

    Astral God Well-Known Member

    Joined:
    Sep 27, 2010
    Messages:
    180
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    127.0.0.1
    cPanel Access Level:
    Root Administrator
    Hi.

    Which one of this syntax is the correct one for open_basedir and why ?

    Code:
    open_basedir = /home:/usr/lib/php:/usr/local/lib/php:/tmp
    or

    Code:
    open_basedir = /home/:/usr/lib/php/:/usr/local/lib/php/:/tmp/
    Thanks.
     
  2. SB-Nick

    SB-Nick Well-Known Member

    Joined:
    Aug 26, 2008
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Last one.
    You should always end the directory restrictions swith a slash, the slash works in a way that the directory wont be considered as a prefix.
     
Loading...
Similar Threads - open_basedir Trailing slash
  1. epaslv
    Replies:
    7
    Views:
    231
  2. Clouseau
    Replies:
    2
    Views:
    474

Share This Page