Skip to content

Instantly share code, notes, and snippets.

@conkonig
Last active April 30, 2020 13:30
Show Gist options
  • Save conkonig/5425addf5d1b2300d8796783e76be470 to your computer and use it in GitHub Desktop.
Save conkonig/5425addf5d1b2300d8796783e76be470 to your computer and use it in GitHub Desktop.
ubuntu 16.04, 18.04, server setup for wp hosting
# Initial Server Setup
- add a non root user
- give sudo privileges
- enable firewall
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04
# Also allow http and https through the firewall
sudo ufw allow http
sudo ufw allow https
# Execute sudo with password every time
https://askubuntu.com/questions/147241/execute-sudo-without-password
# Install nginx and mariadb and wordpress
https://www.tecmint.com/install-wordpress-with-nginx-mariadb-php-on-ubuntu-18-04/
# Fix the wordpress file permissions
https://gist.github.com/Adirael/3383404
# Letsencrypt https
https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment