https://github.com/miguilimzero/wordops-setup
Automated script to install WordOps and deploy a web server faster.
https://github.com/miguilimzero/wordops-setup
php server web wordops
Last synced: about 1 month ago
JSON representation
Automated script to install WordOps and deploy a web server faster.
- Host: GitHub
- URL: https://github.com/miguilimzero/wordops-setup
- Owner: miguilimzero
- License: mit
- Created: 2020-06-26T11:25:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-02T02:12:11.000Z (almost 6 years ago)
- Last Synced: 2025-03-06T17:51:39.731Z (over 1 year ago)
- Topics: php, server, web, wordops
- Language: Shell
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordOps Setup
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/
### WordOps Installs
- Base Stack
- Ufw Stack
- Fail2ban Stack
- Sendmail Stack
### Other Installs
- Node.js 10.x
- Supervisor
- Dropbox Script
### Setup Guide
Execute script `(WordOps will ask you some informations about Git and Ufw will ask for firewall rule confirmation)`:
```sh
wget -qO wos https://raw.githubusercontent.com/srdante/wordops-setup/master/setup.sh && sudo bash wos
```
Reset WordOps username and password after setup:
```sh
wo secure --auth
```
### Cloudflare Guide
Setup Cloudflare keys to validate SSL:
```sh
export CF_Key=""
export CF_Email=""
```
Create website with Cloudflare SSL `(Domain must already be pointed to IP before executing this command)`:
```sh
wo site create example.com --php74 --mysql --letsencrypt=wildcard --dns=dns_cf
```
### Dropbox Guide
Setup Dropbox access token:
```sh
bash /root/dropbox/dropbox_uploader.sh
```
Database backup Cron example:
```sh
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
```
### Permission Guide
Common permission commands to fix files permission `(Laravel folders)`:
```sh
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 of `127.0.0.1`.