Bash scripts for creating PHP-FPM pools, Nginx configs and databases
Clone this repository
git clone [email protected]:KvanSteijn/bashtools.git
cd bashtools
Chmod the bash files
chmod u+x addwebsite adddatabase addwebsiteconfig enablewebsite delwebsite deldatabase delwebsiteconfig disablewebsite improveddatabase
Run this command for creating complete website (website directory, PHP-FPM pool, Nginx config and database).
./addwebsite WEBSITENAME EXTENSION WEBSITETYPE
Create default website.
./addwebsite example com
Create wordpress website.
./addwebsite example com wordpress