In this article, I will show you how do I install Ghost and WordPress in Digitalocean via marketplace one-click apps, it’s pretty simple and easy to use, but we still do a few things to configure about customize domain.
First all, you need to visit DigitalOcean marketplace, there are a ton of one-click apps to ready install.
You need to SSH application to configure that, SSL certificate and register your domain ( Let’s encrypt).
1$ ssh root@use_your_droplet_ip
The important thing is, how do I bind my customize domain for my site? There is a workflow by me.
Navigate to DigitalOcean panel/Networking, set CNAME and A RECORD for your domain here is an example:
1CNAME www.yourdomain.com2A RECORD yourdomain.com
Also, it has NameServers by default.
1NS yourdomain.com ns1.digitalocean.com2NS yourdomain.com ns2.digitalocean.com3NS yourdomain.com ns3.digitalocean.com
Next, navigate to your domain provider, for me, I’m in name.com, set nameservers.
If you’re using WordPress, you need to SSH and set SSL certificate.
1$ certbot --apache -d example.com -d www.example.com
Next delete 80 tcp.
1$ ufw delete allow 80/tcp
Here is the documentation for detail.
For now you have done it, Cheers!