LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   php mail() Fedora Core 3 (https://www.linuxquestions.org/questions/linux-newbie-8/php-mail-fedora-core-3-a-275888/)

splashjdk 01-09-2005 10:19 PM

php mail() Fedora Core 3
 
I can not send email from my web server when using php mail() function. Sendmail works great when I use command line.

I have checked apache error log and it displays the following message "Program mode requires special privileges, e.g., root or TrustedUser."

I have added "apache" as a user under /etc/mail/trusted-users. It didn't fix the problem.

Any help will be greatly appreciated. This is more like a permission problem but I can not figure out for now.

SJ

iluvatar 01-17-2005 06:01 AM

are you sure apache is running as user 'apache'? check the httpd.conf for User and Group settings, I thought the default is to run as user 'nobody' and group 'nobody'.

greetz,
.-=~ iluvatar ~=-.

splashjdk 01-18-2005 07:56 PM

Hi iluvatar,

my httpd.conf files has the following settings:
User apache
Group apache

I ran ps -ef | grep -i httpd and got the following:


root 18267 1 0 Jan18 ? 00:00:00 /usr/sbin/httpd
apache 18270 18267 0 Jan18 ? 00:00:00 /usr/sbin/httpd
apache 18271 18267 0 Jan18 ? 00:00:00 /usr/sbin/httpd
apache 18272 18267 0 Jan18 ? 00:00:00 /usr/sbin/httpd
apache 18273 18267 0 Jan18 ? 00:00:00 /usr/sbin/httpd
apache 18274 18267 0 Jan18 ? 00:00:00 /usr/sbin/httpd
apache 18275 18267 0 Jan18 ? 00:00:00 /usr/sbin/httpd
apache 18276 18267 0 Jan18 ? 00:00:00 /usr/sbin/httpd
apache 18277 18267 0 Jan18 ? 00:00:00 /usr/sbin/httpd


Thanks,


All times are GMT -5. The time now is 09:36 AM.