Guide

How to Install WordPress On CloudPanel Server

All essential steps on install WordPress on CloudPanel LEMP server
Pinterest LinkedIn Tumblr

This article shows you the method of installing WordPress on a cloud / VPS running CloudPanel. The process of WordPress installation takes around 5 minutes to complete.

Requirements

  • A VPS or Cloud server with at least 2GB RAM.
  • Debian OS is a must.
  • Putty or any Terminal software to access your server.
  • and, the CloudPanel itself.

Prerequisites

First, deploy a Cloud server or a VPS running Debian OS. Need a recommendation? Go with Vultr!

Next, these four tasks are required prior installing WordPress.

1. Install CloudPanel

First, install CloudPanel as per our previous guide. Read: How to Install CloudPanel.

2. Add New Domain

Add a new site domain on CloudPanel. Read our previous guide here but in short, you can do it this way:

  1. Log in to CloudPanel
  2. Go to Domains
  3. Click Add Domain button
  4. Enter your domain name
  5. Choose WordPress in the Vhost Template

3. Pointing domain name

CloudPanel does not come with built in DNS server. Thus, you’ll need a third-party DNS hosting service.

There are many out there. Need a recommendation? Try Cloudflare.

Read our previous guide on how to use Cloudflare as free DNS service.

You’ll need at least three DNS records:

  • A record for your main domain name
  • A record for your hostname, and
  • CNAME record for www

Here’s an example:

4. Creating MySQL Database

WordPress is a dynamic content management platform that requires a database to store all the information.

CloudPanel comes with Percona Server for MySQL which is a drop-in replacement of MySQL.

Read our previous guide on how to create database on CloudPanel here.

As a refresh, you can do it this way:

  1. Log in to CloudPanel
  2. Click Databases
  3. Click Add Database button
  4. Enter Database Name, Username, and Password

Now down the details for further use.

Steps to Install WordPress on CloudPanel

First, login to your server as root or as a user with sudo privilege.

Second, download WordPress latest installer package to the webroot of your domain. The webroot of your domain in CloudPanel should be at:

/home/cloudpanel/htdocs/example.com

As per our example, we use speedy.monster for our test domain. Hence, in our case it should be at:

/home/cloudpanel/htdocs/speedy.monster

Use this command:

cd /home/cloudpanel/htdocs/speedy.monster
wget https://wordpress.org/latest.zip

Easy as a pie, isn’t it? There are still more to do.

Third, extract the WordPress package:

unzip latest.zip

Next, move all the files from WordPress directory to the webroot:

cd wordpress
(shopt -s dotglob; mv — * ..)

Once all the files have been moved to the upper directory, it is safe to remove the unnecessary wordpress folder:

cd ..
rmdir wordpress

Next, reset the access permission using this command:

clpctl system:permissions:reset example.com 775

Remember to always replace example.com with your own domain name.

Now open up your favourite web browser and access your website. The first page opens the WordPress installer.

Click Let’s go! then enter all details of the database you created earlier. Click Submit once done.

Click Run the installation button.

Next, type in your Site Title, Username and Password to log in, and your email. Click the Install WordPress button.

Login to your newly installed WordPress for the very first time.

Congratulation! You have successfully installed WordPress blog on your CloudPanel server.

WordPress and Nginx is a perfect combination to build a content publishing platform that has high performance.

CloudPanel makes it easy to build a WordPress site.

Should you have any questions please do not hesitate to write comments below.

A blogger by hobby. He is an ordinary worker at day, a hybrid sys-admin at night. Sharing knowledge through blogs is his passion. He likes ice cream BTW.

Write A Comment