简体   繁体   English

更改 php.ini 值问题

[英]Change php.ini value issue

I want to change the php.ini this option sendmail_path to this below:我想将php.ini这个选项sendmail_path更改为以下:

sendmail_path /usr/sbin/sendmail -t -i

PHP ini file is loaded from: /opt/php72/etc/php.ini . PHP ini 文件从以下位置加载: /opt/php72/etc/php.ini

The problem is that this value can be changed only from Master value, the Local value is still displayed as following:问题是这个值只能从Master值改变, Local值仍然显示如下:

sendmail_path   /usr/sbin/sendmail -t -i -f admin.example.com

Any ideas where should I look for to change this value, so it applies for both Local and Master values?我应该在哪里寻找更改此值的任何想法,以便它适用于本地和主值? Thank you for your help.谢谢您的帮助。

So, I have figured it out by myself.所以,我自己想通了。 The problem was that this value was set in the Apache configuration file.问题是这个值是在 Apache 配置文件中设置的。 So, I have changed it to php_admin_value sendmail_path "/usr/sbin/sendmail -t -i" , restarted the server and now everything works well.因此,我将其更改为php_admin_value sendmail_path "/usr/sbin/sendmail -t -i" ,重新启动服务器,现在一切正常。 The issue is resolved.问题已解决。 Thank you.谢谢你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM