I’ve had the fortune of having to setup a lot of WordPress sites on different hosting providers. I am a fan of the Digital Ocean Droplets and I run a few of them myself for projects. I thought I’d pull together a list of the different guides that I have used in the past to get WordPress up and running securely on a Droplet. I’m still looking at ways to improve so appreciate any feedback/suggestions in the comments section.
Configure the LAMP Stack
Install and Secure phpMyAdmin
Configure Virtual Hosts to host multiple sites from one droplet
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-18-04
Install WordPress
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04
Configure Secure Updates for WordPress
In the link above, the only change I had to do as I was running on Ubuntu 18.04 was instead of running:
sudo apt-get install php5-dev libssh2-1-dev libssh2-php
I had to run:
sudo apt-get install php-dev php-ssh2
Now to allow themes/plugins to update from the Control Panel, I had to edit the wp-config.php file. I add the following line:
define('FS_METHOD', 'ssh2');