“。sendmail_path”使用“ .user.ini”文件的安装失败(php-fpm)

问题描述 投票:0回答:1

我使用PHP 7.3:

PHP Version 7.3.11-1+ubuntu18.04.1+deb.sury.org+1
Server API  FPM/FastCGI

并且我需要为不同的虚拟主机(应用程序)使用不同的sendmail配置。

我尝试使用.user.ini文件来配置PHP参数:

sendmail_from="[email protected]"
sendmail_path="/usr/bin/agent -c profile1"

第一个参数被覆盖,但第二个则没有:enter image description here

如果使用PHP-FPM,如何为不同的虚拟主机/应用程序配置不同的sendmail_path参数?

php apache ini fpm
1个回答
0
投票

sendmail_path是PHP_INI_SYSTEM类设置,在FPM池配置中是php_admin_value[]。而sendmail_from是标准的PHP_INI_ALL选项。

因此,您不能基于.user.ini /目录或ini_set()覆盖sendmail二进制设置。

© www.soinside.com 2019 - 2024. All rights reserved.