Home / Tutorials / How to Install WordPress on DigitalOcean using Serverpilot

How to Install WordPress on DigitalOcean using Serverpilot


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.

connect a 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.

connect ServerPilot to DigitalOcean

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.

Additional resources:

After the installer finishes you will be able to see the connected server in your ServerPilot dashboard.

ServerPilot dashboardCongratulations 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.

create an app in ServerPilot

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.

create an app

Your newly crate app should appear in the Apps category in your ServerPilot dashboard.

successfully created app

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.

creating a 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.

serverpilot users

Simply enter a new password which is used with Filezilla to login via SFTP and upload files to your server.

serverpilot user

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.

Hit connect.

filezilla connect

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.

wp-config edit

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:

install WordPress

Follow the on screen instructions to install WordPress.

installing 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.

The cost

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)

Resources/Power

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%.

server stats

 

IP Address

Another major advantage of DigitalOcean compared to shared hosting is that your IP is not shared with other users and websites. Which is great!

In Conclusion

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).

 

 

Install word press on Digitalocean Ubuntu server easily with the help of Serverpilot.


Check Also

How to install Comodo SSL on VestaCP

How to install Comodo’s PositiveSSL certificate on VestaCP. The simple tutorial below will help you ...

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.