Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP, Sendmail problem, Please help!

Status
Not open for further replies.

DeatD

Programmer
Jan 17, 2005
4
FI
I have this problem with my php/sendmail. I try to use mail()-function, but nothing happens.

In /var/log/maillog there is errormessage:

sendmail[2999]: NOQUEUE: SYSERR(apache): /etc/mail/sendmail.cf: line 0: cannot open: Permission denied

any help? I'm pretty sure that the problem is in file premissions, but what file?
 
maybe /etc/mail/sendmail.cf? Is the sendmail executable suid root?
 
the sendmail.cf looks like this:

421071 -rwxr-xrwx 1 root root 57621 Jan 17 20:23 sendmail.cf
 
Can you run the sendmail binary directly when you're logged in as the user that PHP is running as?

If you're not sure who PHP is running as you can make a quick script
Code:
<?php
$result = `whoami`; //those are backticks not single quotes
echo $result
?>
 
Php is working and i can't login as apache because its nologin. But problem is now solved, i did full reinstall of linux. :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top