Configure Apache Global Configuration through script (command line)


Dec 7, 2010
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?