Here’s what it does, in a nutshell:
- Creates a new directory for the site (/var/www/DOMAIN.COM/public_html)
- Creates a new directory for log files (/var/www/DOMAIN.COM/logs)
- Sets correct owner/group.
- Creates a simple index.html file to show the site is working.
- Asks for restart.
To use the script type: