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.

suPHP - Apache processes not running as user?

Discussion in 'EasyApache' started by Bailey, Sep 29, 2008.

  1. Bailey

    Bailey Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Wisconsin
    In an effort to improve server security, I've recently upgraded Apache to run with suphp. Everything seemed to go fine, no errors were noted anywhere on any sites. As web pages were visited on the sites, the continued to show up in 'top' as nobody processes.

    I read further on the cPanel forums and saw that suphp can be resource-intensive, so to speed things up, it can be helpful to run fastcgi + an accelerator. So, I recompiled Apache again, this time to include fastcgi and eAccelerator. This too seems to have gone fine -- no errors.

    As I visit pages on sites, they still show up in 'top' as nobody processes, they are still not owned by the user.

    So I ran

    Code:
    /scripts/chownpublichtmls
    to make all nobody files owned by the appropriate user. This too went fine, no errors. Restarted Apache. Finally even rebooted the server. The serving of web files is still shown as a nobody process in 'top'.

    Isn't running suphp supposed to make Apache processes run under the appropriate user, instead of nobody?? :confused: What am I doing wrong?

    Thank you muchly :)

    :D Bailey
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    SuPHP makes PHP processes run as the user, not Apache processes.
     
  3. Bailey

    Bailey Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Wisconsin
    Oh, *Duh* :rolleyes: ... thank you David. I knew I was missing something obvious there. Geeeeeez. :p

    :D Bailey
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Lol, don't worry - it happens :)
     
Loading...

Share This Page