We have tied down php.ini via a .conf file in
/usr/local/apache/conf/userdata/
I want to (due to a plugin for WHMCS) define a custom php.ini for the default virtual host entries in httpd.conf - specifically this section:
I need (I think) to add ...
... to each of these VH entries, so I can define a different location for php.ini.
I could of course, just edit it in, but I know it will be overwritten. I'm aware of /var/cpanel/templates/main.default which contains the template for this area of httpd.conf, but again, if I edit it, it will be overwritten on the next cpanel update.
I suspect this requires me to create a .local file in the templates directory, and do something with distiller, but this is where I can't work out what to do next.... Help! :D
/usr/local/apache/conf/userdata/
I want to (due to a plugin for WHMCS) define a custom php.ini for the default virtual host entries in httpd.conf - specifically this section:
Code:
<VirtualHost 0.0.0.0:8888>
ServerName server.domain.co.uk
DocumentRoot /usr/local/apache/htdocs
ServerAdmin [email protected]
<IfModule mod_suphp.c>
suPHP_UserGroup nobody nobody
</IfModule>
</VirtualHost>
# Default vhost for unbound IPs
<VirtualHost *>
ServerName server.domain.co.uk
DocumentRoot /usr/local/apache/htdocs
ServerAdmin [email protected]
<IfModule mod_suphp.c>
suPHP_UserGroup nobody nobody
</IfModule>
</VirtualHost>
Code:
Include "/usr/local/apache/conf/userdata/std/2/nobody/*.conf"
I could of course, just edit it in, but I know it will be overwritten. I'm aware of /var/cpanel/templates/main.default which contains the template for this area of httpd.conf, but again, if I edit it, it will be overwritten on the next cpanel update.
I suspect this requires me to create a .local file in the templates directory, and do something with distiller, but this is where I can't work out what to do next.... Help! :D