PHP mail() / sendmail not working since Apache 2.4 PHP7 upgrade -


since upgrading php7 every single script on server using php mail function no longer works :-(

at same time, upgraded apache 2.2 2.4, , have feeling possibly problem lies.

my php.ini file contains:

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

sendmail send emails if try command line, know working. have found error believe possibly related apache , permissions in exim_paniclog:

unable set gid=995 or uid=0 (euid=0): forcing real = effective

i hope may have come across problem , possibly shed light on me. in advance!

three things try:

1) in exim, set trusted_users = apache (or whatever web server user is).

2) try turning off selinux , resarting everything. if works now, didn't work previously, you'll need either disable selinux or learn how configure allow need.

3) see http://blog.gaiterjones.com/send-php-mail-ubuntu-upgrade/. explicitly define itk mpm module limitgidrange parameter in /etc/apache2/mods-available/mpm_prefork.conf module configuration like

limituidrange 0 2000 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -