For years we’ve been using this setting in each sites’ apache configuration file:
php_admin_value sendmail_path ‘/usr/sbin/sendmail -t -i -firstname.lastname@example.org’
along with sendmail to relay outbound mail via local host.
I see that this particular variable has moved from apache to php-fpm www.conf file.
What I list in this post as billingid-site1 is the value to identify a site. Often we have a pair of sites for the same base domain - one for the live site eg. www.example.com and a second for staging.example.com.
Is there an approach to let me set this php variable in php-fpm per site?
For a bit more fun, I’d like to match it with the version of PHP the site uses. That is being done like this:
The most complex situation is server that hosts multiple tenants on Rocky Linux with apache and multiple versions of PHP installed.