fbpx
Linux 101

Bash: Automate enabling of Apache sites and modules

Want to automate the enabling and disabling of Apache sites and modules? Tired of running those a2enmod, a2dismod, a2ensite, and a2dissite commands? And then the cleanup involved with the same commands and the Apache2 daemon?

Check out this Bash wrapper for the Apache operations commands. It’s free to use and modify.

For the happy Linux and Bash experimenters out there, it’s a useful starting point to get started with Bash functions.