In this following tutorial i will show you How install Wordpress On DigitalOcean With One Click, Wordpress power 36% of the web and has been a staple in the blogging and website industry for a while now.
Table of Contents
- Installing WordPress on DigitalOcean
- Using the WordPress DigitalOcean 1-Click
- What comes with this 1-Click DigitalOcean WordPress install?
- Setting Up WordPress
- LetsEncrypt and Making WordPress HTTPS
- Conclusion
Wordpress is a fantastic tool that has come a long way. You can use it to:
- Power your website
- Use as a Headless CMS via REST API
Installing WordPress on DigitalOcean
DigitalOcean has a Marketplace where there are applications that we can deploy with 1-click.Using the WordPress DigitalOcean 1-Click
We can find the WordPress 1-click installation on the DigitalOcean Marketplace: marketplace.digitalocean.com/apps/wordpressThe installation instructions on this page are good to read through. We'll be following along with this and also bringing in our own screenshots for our walkthrough.
Be sure to pick the location closest to your customers.
You'll be taken back to your dashboard where you can see your new droplet being created!
What comes with this 1-Click DigitalOcean WordPress install?
This install does a few things out of the box for us. It's convenient since we won't have to install a lot of this ourselves:- Enables the UFW firewall to allow only SSH (port
22
, rate limited), HTTP (port80
), and HTTPS (port443
) access. - Sets the MySQL root password, runs
mysql_secure_installation
, and creates awordpress
user with the necessary permissions. Note, the Droplet root user will not be prompted for the MySQL password. - Sets up the
debian-sys-maint
user in MySQL so the system’s init scripts for MySQL will work without requiring the MySQLroot
user password. - Creates the initial WordPress configuration file to set up salt keys and allow the WordPress instance to connect to the database.
- Disables XML-RPC to help prevent DDoS and other brute force attacks.
- Modifies some of PHP’s settings to increase the maximum filesize and execution time.
- Enables the Apache rewrite module so the WordPress permalink feature will work.
- Configures Apache with
UseCanonicalName On
to mitigate CVE-2017-8295.You need a fully qualified domain name (FQDN) to use this One-Click, which you can purchase from any domain registrar. You do not have to manage your domain with DigitalOcean DNS.
Setting Up WordPress
Now that our droplet is setup, we need to SSH into it so that we can finish our WordPress installation. Let's SSH into our droplet:ssh root@use_your_droplet_ip
Once we SSH into the droplet, we can start the setup:- username
- password
- blog title
systemctl reload apache2
LetsEncrypt and Making WordPress HTTPS
Next up, we will be prompted to install LetsEncrypt and HTTPS for this domain.@ use_your_droplet_ip
www use_your_droplet_ip
www
domain.We can make all site traffic be HTTPS:
Now your site is live!
Conclusion
We have a WordPress install up and running quickly with DigitalOcean's 1-click apps. You can now use this WordPress site as your main site or use it as a Headless CMS and pair it with a frontend tool like Gatsby.No matter what you do with your site, you will always have control of the content and database since it is hosted on your own droplet.
Thank you for visiting us.!
Post a Comment