Can't change sendmail_path from user php.ini

cPanelJamesW

Linux Technical Analyst I
Staff member
Mar 13, 2018
24
1
78
Houston
cPanel Access Level
Root Administrator
Greetings,

You noted you can't make the change for the user via MultiPHP INI editor, are you receiving an error when attempting to do so in cPanel? I confirmed that I was able to manually add the 'sendmail_path' variable via MultiPHP INI Editor in cPanel using "Editor Mode"
Code:
[[email protected] public_html]$ php -i | grep -i sendmail_path
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
We have some great information on using MultiPHP INI Editor here:

Thanks!
 

cPSamuelM

Technical Analyst Team Lead
Staff member
Nov 20, 2019
196
37
103
USA
cPanel Access Level
Root Administrator
Hello @benito

Are you certain that you modified the sendmail_path setting for the same version of PHP that the site was configured to use?

Please check the "Loaded Configuration File" line shown by the phpinfo() function to ensure the correct .ini file is being loaded when you test.
 

cPSamuelM

Technical Analyst Team Lead
Staff member
Nov 20, 2019
196
37
103
USA
cPanel Access Level
Root Administrator
Hello @benito

Thank you for the additional details. Based on the description of the issue, it sounds as though the PHP handler is responsible. The following page explains this:

https://docs.cpanel.net/ea4/php/advanced-php-configuration/
[For the CGI handler] The system only uses the values that the /opt/cpanel/ea-php##/root/etc/php.ini file or the .ini files in the /opt/cpanel/ea-php##/root/etc/php.d/ directory specify.

Can you please try using a different PHP handler for the affected site, for example suPHP, and let us know if the problem persists?

You can find an overview of all the available PHP handlers here: https://docs.cpanel.net/ea4/php/php-handlers/
 

benito

Well-Known Member
Jan 8, 2004
377
10
168
Mar del Plata - Argentina
cPanel Access Level
Root Administrator
Twitter
Hello @benito

Thank you for the additional details. Based on the description of the issue, it sounds as though the PHP handler is responsible. The following page explains this:

https://docs.cpanel.net/ea4/php/advanced-php-configuration/



Can you please try using a different PHP handler for the affected site, for example suPHP, and let us know if the problem persists?

You can find an overview of all the available PHP handlers here: https://docs.cpanel.net/ea4/php/php-handlers/
Hi Samuel,

The site was using php 7.3 and LSAPI as handler, when i changed it to suphp for 7.3 it works our changes in user's php.ini

There is any way to make this works with LSAPI?

Or, can i choose the handler only for one customer and not the entire server using that version of php?

Thanks