API or Script to edit apache configuration
Completed
As a cPanel System Administrator, I would like to be able to use a script or API call to modify apache configuration settings located inside /var/cpanel/conf/apache/local instead of having to edit this via WHM or manually via SSH, so that we can automate apache settings across multiple WHM servers. This would give us the ability to configure things such as 'Perfect SSL secrecy' etc via automated scripts.
If you are wanting all of your server's Apache configs to be the same, why not just copy the /var/cpanel/conf/apache/local file across all of your servers and rebuid apache with /scripts/rebuildhttpdconf ?
You can also parse /var/cpanel/conf/apache/local as a YAML file (see the YAML extension in PHP - yaml_parse() - to parse the contents into a usable array.
If you are wanting all of your server's Apache configs to be the same, why not just copy the /var/cpanel/conf/apache/local file across all of your servers and rebuid apache with /scripts/rebuildhttpdconf ?
You can also parse /var/cpanel/conf/apache/local as a YAML file (see the YAML extension in PHP - yaml_parse() - to parse the contents into a usable array.
Since "/var/cpanel/conf/apache/local" in cPanel 84 is deprecated our automated deployment will be broken. We need some way to change apache configuration without human intervention.
Since "/var/cpanel/conf/apache/local" in cPanel 84 is deprecated our automated deployment will be broken. We need some way to change apache configuration without human intervention.
Replies have been locked on this page!