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 script always 'nobody' as owner?

Discussion in 'General Discussion' started by jacksony, Dec 6, 2005.

  1. jacksony

    jacksony Well-Known Member
    PartnerNOC

    Joined:
    Nov 30, 2005
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    Help! all my files/folders created from my PHP scripts are always assigned to 'nobody' instead of the user of the account it is installed into, as a result the scripts installed this way can't be run properly.

    Can anyone please enlighten me? Thank you very much! urgent help if you could email me at jackson@apc.sg

    Thank you!
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    That will be because PHP is running as the user 'nobody'.

    Enabling phpsuexec will cause PHP to run as the appropriate user and from then onwards all files created by PHP scripts will have the ownership that you would expect.

    Try searching the forums for 'phpsuexec' to find out more about it and how to enable it.
     
Loading...

Share This Page