Cleast Intwood
Power Member
- Jul 2, 2016
- 689
- 421
Ive been building some sites and tried different hosting solutions. Cpanel is nice to have obviously, but its not a necessity. These shared hosting deals are more expensive then Digitalocean/Vultr and with worse performance.
1. Signup for a digitalocean or vultr account, or both as i do.
2. Create a VM. Pick ubuntu 16.04 and install it in the region that you want to target. The smallest VM will most likely be enough, unless you have A LOT of traffic or a very big/complex site.
3. Create a serverpilot account, add your VM ip and root password and select PHP version. Id recommend 7.2 unless your specific theme is incompatible with the latest php version. Install wordpress.
4. Setup DNS. Edit nameservers for your domain at your domain registrar to digitalocean/vultr. Then add CNAME and A records on digitalocean/vultr. Theres plenty of guides on how to do this on google.
5. Install HTTPS(Domain needs to be redirected to your VM before this step works)
SSH might sound advanced but its super simple, promise. Install putty(windows) or similar ssh client and connect to your VMs ip/domain. enter root as login and the root password as password. You can just copy the root password and then right click into putty to paste it. This is we use putty here and not the console, because u cant paste into web console.
Now that you are connected thru SSH, open this guide: https://github.com/rehmatworks/serverpilot-letsencrypt
TLDR you should first enter this into console:
git clone https://github.com/rehmatworks/serverpilot-letsencrypt.git && cd serverpilot-letsencrypt && sudo mv sple.sh /usr/local/bin/rwssl && sudo chmod +x /usr/local/bin/rwssl && (crontab -l ; echo "@monthly \"sudo service nginx-sp stop && yes | letsencrypt --standalone renew &>/dev/null && service nginx-sp start && service nginx-sp reload\"")| crontab - && service cron reload
And when that is finished, enter this:
rwssl
You will have to follow the installation but its super straightforward and simple. After that you have free letsencrypt SSL installed that will renew every 3 months.
Then install simple HTTPS or similar WP plugin into ur site and your all done!
Yauyy!!
Addon: If you already have Digitalocean/serverpilot setup but without HTTPS, u can just install the https as the guide instructs, then install "better search replace" plugin, search for http://yourdomain.com (or with www if you have that as main), replace with https://yourdomain.com and then install "simple https" plugin, done!
Is there any better way to do this? Better alternatives? If so please comment!
1. Signup for a digitalocean or vultr account, or both as i do.
2. Create a VM. Pick ubuntu 16.04 and install it in the region that you want to target. The smallest VM will most likely be enough, unless you have A LOT of traffic or a very big/complex site.
3. Create a serverpilot account, add your VM ip and root password and select PHP version. Id recommend 7.2 unless your specific theme is incompatible with the latest php version. Install wordpress.
4. Setup DNS. Edit nameservers for your domain at your domain registrar to digitalocean/vultr. Then add CNAME and A records on digitalocean/vultr. Theres plenty of guides on how to do this on google.
5. Install HTTPS(Domain needs to be redirected to your VM before this step works)
SSH might sound advanced but its super simple, promise. Install putty(windows) or similar ssh client and connect to your VMs ip/domain. enter root as login and the root password as password. You can just copy the root password and then right click into putty to paste it. This is we use putty here and not the console, because u cant paste into web console.
Now that you are connected thru SSH, open this guide: https://github.com/rehmatworks/serverpilot-letsencrypt
TLDR you should first enter this into console:
git clone https://github.com/rehmatworks/serverpilot-letsencrypt.git && cd serverpilot-letsencrypt && sudo mv sple.sh /usr/local/bin/rwssl && sudo chmod +x /usr/local/bin/rwssl && (crontab -l ; echo "@monthly \"sudo service nginx-sp stop && yes | letsencrypt --standalone renew &>/dev/null && service nginx-sp start && service nginx-sp reload\"")| crontab - && service cron reload
And when that is finished, enter this:
rwssl
You will have to follow the installation but its super straightforward and simple. After that you have free letsencrypt SSL installed that will renew every 3 months.
Then install simple HTTPS or similar WP plugin into ur site and your all done!
Yauyy!!
Addon: If you already have Digitalocean/serverpilot setup but without HTTPS, u can just install the https as the guide instructs, then install "better search replace" plugin, search for http://yourdomain.com (or with www if you have that as main), replace with https://yourdomain.com and then install "simple https" plugin, done!
Is there any better way to do this? Better alternatives? If so please comment!
Last edited: