Yes, but due to that fact that it is indeed not a template, the process is slightly less pretty.
1) Edit /usr/local/apache/conf/includes/pre_main_2.conf, add a custom include, like:
Code:
Include "/usr/local/apache/conf/myphp.conf"
The custom include would be your version of php.conf
2. Remove the php.conf include from httpd.conf, then run the distiller:
Code:
/usr/local/cpanel/bin/apache_conf_distiller --update
3. Restart Apache
I'd also perhaps advise that you add a script hook (/scripts/posteasyapache) to make sure php.conf is removed every time you rebuild. It'll get added back as long as EA is configured to compile PHP. (create the file and make sure to chmod 750, etc)
Code:
#!/bin/bash
# If the conf file is included in httpd.conf remove it
grep "php.conf" /usr/local/apache/conf/httpd.conf >/dev/null 2>&1
if [[ $? -eq 0 ]]; then
sed '/php.conf/d' -i /usr/local/apache/conf/httpd.conf
/usr/local/cpanel/bin/apache_conf_distiller --update
killall -USR1 httpd
fi