• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

php mail() problem still .....

D

dave_s_wang

Guest
Still having a php mail issue. The error in the error log is :

sh: /usr/sbin/sendmail: Permission denied

I've tried this with the folling sendmail_path's in php.ini (rebooting every time i changed it)

sendmail_path = /usr/sbin/sendmail -t -i
sendmail_path = /var/qmail/bin/qmail-inject
sendmail_path = /var/qmail/bin/sendmail -t -i

the permissions are:
lrwxrwxrwx 1 root root 23 Oct 11 19:21 /usr/sbin/sendmail -> /var/qmail/bin/sendmail

-r-xr-xr-x 1 root qmail 41976 Aug 24 02:21 /var/qmail/bin/qmail-inject

-r-xr-xr-x 1 root qmail 9756 Aug 24 02:21 /var/qmail/bin/sendmail

Thanks again in advance. This problem has been plaguing me for awhile, any help would be appreciated.
 
so i finally coughed up the $75 to fix this problem since no one has come up with a solution in the forums. since i've received a lot of help here i decided to contribute what the tech support suggested which fixed the problem:

/usr/sbin/setenforce 0

this only solves the problem temporarily until you reboot the server. you need to comment out or adjust the /etc/selinux/config :

SELINUX=enforcing

tech support said to comment it out, but Im not exactl sure what selinux is, so I just used the command line entry to unset it before i made the config change.

hope this helps someone.
-d
 
Back
Top