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.

Prevent the user 'nobody' error

Discussion in 'General Discussion' started by equens, Apr 8, 2003.

  1. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    Hello, If I select --Prevent the user 'nobody' from sending out mail to remote addresses (php and cgi scripts generally run as nobody if you are not using phpsuexec and suexec respectively.)-- in Tweak Settings nobody of my server can send emails thrue php o perl.

    Ej:

    PHP:

     
    //compose email
     
    $text "This is my text\n";

      
    //send email .. 
      
    mail("$email","My subjetc",$text"From: mydomain.com <webmaster@mydomain.com>"); 

    What can I do? Thanks!!!
     
  2. Hoster2k

    Hoster2k Well-Known Member

    Joined:
    Jun 17, 2002
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    run phpsuexec and suexec so php and perl scripts can send mail respectively
     
  3. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    how to?

    Hello Hoster2k, thanks for your reply, how can I run phpsuexec and suexec to send mail?

    Thanks again!
     
  4. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    suExec is currently enabled

    Hello again, suExec is currently enabled and nobody of my server can send emails thrue php o perl.
     
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    To get phpsuexec working the easiest is to run /scripts/easyapache and choose option #6
     
Loading...

Share This Page