Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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?

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice