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!

mkdir command via PHP

Discussion in 'Security' started by JustSomeGuy, Nov 14, 2013.

  1. JustSomeGuy

    JustSomeGuy Active Member

    Joined:
    Oct 13, 2007
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    51
    I have a server running easyapache and suPHP
    When a PHP file run by a user creates a directory, it is created as the user nobody and not the user.
    If there something I am missing? I would like the directory created as user.user
    Also, the only way I will mkdir, is If the directory is set to 777
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    I do not recommend using 0777 permissions on a directory due to the security implications of this action. Check to see if suPHP is enabled with the following command:

    Code:
    /usr/local/cpanel/bin/rebuild_phpconf --current
    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