In this article we will go through the process of installing a WordPress site on your RunCloud managed server.
According to statistics compiled by W3Techs on market share, WordPress is by far the most popular content-management-system (CMS) on the net, accounting for an incredible 60% of all websites created using a CMS. This translates to 29.2% of all websites (well, of the top 10 million websites on the web).
Due to its sheer size and scale, accompanied by its vibrant open source community, and deep ecosystem of free and premium themes & plugins, we can be certain that WordPress development has a bright future.
What is RunCloud?
RunCloud is a modern web server management platform, that employs an intuitive, clean, well designed Graphichal User Interface (GUI) control panel. It is designed purposely for deploying PHP web applications.
If you use any of these:
- Code Igniter
- and many more
PHP based Content Management System
- and many more
or any other variant of a custom PHP applicationm, then RunCloud is for you.
RunCloud is a SaaS (Software as a Service) control panel for cloud servers / VPS, that allows you to easily manage multiple servers for your web applications all from one place. This allows you to more efficiently leverage the speed and security benefits offered by the growing Cloud VPS market place providers.
Dedicated servers from PaaS (Platform as a Service) cloud infrastucture suppliers such as Digital Ocean, Linode, AWS, Vultr, Amazon Lightsail, and any other KVM based VPSs are supported by RunCloud.
The platform is imagined graphically as a diagram below.
Getting Started with RunCloud
First of all, you need to configure your server to work with RunCloud. You can subscribe to any server provider that you like. However, your server must satisfy the following requirements:
- Ubuntu 16.04 x86_64 LTS (Fresh installation)
- Dedicated Server / Virtual Private Server (VPS) – OpenVZ not supported (Kernel 2.6)
- More than 1GB of HDD
- At least 1 core processor
- 512MB minimum RAM
- At least 1 public IP Address (NAT VPS is not supported)
Connecting a server to the RunCloud platform
For the server part, I will use a Digital Ocean VPS to demonstrate the whole process. After you have created the Droplet, login to RunCloud panel to start.
Click on the “Connect Server” button to continue.
Obtain your server connection command
Then you need to fill the following details:
- Name of your server
- IP Address
- Server Provider (Optional)
After you have filled all the details, click on the “Connect this server” button.
On the next page RunCloud will provide you will a command that needs to be entered into your provisioned server to connect it to the platform and install the RunCloud server stack.
Please note, RunCloud needs TCP Port 34210 open as its command port. As some server providers may have this port blocked it is best to ensure that your server is open and listening on this port, before proceeding.
Copy the command that is provided to you:
*Copy the installation script*
Issue the command on your server
Next, login to your server as root, and paste the installation script provided. You can access your server securely using SSH.
*Paste the installation script to your terminal and press ‘Enter’
to start the installation process*
The installation may take up to a few minutes, depending on your server’s internet connection.
You can monitor the progress from the terminal and also from the web panel which provides a progress bar and notification that refresh to let you monitor progress.
Once the process is complete, your terminal you will display an installation completed message, and you’ll be provided with your MySQL ROOT Password. It must be noted that using your MySQL ROOT user and password is considered a big NO-NO in production, for security reasons. Therefore, whilst you should take a note of it, you should also refrain from using it.
Your terminal should look like this:
Your server dashboard
Whilst in your browser, the webpage will automatically reload and you will be redirected to your server dashboard summary page where you can see all the server details.
On the left side of the panel is the main menu available for that particular server, while on the right-hand side is where the information will be displayed. From the image attached above, you can see server details such as:
- CPU details
- Memory Usage
- Disk Usage
- Number of web application deployed
- Number of database created
- Number of supervisord job
- Number of cron job
Voila! You have successfully connected your server to RunCloud and now you can kiss your terminal good-bye (for the most part!).
Create a web application
The fun part starts now. Navigate to “Web Applications” and then click the “Create Application” button to create a new web application.
|Web Application Name||Give your application a name|
|Domain Name||We will use the server IP for now, so enter any domain. E.g., wp.scotch.com|
|User||Choose runcloud (default)|
|Public Path||Leave it as it is|
|PHP Version||Choose PHP version that you like, in our case PHP 7.1|
You will need to fill in the details mentioned above, and click the “Save new web application” button once you are ready. For advanced users, you can explore the advanced settings which provides more options for security and PHP settings.
After your Web application has been successfully created, you will be updated with the summary page of the web application.
Install WordPress – Using the script installer
To access the script installer menu, navigate to the “Script Installer” tab and choose “WordPress” from the dropdown menu. Click on the “Install” button to install WordPress as your web application. Do note that RunCloud will automagically download WordPress and deploy it for you.
It might take up 20 minutes depending on the your servers internet connection and the script’s server’s internet connection. However it is usually much quicker than this, taking no more than a few moments.
*Whenever the ‘Install’ button has beenclicked, it will look like this*
For now, we are not going to use any domain name, however we do need to configure some additional settings so that our WordPress site is accesible directly from our server’s IP address.
To do this, You need to set the web application as the default web application under the “Web Application” section as shown below.
*Click ‘Set as Default’ when this prompt pops up*
Now you may visit your server IP address in your browser to complete the famous WordPress 5 minute installation. If you have forgotten your server IP address, it’s available in the server’s summary page. E.g :
Setting Up Your Database
Before you can complete the WordPress installation, you actually need to first setup the database. Head over to the “Database” section and click the “Create Database” button.
|Database Name||Name your database. E.g., wordpress|
|Database User||Enter the user that will access the database. E.g., wordpress|
|Password||Insert a database password here. However, it’s recommended to use password generator to create a strong password|
|Verify Password||Re-enter the same password you have placed in the previous field|
Complete the required details and click “Save Database” to create the database. Since you can’t see the password after the database has been created, it is advisable to copy the password or have it kept safe somewhere as we are going to need that password later in the WordPress installation.
WordPress Installation & Configuration
*Choose your desired language and click ‘Continue’*
*Click ‘Let’s Go’!*
*Fill the field with the details from setting up the database previously. Change “Database Host” to 127.0.0.1, and you are good to go.*
*Enter the required details and click “Install WordPress” to start your adventures in WordPress.*
*Finally, if everything was configured correctly, your WordPress site will be successfully installed and look like this.*
Congratulations! You have successfully installed WordPress using RunCloud.
As the server hardening and security, and tedious server setup has been handled by RunCloud, you can now focus on the other important tasks of running your site, this improves your time management, efficiency and productivity.
Setting up and maintaining a server/vps on your own requires a lot of knowledge and entails a lot of tasks, therefore has a significant time and energy cost. With RunCloud, if ever (whenever) things go south, you can just simply redo everything quickly with the helps of the graphical-user-interface (GUI), or reinstall your Webapps from backup (another of our platforms great advantages!).
RunCloud offers a 5 day free trial for the pro subscription, plus a free version. If you haven’t already, why not give it a try?