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 wos
Reset WordOps username and password after setup:
wo secure --auth
Setup 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_cf
Setup Dropbox access token:
bash /root/dropbox/dropbox_uploader.sh
Database 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 /wordpress
Common 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/cache
Remember to set database host on .env file as
localhost
instead of127.0.0.1
.