If you hosted your website on the shared web hosting, you must have faced a couple of problems by now.
Frequent downtimes, slow loading speed, database connection error are some of the many problems faced by shared hosting users.
These shared hosting companies advertise in such a manner that it makes us believe that we are buying a premium server to host our business websites, but the reality is different than it appears.
In shared hosting, one server is shared among the multiple shared hosting users.
This means when you buy a shared hosting plan, the server you used to host your website is used by other users to many more sites.
And, this is just one of the many limitations of shared hosting.
There are many more such limitations which affect the performance of your websites leading to lower rankings in Google SERPs.
But, what can you do
Hosting your website on a VPS hosting can solve all your problems for almost the same price as a shared hosting server.
A VPS means you get a private computer to host your website.
The server which was earlier used by multiple users will be entirely yours, and no one else will use it to host their websites or applications.
Digital Ocean is one of the largest VPS hosting providers. Even I host the majority of my websites on DO servers.
Powerful servers with low & flexible prices bundled with excellent support can be considered as a key factor in Digital Ocean’s success in the hosting industry.
For a sum of $5 you get,
- Single Core Processor
- 512MB RAM
- 20GB SSD Storage
- 1TB Bandwidth
which is more than enough to handle the traffic of a medium-sized company.
But, there is a little problem
This private server doesn’t come with anything installed on it. This means you don’t get to install WordPress in one click the way you do it on cPanel hosting.
On a VPS hosting, we are supposed to install all the necessary software and setup everything using the Secured Shell (SSH) terminal.
If you’re not familiar with command line, installing WordPress can be a confusing task for you.
Even I couldn’t install it correctly on the first attempt.
But, what if I tell you that you can set up everything and install WordPress in just a few clicks
Before we start, we need two things.
1. Digital Ocean Account
We will need a Digital Ocean account to proceed further. If you don’t have an account, open this link (Get $10 Free)and complete the registration process.
You will need to verify DO account by adding a payment option (either Credit Card or Paypal) before we can create a droplet.
It hardly takes 5 minutes in the whole process.
2. ServerAvatar Account
ServerAvatar is a server management system which will help us to install WordPress on Digital Ocean.
It will install Apache FastCGI, PHP-FPM, MySQL and PhpMyAdmin on your Digital Ocean droplet (DO servers are called droplets).
But, ServerAvatar charges a little fee for their amazing management system.
In $3.39/Month/Server, you get
- Domain and Sub-domain management
- Database management
- One Click SSL installation and management
- FTP management
- Built-in auto installer
- One-click Firewall configuration
and much more.
We will need a ServerAvatar account to complete our WordPress installation process.
Let’s Setup Our Digital Ocean Droplet
I guess you have your Digital Ocean account setup by now.
When you will log in to the Digital Ocean account, you will get a screen like this.
In the top right corner, click on ‘Create’ button and ‘Droplets’ from the drop-down menu to create a new droplet.
Step 1: Choosing an Image
Digital Ocean refers Operating Systems as Image.
Now, we will select the latest version of Ubuntu OS i.e. Ubuntu 16.04.3 because Server Avatar only supports installations with Ubuntu OS.
If we install any other image on our droplet, it will not work with SA.
Step 2: Choose a Server Size
The server of the size will vary depending upon your website. If you receive high traffic on your website, you will need a big server.
But, if you’re just starting a new website with no traffic, I will recommend going with the $5/month server.
As the traffic increases on your website and the server can’t handle the load, you can upgrade your droplet to a bigger server size.
N.B. You can also choose from high memory and high CPU servers.
Step 3: Choose a Datacenter Region
You can select a server from any region as it has nothing to do with the WordPress installation.
But, I would suggest choosing a datacenter that is near to your targeted audience.
For instance, if you’re targeting the USA audience, you should choose New York or San Francisco servers.
If a user comes to your website from the USA and your site is hosted on Bangalore server, it will take much more time to load your website as compared to loading a site hosted on Bangalore server for an Indian user.
Step 4: Choose Hostname and Launch Droplet
This is the 4th and final step of creating a droplet.
Before you can create a new droplet, you will need a hostname.
I would suggest keeping hostname as the domain name.
Or, if you’re planning to host more than 1 sites, you can keep hostname that can be easily identified.
Once all the settings are configured; click on the green ‘Create Droplet’ button and you’ll have a blank server soon.
Within a minute, DigitalOcean droplet will be created…
Once the droplet is setup, it will look like the image below.
But, this isn’t what we are looking for.
We need the server IP and root password to install WordPress which you will receive in a separate mail.
Open the verified email account, which you used to create the DigitalOcean account.
You will receive an email from Digital Ocean with the subject line: Your New Droplet. It will have following details:
- Droplet Name
- Server IP
Now, we will connect this server with ServerAvatar using the above details.
Let’s connect ServerAvatar to our DigitalOcean Server
I’m assuming you have your ServerAvatar account setup by now, if not set it up now.
Once you’re done with account creation and adding credits to your account, you will see a similar screen as the image below.
At the top right corner; click on ‘Add Server’ button
Once you clicked ‘Add Server’ button, you will be redirected to a new page where you have to enter your ‘Server IP‘ and ‘Password‘ for the root user.
Now, hit ‘Add Server‘ button at the bottom.
It will take 3-4 minutes to configure LAMP (Linux, Apache, MySQL, and PHP) on your server and optimize it for best performance.