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.

Files created by PHP owned by nobody

Discussion in 'General Discussion' started by zhongshan, Nov 5, 2008.

  1. zhongshan

    zhongshan Registered

    Joined:
    Jan 17, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Dear All:

    I'm a bit tired of users contacting me saying they want to change/remove/add files or folders that were created by PHP.

    If I chmod the directories as 777 it's unsafe.
    If I chgrp it as user:nobody and 770 it's unsafe.

    If the user nobody doesn't have write access to the directory, PHP cannot write.
    If nobody -does- have write access, then, the real user cannot make any change in those files.

    Does anybody have this kind of problems?

    What's the solution? This is very annoying.

    Thanks in advance!
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider

    You will need to switch to suphp to really solve this issue.
     
  3. zhongshan

    zhongshan Registered

    Joined:
    Jan 17, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi Nick, hi All.

    Thanks for your answer!

    Does cPanel have any How to to guide about this?

    Thanks again!

    Zhong
     
  4. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
Loading...

Share This Page