PHP mail () / sendmail does not work with Apache 2.4 PHP7 update

Since upgrading to PHP7, every single script on my server using the PHP mail function no longer works: - (

At the same time, I also upgraded from Apache 2.2 to 2.4, and I have the feeling that it is possible where the problem is.

My php.ini file contains:

sendmail_path = /usr/sbin/sendmail -t -I

Sendmail sends emails if I try from the command line, so I know that it works. I found an error that I believe is related to Apache and permissions in exim_paniclog:

failed to set gid = 995 or uid = 0 (euid = 0): force real = effective

I hope that someone may have run into this problem and could shed some light on this for me. Thanks in advance!

+4
1

, :

1) exim, trusted_users = apache ( -).

2) SELinux . , , SELinux, , , , .

3) . http://blog.gaiterjones.com/send-php-mail-ubuntu-upgrade/. LimitGIDRange ITK MPM /etc/apache 2/mods-available/mpm_prefork.conf -

LimitUIDRange 0 2000
+3

All Articles