KD0IGO

Member
Jan 13, 2012
24
0
51
St. Charles, MO
cPanel Access Level
DataCenter Provider
Hello.

We've recently started moving from of our Apache builds over to Prefork. I'm looking for a way to update Prefork settings via SSH/CLI to various systems.

The only way that I see to manage these settings as of now is to log into WebHost Manager, manually making the modifications, then rebuilding the Apache configuration. I'm looking for a way to automate these setting updates. Also, is it possible to update the prefork settings without rebuilding the httpd conf?

Thanks!
 

KurtN.

Well-Known Member
Jan 29, 2013
95
1
83
cPanel Access Level
Root Administrator
Hi KD0IGO,

As you know, the Apache MPM configuration options (that control at a global level) are typically adjusted by going to WHM -> Service Configuration -> Global Configuration.

The apache configuration options you select are then stored in the YAML configuration file, /var/cpanel/conf/apache/local.

If I were trying to accomplish this quickly, I would likely log into a single WHM server, make my changes, copy the resulting YAML configuration file to all of the other machines, then run /scripts/buildhttpdconf. This way I don't need to worry about malformed configuration issues.

If you have any additional questions, or perhaps this isn't quite what you need, please let us know.