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.
- 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.
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:
- Log in to CloudPanel
- Go to Domains
- Click Add Domain button
- Enter your domain name
- 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:
- Log in to CloudPanel
- Click Databases
- Click Add Database button
- 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:
As per our example, we use speedy.monster for our test domain. Hence, in our case it should be at:
Use this command:
Easy as a pie, isn’t it? There are still more to do.
Third, extract the WordPress package:
Next, move all the files from WordPress directory to the webroot:
(shopt -s dotglob; mv — * ..)
Once all the files have been moved to the upper directory, it is safe to remove the unnecessary wordpress folder:
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.