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.

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 Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

Share This Page