This project is an automated script to install WordOps and deploy a web server faster. It also adds a dropbox script since wordops has no backup method.
Wordops Documentation: https://docs.wordops.net/getting-started/prerequesites/
- Base Stack
- Ufw Stack
- Fail2ban Stack
- Sendmail Stack
- Node.js 10.x
- Supervisor
- Dropbox Script
Execute script (WordOps will ask you some informations about Git and Ufw will ask for firewall rule confirmation):
wget -qO wos https://raw.githubusercontent.com/srdante/wordops-setup/master/setup.sh && sudo bash wosReset WordOps username and password after setup:
wo secure --authSetup Cloudflare keys to validate SSL:
export CF_Key=""
export CF_Email=""Create website with Cloudflare SSL (Domain must already be pointed to IP before executing this command):
wo site create example.com --php74 --mysql --letsencrypt=wildcard --dns=dns_cfSetup Dropbox access token:
bash /root/dropbox/dropbox_uploader.shDatabase backup Cron example:
0 * * * * mysqldump wordpress > /root/dropbox/wordpress-$(date +%Y-%m-%d-%H-00-00).sql && bash dropbox_uploader.sh upload /root/dropbox/wordpress-$(date +%Y-%m-%d-%H-00-00).sql /wordpressCommon permission commands to fix files permission (Laravel folders):
sudo chown -R $USER:www-data storage
sudo chown -R $USER:www-data bootstrap/cache
chmod -R 775 storage
chmod -R 775 bootstrap/cacheRemember to set database host on .env file as
localhostinstead of127.0.0.1.