How to use the Prevent the user 'nobody'

SupermanInNY

Well-Known Member
Jul 19, 2003
255
0
166
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.
 

SupermanInNY

Well-Known Member
Jul 19, 2003
255
0
166
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.
 

alex042

Well-Known Member
Sep 13, 2003
76
0
156
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.
 

cyberrob

Active Member
Mar 5, 2004
33
0
156
No the above php -v shows cgi instead of cli which means phpsuexec or similar is installed.