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 and sending mail as "nobody"

Discussion in 'E-mail Discussions' started by dstlink, Oct 14, 2007.

  1. dstlink

    dstlink Member

    Joined:
    Apr 23, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    The Woodlands, TX
    I upgraded from Apache 1.3 to 2.2 this weekend. As part of that process it looks like phpsuexec was replaced with suphp.

    I checked the option to add the mod_suphp when I built apache but it did not show up in the httpd.conf file. So I added the line to load the module and turn it on.

    I've had the WHM->Tweak about not allowing the nobody user to send e-mail turned on for quite some time and everything seemed to be fine as phpsuexec would handle the user scripts that sent out mail. But with suphp I'm starting to get e-mails in my box from the system with the error message about the nobody user not being allowed to send e-mails.

    Is there something else I need to do to get suphp to work like phpsuexec? It did not appear to be enabled the first couple of times I built apache, but after adding the lines in httpd.conf it appears to be working. I base that assumption using Chirpy's firewall server security tool; it was saying to check suphp and after adding the lines it says OK.
     
  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
    If you are still experiencing this issue with SuPHP apparently trying to mail as nobody, you should submit a support ticket directly to us :).
     
  3. dstlink

    dstlink Member

    Joined:
    Apr 23, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    The Woodlands, TX
    I will install an app that wants to send e-mail and test it further. The customer that was impacted reconfigured their application to use authenticated smtp so I resolved it that way.

    But I should be able to see the user context that php is running under in the apache logs, right? That would be another way I could see which user the program is running under?
     
  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
    I know it definitely shows up in the mail logs, not sure about the Apache logs. The script *should* run as the user whose account it is in.
     
Loading...

Share This Page