How to configure Apache via command line?

Asked

Viewed 221 times

2

I wonder if it is possible to configure Apache using command line (Terminal). So far, the most I can do is to run the command apachectl -S which gives me the settings, but this value returned is not very user friendly. There is some way to receive these inputs in a/JSON/object array?

  • You could create a script that received Json, update the Apache configuration, and run the command to reload the configuration.

  • Seems to me to be the only output even. Turn this output into Json in hand.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.