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.

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

Share This Page