How to change the PHP email in the Apache VirtualHosts

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » CustomBuild

How to change the PHP email in the Apache VirtualHostsLast Modified: May 7, 2014, 2:30 pm
You might see this value in your User's httpd.conf file:

php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f'

where user is the account owner for

If you'd like to change this value, go to:

Admin Level -> Custom Httpd Configuration ->

In the top text area, paste this code


to whichever email value you'd like, and this will be used in the VirtualHost configs for that domain.

For php-fpm (nginx, and some apache setups), the Custom Httpd Config page does not currently fill the require CUSTOM1 tokens for the User's php-fpm.conf file, thus the EMAIL token cannot currently be easily overridden.
If you do need to change the EMAIL token for a php-fpm.conf file, create a custom copy of the php-fpm.conf template, and change the EMAIL token to have if-then-else statements, so it only affects one domain, eg:

|*if DOMAIN=""|

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST