The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache Prefork via CLI

Discussion in 'EasyApache' started by KD0IGO, Mar 5, 2013.

  1. KD0IGO

    KD0IGO Member

    Jan 13, 2012
    Likes Received:
    Trophy Points:
    St. Charles, MO
    cPanel Access Level:
    DataCenter Provider

    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?

  2. cPanelKurtN

    cPanelKurtN Well-Known Member
    Staff Member

    Jan 29, 2013
    Likes Received:
    Trophy Points:
    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.

Share This Page