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.

php - nobody

Discussion in 'General Discussion' started by d4rkl0rd, Jun 6, 2004.

  1. d4rkl0rd

    d4rkl0rd Active Member

    Joined:
    Feb 23, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
    Hello,

    when I use PHP script to create a new file [e.g. fopen("file.txt","w")] on my server, the file and group owner is always "onbody". Is this the right way it's suppose to behave?

    Or is it suppose to be "myuser" owner?

    The reason I'm asking is because I can't edit or even delete files created by "onbody" using the cpanel, ftp or shell terminal. Please advise
     
  2. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    By default, php runs as the web server (user=nobody) and this behavior is consistent with that. If you want the files to be owned by the user, you'll need to recompile to enable phpsuexec. Doing this may raise other issues due to permissions and ownership, but it's the price to pay to switch between the two.
     
  3. d4rkl0rd

    d4rkl0rd Active Member

    Joined:
    Feb 23, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    India
Loading...

Share This Page