Simple collection of shell commands for managing apache2 websites.
Used Laravel Homestead so far but i dislike VirtualBox, which in fact corrupted my Homestead VM by unknown reason and I lost my dev environment. Decided i will use Ubuntu in VMWare Workstation but had to manage dev sites somehow... and here we go!
Signature: create-website.sh DOMAIN PHP_VERSION
sudo ./create-website.sh starter.test 7.4
Signature: delete-website.sh DOMAIN DELETE_FILES=0
sudo ./delete-files.sh starter.test 1
Signature: install-php.sh PHP_VERSION
sudo ./install-php.sh 7.4
Signature: switch-cmd-php PHP_VERSION
sudo ./switch-cmd-php 7.4
- Add proper output to the scripts and surpress their outputs
- Add more scripts for deleting sites, disabling sites, etc.
- Add database management scripts
- etc...
Feel free to contribute