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.

How to use the Prevent the user 'nobody'

Discussion in 'General Discussion' started by SupermanInNY, May 2, 2004.

  1. SupermanInNY

    SupermanInNY Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16
    I have this enabled:

    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.)

    How then do I enable users to send emails using PHP and mail() function?

    Could use some help on this.

    Is there a way to set up the mail() function such that it sends it from a configured email?

    Thanks?

    -Alon.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yes - you need to enable phpsuexec.
     
  3. SupermanInNY

    SupermanInNY Well-Known Member

    Joined:
    Jul 19, 2003
    Messages:
    255
    Likes Received:
    0
    Trophy Points:
    16
    It is enabled. Has been all the time:

    php -v
    PHP 4.3.4 (cgi) (built: Feb 5 2004 23:54:16)
    Copyright (c) 1997-2003 The PHP Group
    Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
    with Zend Extension Manager v1.0.1, Copyright (c) 2003, by Zend Technologies
    with Zend Optimizer v2.5.1, Copyright (c) 1998-2004, by Zend Technologies


    Still I can't send emails out when enabling the 'lock'.
    I get error msgs to my email and the mail does't get out.

    This is important for one of my clients that has a "Tell a Friend" page and it doesn't allow him to send emails out.
    He gets error msgs and the emails don't get sent out.

    -Alon.
     
  4. alex042

    alex042 Well-Known Member

    Joined:
    Sep 13, 2003
    Messages:
    76
    Likes Received:
    0
    Trophy Points:
    6
    Zend optimizer is not the same thing as phpsuexec. You can either rebuild apache with phpsuexec, allow mail to be sent as nobody, or rewrite part of the script that has the mail function to include an email address.
     
  5. cyberrob

    cyberrob Active Member

    Joined:
    Mar 5, 2004
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    No the above php -v shows cgi instead of cli which means phpsuexec or similar is installed.
     
Loading...

Share This Page