We're, as of late, setting up a lot of Servers. I'd love to cook up a script that does the following:
- Read from a CLI parameter which domain it's supposed to set up
- Install all dependencies for our common projects (web server, php, etc)
- Create an appropriate directory inside /var/www
- Create a config file for the web server (whether it is apache or nginx)
- Fetch an SSL cert for the domain
That should be it.