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!

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:
    66
    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:
    175
    Likes Received:
    9
    Trophy Points:
    68
    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.
     
    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