John Davidson

server - Change php.ini value issue

0 comments
Message:


I want to change the php.ini this option sendmail_path to this below:


sendmail_path /usr/sbin/sendmail -t -i

PHP ini file is loaded from: /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:


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.



My Answer:
To change the sendmail_path value in php.ini so that it applies to both Local and Master values, you can try the following steps:

1. Check if there are any other php.ini files being loaded in addition to the one located at /opt/php72/etc/php.ini. You can do this by running the following command in your terminal:

php -i | grep "Loaded Configuration File"


2. Once you have identified all the php.ini files being loaded, open each of them and search for the sendmail_path directive. Make sure to change the value to /usr/sbin/sendmail -t -i in all instances.

3. Restart your web server to apply the changes. You can do this by running the following command:

sudo service apache2 restart


4. After restarting the web server, check the phpinfo() output to verify that the sendmail_path value has been updated for both Local and Master values.

If you are still facing issues after following these steps, you may need to consult with your server administrator or hosting provider for further assistance.

Rate this post

3 of 5 based on 7880 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us