To get started you will need to open a ServerPilot account. You can get $10 free if you register using my affiliate link.
In order to set up ServerPilot with DigitalOcean you have to:
- Step 1. Connect droplet to ServerPilot
- Step 2. Run the installation command line in PuTTY
Step 1. Connecting your DigitalOcean droplet to ServerPilot.
In order to do that simply login to your ServerPilot account and click on connect server.
Enter a server name(just use the same name as your DigitalOcean droplet, or anything you like) and click start.
As I mentioned earlier ServerPilot only works on a 64-bit Ubuntu 14.04 droplet.
Step 2.Running the installation command line in PuTTY
After you click start you will be shown something like this.
ServerPilot needs to run that command line to connect and install all the necessary software on your server. To do that simply open PuTTY, login to your DigitalOcean droplet and copy paste that command line to begin the process.
After the installer finishes you will be able to see the connected server in your ServerPilot dashboard.
Congratulations you’ve successfully installed ServerPilot on your VPS.
Easy wasn’t it?
Now that all is up an running you can finally install WordPress.
How to install WordPress on a DigitalOcean droplet with ServerPilot
- Step 1. Create an App
- Step 2. Create database and user
- Step 3. Download WordPress to your computer
- Step 4. Upload WordPress to your server using Filezilla
- Step 5. Update wp-config.php with your database name and user and run the installer
Let’s get started…
Step 1. Create an App
Login to your ServerPilot account and click on Apps.
For the App Name simply enter your domain name, or whatever. Next enter your domain name and choose which PHP version you like (5.6 in my case)
Last but not least choose the server you recently connected and click Create App.
Your newly crate app should appear in the Apps category in your ServerPilot dashboard.
Step 2. Create database and user
Next you will need to create a user and a database for your WordPress installation.
To do that go to Apps and click on the app you’ve just created.
After that click on Databses and create a new database.
Make a note of the name, username and password as you will need those later.
Step 3. Download WordPress to your computer
Download the latest version of WordPress to your computer and extract it.
Step 4. Upload WordPress to your server using SFTP
Before we do that we have to set up SSH/SFTP in ServerPilot.
Login to your ServerPilot dashboard click on the connected server then on users and finally click on “serverpilot” to change the default password.
Simply enter a new password which is used with Filezilla to login via SFTP and upload files to your server.
Next download a FTP client.
I like Filezilla, open it and click on file/site manager. For the host enter your droplet’s IP address,port (leave blank), protocol choose SFTP(very important)
Under logon type choose normal then enter the username (serverpilot) and your password.
If all goes well you should be able to see your server files.
Next upload the extracted WordPress files from your computer to your public directory which is located at serverpilot/apps/yourdomainname/public
Make sure you have no failed transfers.
Step 5.Edit wp-config.php and run the WordPress installer
1. Locate the file wp-config-sample.php in your directory where you’ve downloaded WordPress.
2. Rename wp-config-sample.php to wp-config.php
3. Open wp-config.php using a text editor and update it with your database name, user and password.
4. Upload the updated wp-config.php file to your server using Filezilla.
The final step is to run the WordPress installer.
Open your browser and type in your domain name, if all goes well you should see this:
Follow the on screen instructions to install WordPress.
Shared Hosting vs DigitalOcean
One thing I just can’t resist is to talk about the huge difference between shared hosting and DigitalOcean.
I will briefly outline some of the advantages of a VPS vs shared hosting.
First of all it’s the cost, a good shared hosting provider costs roughly $10/mo, doing the math that’s $120/year.
Wheres a DigitalOcean droplet(the smallest one) costs 5$/mo. thats $60/year, half the price of shared hosting and much more powerful(for me at least)
Talking about power, the reason moving to a VPS was that I kept getting CPU and memory resources limited on shared hosting.
Now the same websites run on DigitalOcean but here is the catch: my websites generate ~40k monthly visitors and with this traffic out of 512 MB of RAM(490 MB more exactly) only about 55% is used on average. So I still have a lot of RAM unused. Meaning that this small droplet can handle much more traffic, which is quite surprising!
Then there’s the CPU which by the way has never been working more than 30% in fact on average is around 3-5%.
Another major advantage of DigitalOcean compared to shared hosting is that your IP is not shared with other users and websites. Which is great!
When going for a VPS things may seems very complicated at first, but actually it’s not that hard.
Sure you have to install things, and use a terminal and command lines but after the process is completed everything seems to run smoothly (at least in my case).