3 Easy Steps? Is it actually a 3 Step Process? Hmm.. Yes, you read it right. I am going to tell you how you can install WordPress on Digital Ocean in an easy way. Before that, You should know Why you should consider the Digital Ocean Cloud Hosting. Below are the few points which one needs to keep in mind.
1.Less Downtime: It is one of the main reasons to choose cloud hosting or VPS hosting so that you have your full control on your hosting resources. In shared hosting, many websites are using the same resources that lead to resource shortage and website goes down. In online business, we cannot afford the downtime. Cloud Hosting ensures that our website is up for the maximum time.
2.SEO Boost: Google has already indicated that its algorithm takes site speed/page speed into consideration while ranking.
3.Increase Conversion: If your site is e-commerce or affiliate site or your site is generating some revenue for you, studies suggest that increasing the page speed will increase your conversion.
There are so many reasons, and I will write a detailed article on it soon.
Now coming to the point, I am going to divide the tutorial into 3 Easy Steps. In the First step, you will come to know how to create a droplet in Digital Ocean. In Second step you will come to know how to point a domain to the created droplet. In the Third and last step, you will come to know how to install the server in your droplet and then how to install WordPress on that server.
Step 1 – Creating Digital Ocean Droplet And Its Configuration
Go to Digital Ocean and create an account or login If you already have one.
- Click on the droplet tab.
- Click on create droplet green button found in the upper right-hand corner of the page.
Below is the screenshot to install wordpress on ubuntu server.
- Now Select Ubuntu with version 16.04 x64(recommended as we are using server pilot to set up a server on this droplet).
- Select any plan of the droplet. It is up to you to select the plan you need for your blog/website. My recommendation is $10/mo for new blogs/websites, and you can go with any higher plan if you have any existing website/blog that needs higher resources. If you don’t know how much resources you need for your blog/website, stick with $10/mo plan only for the moment as you can change your plan later.(Note: upgrading is available, but downgrading is only available when you increase your CPU and RAM Only.)
- You can add block storage, but for now, you can leave it.
- Choose your data center. Try to choose the data center nearest to the country from which your primary traffic of the website is coming as it decreases the time for the DNS Lookup.
- Select additional options if you want anything. Tick Backups as it will backup your whole droplet with an extra charge of 20% of the charge of your droplet, i.e., if you are opting for $10/mo plan, you will have to pay an additional amount of $2 per month for the backup.
- No need to add SSH Key. If you want you can add it, but we are using server pilot so it has no use now.
- Name your droplet and click on Create.
After clicking on create button, your new droplet will be created. Then you will get an email from digital ocean containing your droplet username, password and IP address. Note: It is very important for you not to share this email with anyone and not to delete this email.
Now we want to point our domain to this droplet so that we can install our WordPress site on this droplet.
Step 2 – Digital Ocean Point Domain To Droplet
Pointing domain to the droplet created in Digital Ocean is an easy task as Digital Ocean provides full DNS management.
- Just Goto Droplets, Click On More and you will see Add a domain in the drop-down menu.
- Click On Add a domain. Networking tab will be opened.
- Enter your domain name xyz.com. Select your droplet and click on add domain button(shown in below picture).
- Copy the nameserver shown below after adding domain and change it in your domain setting, i.e., Goto domain registrar and change your nameserver as specified in your digital ocean panel.
Congratulations, now your domain is pointing to your droplet. We have just completed the second and most crucial step. If someone types xyz.com(your domain name), it will point to your droplet, provided we have configured it while setting up our website in server pilot. Every domain should be configured in server configuration file. We don’t need to do any manual work. Everything will be taken care by server pilot. Let’s proceed further to the 3rd and final step.
Step 3 – Serverpilot, Connect To Droplet And Install WordPress
Serverpilot acts like a CPanel for cloud hosting, it eases the installation process.
- Go to server pilot and make an account there or log in if you already have one. Log in to your newly created account.
- Click on Connect Server.
- Use the password, IP that you got in the email while setting up droplet from the digital ocean. Choose your SFTP Password(remember it or keep it in a safe place as you will need it in future). Click on Connect to ServerPilot. The process will take up to 2 minutes to complete or may be greater than that.
Serverpilot will now install the server in your droplet, and also configure it for you.
After the process completes, you will see a screen saying Create App. Here you have to create the website/blog that you want to create. Click on Create App and follow the steps that it is showing on the next screen.
Fill the details like name of the app(any name you can give), domain etc. Tick WordPress(don’t forget to tick as it is a very important step), choose a title, username, password, email for the blog and make a note of it.
Now it will take few seconds to install WordPress on your domain that you have provided in the domain field while creating an app.
So you can see how easy it was to install WordPress on digital ocean. No technical knowledge is required for this installation and we were able to complete it in few easy steps. We have not installed MySql, Apache Server, PHP, WordPress etc separately. They were installed automatically by Server Pilot. ServerPilot is using the best possible configuration for this installation on the digital ocean. It uses a more advanced stack for the deployment of the web app than the stack which is being used by the Digital Ocean’s one-click WordPress installer. It uses Apache server and Nginx in the front as a reverse proxy and much more.