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

    Joined:
    Dec 7, 2010
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    53
    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:
    /https://github.com/tripflex/cpsetup/blob/master/cpsetup

    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?

    Thanks!!
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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