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!

Configure Apache Global Configuration through script (command line)

Discussion in 'cPanel Developers' started by HostT, Oct 17, 2014.

  1. HostT

    HostT Member

    Dec 7, 2010
    Likes Received:
    Trophy Points:
    I'm trying to build a script to automate the repetitive tasks when setting up and securing a server. I've got most of the items taken care of with exception of the Apache Global Configuration.

    Can someone please point me in the right direction of where I would need to either append the configuration to a file, replace in a file, and any scripts that need to be ran after doing so?

    Here's the script i'm working on which I am releasing as open source:

    Mainly I need to:
    TraceEnable off
    ServerSignature off
    ServerTokens ProductOnly
    SSLCipherSuite .......

    How can I do this from command line without having to go through the WHM web ui?

    What about background process killer? Is there any way to select all options and enable from command line?

  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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