Installation Archives - CloudMinister

A Way To Make Your Website Dream True

Many of you definitely heard about the name of WordPress as the best content management system in the world. It is not only a statement or judgment. WordPress is not only a good CMS but a lot more such as – a source to work on the website customization with the help of some pre-designed themes. Along with it, you can get a big theme and plugin library that can assist you in getting the dream website without any kind of issue. Here, you can get a complete tutorial that can help you in understanding how to use WordPress and set up the website.

Before starting to focus on the process, we are going to discuss some key factors about WordPress here.

Why Is WordPress So Popular?

When it comes to CMSs (content management systems), then no one can ignore the popularity of WordPress. There are several reasons available that make WordPress one of the best sources for creating and maintaining a website.

  • You can use WordPress for free
  • It is an open-source platform
  • Availability of numerous themes
  • Themes for all types of websites
  • A big plugin library
  • Good for an eCommerce website as well (WooCommerce)
  • All types of tools available
  • Several widgets
  • Easy customization
  • Support all hosting platforms
  • WordPress is available with a big community for discussion and eliminating confusion

All these things are making WordPress special, popular, and different as compared to other CMS or similar kinds of platforms.

CMS – What Does It Mean?

CMS stands for a content management system that can assist the website owners in managing the website operations and doing contextual updates easily. In other words, you can use CMS for different content-related purposes such as

  • Create
  • Modify
  • Publish

It does not matter what kind of content you want to upload textual or visual. Everything is possible with its proper usage. For all these activities or operations, the users don’t need to focus on any usage of HTML or other coding languages.
If you are choosing WordPress as the CMS, then you have to perform activities with drag and drop actions only. You don’t have to make any changes to the coding.

Features Of A Good CMS

A good CMS has lots of features for delivering the best to clients.

  • Easy to create SEO-friendly URLs
  • Big online communities for better support
  • Group functions
  • Availability of several designs & theme templates

All these things are making a content management system good for the users and help them in working on the website efficiently.

How To Use WordPress? – A Step By Step Tutorial

Step 1 – WordPress Installation

Before working on anything, you have to install WordPress on the hosting servers. The most important factor about this particular CMS is its low system requirements.

  • 5.0.15 version for MySQL or higher
  • 5.2.4 version for PHO or higher

When it comes to WordPress installation, then you have two different options, automatic and manual. The automatic methods can be easier for everyone where the users do not have to perform a single technical step. All they have to do is enable some settings and start the installation procedures.

Afterward, the data creation and all other procedures are completed by the system on their own. In the case of manual installation, things are going to be a little bit messy. Here, we are explaining the complete procedure for WordPress installation manually.

Manual Procedure

Before starting the installation, you need some things like a file manager or FTP client and WordPress’s latest version. By visiting, you are capable of downloading WordPress files on your devices.
When you get the files, then you have to upload it with the help of a file manager or FTP client on the hosting account. You have to upload all these files to the public_html folder.

For operating websites and adding lots of things to it, you have to create a database first. All details are stored by WordPress in a specific database. You can create the database by accessing the MySQL Database tab in the cPanel.
You have to write the database details carefully and keep it safe as well. You also need information about these database details in the future. By visiting the domain or subdomain, you can begin the installation process.

Here, you need to sill some basic information such as – MySQL database information, site information, and administrator information.

Step 2: WordPress Dashboard Navigation

After completing the WordPress installation on the hosting servers, you can access the WordPress dashboard of your website. For accessing, admin dashboard, you have to run the following URL:

Whenever you are going to run this particular URL, then it will redirect you to the WordPress admin login or dashboard page. The login credentials are created by an individual while installing it on the servers. When you log in to the dashboard, then you can see an interface with multiple elements such as:

Toolbar – it is available at the top-most position of the page. Here, you can get some useful links or navigation for accessing pages quickly and saving lots of time.

Navigation Menu – on the left side, you will face the navigation menu that contains a list of all features or accessibilities. You can use it for accessing any part of the area of the website backend. In some cases, you can also find the sub-menus of the main tabs.

Work Area – in the center, you can see a big and wide working area.

These are some key factors about WordPress navigation that can help you in performing different types of activities quickly.

Step 3: Content Publication

After understanding the website dashboard and its interface, you should start focusing on the content publication. In the beginning, you should pay attention to the creation of some new pages and posts. It provides some stuff by which you can easily customize the website’s appearance and get a great start as well.

How to create a new post?

For the creation of a new post, you have to access the Add New section by clicking on the Post option available in the main navigation menu. You also have a quick access option via the toolbar.

After clicking on such an option, an editing interface will appear on your screen. It has several features by which you are capable of creating an attractive, effective, creative, and completely unique post with ease. Firstly, you need to give a title to the post that is going to be your H1.

Secondly, you should work on the content body. While working on the body, you have to focus on several factors like – the addition of heading tags, and much more. You can easily use the WordPress text editor. On the screen, you can also see some major features or publication settings.

Here, you are able to decide, you want to publish the content immediately or schedule it for future dates. In case you don’t like the content, then you can send it to the trash by choosing the MOVE TO TRASH option.

As we know, all types of blog posts are written by following some specific categories. These categories are going to be the identity of the blog and understand where it actually belongs. By using the categories tabs, you can add some categories to the post. For adding a featured image, you can upload an image to the featured image section.

How to create a new page?

For the creation of a new page, you have to access the Add New section by clicking on the Page option that you can find in the main navigation menu.

When you click on such an option, you are going to be redirected to a blank page with editor features similar to the posts. All features and functionalities are similar to the post system.

Step 4: Plugin Installation

All individuals are interested in creating a fully-featured and functional website. Now the question appears, how it can be possible with WordPress without using any coding. All these things can be possible with the help of WordPress’s plugin system. You can see a big plugin library in WordPress.
Here, you can find multiple plugins for adding different types of functionalities and features to your website. These plugins are useful in making things simpler as well. You can find both types of plugins in the library.

  • Free
  • Paid

Some plugins are having both free and paid versions. You can find multiple free plugins in WordPress by which you can fulfill the requirements quickly. In case you are interested in using some advanced features, then you should try to get help from the premium or paid ones.

  • SEO Plugins like Yoast
  • Google XML Sitemaps
  • Contact Form 7

These are some basic plugins that every website needs. For the installation, you have to visit the Plugin tab. There you can find the ADD NEW option and you should click on it. Now, you need to search for the plugin in the library as per your requirements. You will get lots of options now. You should choose the best one by focusing on the following factors.

  • Total number of installations
  • Reviews
  • Ratings

It can help you in understanding how efficient a plugin is. After it, you should click on the install button of the plugin you choose and wait for a while. When the installation process is finished, then you can see the ACTIVATE button. Now you have to click on it and the plugin starts working on your website.

Step 5: Theme Installation

All individuals are having some specific dreams when it comes to the appearance of the website. By choosing the perfect theme, you can make such a dream true quickly. Here, you should focus on lots of things like – your industry, use of the website, motive of website, and much more. All these things can help you in figuring out what kind of theme you actually want.

For finding and applying a theme, you have to click on the APPEARANCE option available in the main navigation menu. In the APPEARANCE section, you can see the option of THEMES and click on it.

Here, you find out multiple themes available and suitable for creating your kind of website. With the help of some advanced features, you can easily filter the available options and come up with the best suitable one.
When it comes to the theme installation, then you have two major options. First, you can download the zip from online sources and upload it manually. Another method is, click on the install but and then activate it. In the second method, all activities are completed by the system on an automated basis.

Step 6: WordPress Security

After all these things, you have to pay close attention to WordPress security. All we introduced to the current condition of the online world, there are multiple cybercriminals working out the line and targeting multiple online sources for stealing the complete information quickly.

For preventing cyberattacks and keeping yourself 100% secure, you have to focus on some WordPress safety measures. Mainly these specific safety measures are –

  • You have to keep WordPress updated always. Mainly the updates are designed with the addition of some new and exciting features. Along with it, WordPress also eliminates several bugs from the system and makes things much better in the terms of security.
  • When it comes to log in to the WordPress admin dashboard, then username and password are going to be the key. You should try to set up a unique username and password that cannot be cracked by anyone easily. Along with it, you should not share such important credentials with anyone as well.
  • For avoiding accidental losses, you should set up a proper WordPress backing up the system by which you can create a website’s backup periodically with ease.

All these things can help you in working with proper safety.

Final Words

It is the complete WordPress tutorial that can help you in understanding lots of things with ease. In case you are having any doubts or do not understand something, then you can contact WordPress developers.

Read More – How to enable schedule task in windows

How to install free SSL certificate in Plesk panel?


SSL certificate is an essential part of your domain or website. It is also the most reliable sign for the visitor to visit your website. Most of the time, you need to pay to install an SSL certificate. However, you can also install a free SSL certificate within a few steps. It isn’t that tough to perform this task.

There are a few steps that you need to follow carefully to install an SSL certificate in the Plesk panel or your domain.

Here are the steps you need to follow:

Step 1-  First, go to the Plesk panel here. You will find various options on the page. In the left top corner, you will have the 1st option, “website & Domain”. Select these options, and you will appear to the various options on your screen.


Install Free SSL Certificate in Plesk Panel

Step 2 – Here on the new options, find the column dashboard and below security option. Under the security options, you will find the “SSL/TLS certificate” select this option

Read More:  Update Webmail Version in Plesk Panel

Step 3 –  You are almost done. To install the free SSL certificate, you have selected the SSL/TLS certificate options, and then you will appear to side notification of Let’s encrypt. This page will help you to encrypt your certificate authority CA which allows you to install SSL/TLS certificate on your domain or plex panel. Fill your email address below in the box and down their select the 1st option stating Secure the wildcard domain and press “Get it free”.


Install Free SSL Certificate in Plesk Panel

You don’t have to do anything as the let’s encrypt free SSL certificate will be validating until 90 days automatically. It also assists in upgrading your website or domain’s security, which also attracts more visitors.

You have successfully installed best free SSL certificate on your domain or website with full security.

How to Install Plesk Linux based System

Plesk is enterprise level Reliable Linux VPS server hosting web panel which provide very useful tools for user end as well as for developer or system admin end. This web panel is very easy to host website and web application. It also provide features of reseller , vendor for web server as well as for e-mail services and mostly useful for DNS entries on the server.

Here you have to follow some steps to install Plesk on your server few of them are given below;

1- Perquisites 
2- Installing Plesk 
3- Verify on browser 

Perquisites: First of all you require fresh OS and  must have to check your system server configuration by follow some commands which given below

a)-  yum update (For centos server)
apt update  (For Ubuntu server)
b)-  cat /etc/os-release  (For checking os)
c)-  netstat -tunlp (For checking ports)
d)- df -h (For checking disk space)
e)- free -h (For checking ram space)
f)- yum install wget (For centos server)
g)- apt install wget (For Ubuntu)

Installing Plesk: Now came to point start installing  plesk on server. Here you must have to follow some steps as I do

#   wget
#   chmod +x plesk-installer
 ./plesk-installer –web-interface

Installation is complete here and have to move next step  for log in Plesk panel  Here we only need
Username: root
Password: which is same as system root password

After log in into panel we see panel screen here several options present implementing in website hosting.



How to create and install mysql/mariaDB/Postgresql database server in plesk panel

Today we are going to install and create database server in plesk panel. Let’s start today task
Tools & settings –> database server

In database server by default database server in is mysql/mariaDB so you can change or add another  database server in our system server.

Here i already have MariaDB database server so i add here PostgreSQL. We require to fill here hostname/ip , port number of postgreSQL, username and password etc.

We successfully change or add database server in plesk panel.

How to configure postfix and dovecot with roundcube in centos 7 VPS?(Part 2)

Configure Roundcube

Roundcube WebMail is a browser-based IMAP client with an application like user interface, It provides full functionality you expect from an email client, including MIME support, address book, folder manipulation, message searching and spell checking.

RoundCube is for users who need a user-friendly web interface with some additional features available. 

Install LAMP

Firstly you have to configure LAMP stack in your managed VPS server for that run the following command:

    # yum install -y httpd php php-fpm php-mcrypt php-cli php-gd php-curl php-xml php-mysql php-mbstring php-pspell php-imagick  mariadb-server

Configure PHP settings

Open /etc/php.ini file with the vi editor by using the following command:

# vi /etc/php.ini

Search for date.timezone and edit the line, also remove “;” comment from the below line:

→ date.timezone = “Asia/Kolkata”

Configure MariaDB server

Run mysql_secure_installation in terminal and configure the basics settings of MariaDB.

Now create database for roundcube by using the following command:

# mysql -u root -p

       Enter your root password

MariaDB [(none)]> CREATE DATABASE roundcubemail 

MariaDB [(none)]> CREATE USER ’roundcube’@’localhost’ IDENTIFIED BY ‘=213@!#webL’;

MariaDB [(none)]> GRANT ALL PRIVILEGES ON roundcubemail.* TO ’roundcube’@’localhost’;


MariaDB [(none)]> exit

Next import the roundcube table layout to the newly created database.

    # cd /var/www/html/roundcubemail/

Configure Roundcube

Firstly, download the latest stable version (1.3.7 at the time of this writing) of Roundcube from thedownload page  to get it, and upload the files into your web server document root.

# wget -c

# mysql -u root -p roundcubemail < SQL/mysql.initial.sql

# tar xzf roundcubemail-1.3.7-complete.tar.gz 

# mv roundcubemail-1.3.7 /var/www/html/roundcubemail

Now set the appropriate permission on the roundcube web root files by using the following command:

    # chown -R apache:apache /var/www/html/roundcubemail

Last step to restart the apache and mariaDB server by using the following command:

    # systemctl restart httpd mariadb;

Now open browser and use the address

The configurations page allows you to setup your roundcube instance. We will only explain the important options for the scope of this guide.

Under the General Configuration, set a product_name for example Webmail.

Roundcube Product Name

Go to Database setup, enter the database host, name, user and password to connect to the MySQL server.

Roundcube Database Settings

Roundcube Database Settings

Then scroll down to IMAP and SMTP settings and enter the IP address of your IMAP and SMTP server, if its same server on which you are running roundcube, leave it as “localhost” and also specify other necessary parameters.

You can specify other settings according to your needs, once you are done, click on Create Config.

  1. You should new see a message saying ”The config file was saved successfully into /var/www/html/roundcubemail/config directory of your Roundcube installation.” Click on Continue.Roundcube Configuration File Created

Roundcube Configuration File Created

You can review your configuration from the Test config page as shown in the following screenshot.

Test Roundcube Configuration

Test Roundcube Configuration

Next, remove the whole installer folder (which contains files that may expose sensitive configuration data like server passwords and encryption keys to the public) from the roundcube root directory (or make sure that enable_installer option in is disabled).

# rm -rf /var/www/html/roundcubemail/installer

Finally, use the URL to access the roundcube login page. Enter your user name and password to view your mails.

Roundcube Webmail Login


After the above installation, you will be able to use Postfix for SMTP, Dovecot for IMAP, Roundcube for IMAP web client.


How to configure postfix and dovecot with roundcube in centos 7 VPS?(Part 1)

Mail Server

Popularly also known as ‘email server’ that help to send and receive mail from client to server, fully managed VPS  server to different servers by using different protocols like SMTP(Simple Mail Transfer Protocol) that is used to send mails and POP3 or IMAP that is used to receive mails.

In this configuration we use Postfix as an SMTP protocol for sending mail and Dovecot as an IMAP or POP3 for receiving mail on email client from server, also use round cube for web based IMAP client.


1. Centos 7 VPS

2.Domain Name

3. Postfix


5. Roundcube

Configure Centos 7 VPS

In Centos 7 VPS, enable SSH and HTTP port.

After that open machine with SSH in local system and Disabled the Se Linux by using the following command:

    # vi /etc/selinux/config

In place of SELINUX =Enforcing replace Enforcing with Disabled and save the configuration file with :wq.

Configure Domain Name 

Configure your domain name by creating new MX record in management console of your domain name, also create A record with Name ‘mail’ in the same domain.

You can configure it by using the following steps:
1. Open your Domain Name provider website and login with your own credentials.

2.Go inside your Domain Name and click on manage DNS, now after that give IP address of your Linux vps hosting  in Target field.

3. Now Create two records one is the A record by filing the following fields like:

Name    Type        TTL        Target

WWW      A        300        IP_Address

MAIL        A        300        IP_Address
4. After creating A record now create MX record by filling the following fields like:

5.Name Type     TTL        Target           

  MX        3600

Save the configuration and exit from the settings.

Configure Postfix

Postfix is allowing server to send mail to email client and server by using SMTP protocol.

Install Postfix

First install postfix by using yum command:

    # yum -y install postfix

Edit the configuration file /etc/postfix/ and set the value as follows:

    # vi /etc/postfix/ (Open File with the vi editor)

myhostname = (Enter your

mydomain = (Enter

myorigin = $mydomain

inet_interfaces = all

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

mynetworks =, (Enter your own system IP address) not compulsory

home_mailbox = Maildir/

Uncomment ‘#’ from the above lines.

Once all the value has been set, after that set application to start during  system boot and start the service by using the following command:

    # chkconfig postfix on

    # service postfix start

Testing Postfix

To check if everything is working properly or not, you can send an email by type the following command from console: 

    # telnet localhost smtp

If telnet command not work then first download telnet with the following command:

    # yum -y install telnet

Before testing postfix create new user with help of following command:

    # useradd admin

    # passwd admin

Give New password and confirm password. 

After then give several inputs to send mail:
→ ehlo localhost

→ mail from:

→ rcpt to:

→ data

→ New Mail!

→ .

→ quit

To check if the mail has been received or not, go inside the following directory i.e. /home/username/Maildir/new/

    # cd /home/admin/Maildir/new/

    # ll

    # cat Name)

If the mail received by the system then mail server is working properly.

Configure Dovecot

While Postfix acts as a Mail Transfer Agent(MTA)only, in order to retrieve emails using modern tools you need to enable IMAP/POP3 protocols. Dovecot is an application that acts as a secure IMAP and POP3 server.

Install Dovecot

By using yum command you can install Dovecot:

    # yum install dovecot

Edit the configuration file /etc/dovecot/dovecot.conf to enable the needed protocols.

    # vi /etc/dovecot/dovecot.conf

Uncomment ‘#’ from the following lines in this file:

→  protocols = imap pop3 lmtp

Then you need to specify the mail location by editing the file /etc/dovecot/conf.d/10-mail.conf.

    # vi /etc/dovecot/conf.d/10-mail.conf

→ mail_location = maildir:~/Maildir

Edit the file /etc/dovecot/conf.d/10-auth.conf and set the following values:

    # vi /etc/dovecot/conf.d/10-auth.conf

→ disable_plaintext_auth = no

→ auth_mechanisms = plain login

Last file to edit /etc/dovecot/conf.d/10-master.conf.

    # vi /etc/dovecot/conf.d/10-master.conf

unix_listener auth-userdb {

    #mode = 0600

    user = postfix

    group = postfix


Note: After done editing in each file save with :wq in vi editor.

Also set Dovecot to start at system boot and start the service.

    # chkconfig dovecot on

    # service dovecot start

Testing Dovecot

To check if everything is working properly or not, you can receive an email by type the following command from console:

    # telnet localhost pop3

After that give several input to retrieve mails.

→ user admin (use your_user_name)

→ pass password (use your_password)

→ list

→ retr 1

Now message is shown here and after checking the output quit the screen with:

→ quit


How To Create and Install SSH Keys on the Shell

SSH Key Authentication

1.1 SSH Keys-An Overview

SSH keys are a way to identify trusted computers without involving passwords. You can generate an SSH key and add the public key to your GitHub account by following the procedures outlined in this section.

1.2 How to generate ssh key on Linux

Run all these command on your local system

# ssh-keygen

( Users need to press ENTER in order to save the file to the user home )

Upon entering the primary Gen Key command, users need to go through the following drill by answering the following prompts:

Enter the file where you wish to save the key (/home/demo/.ssh/id_rsa) : enter

Enter passphrase: enter

The output should be like this :

Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/
The key fingerprint is:
The key’s randomart image is:
+–[ RSA 2048]—-+
|+o … |
|E.. o |
|.+ o |
| . + o |
| o. + S . |
| *+ + |
| +.oo . |
| o. . |
| .. |

Now we have generated two files ( id_rsa and ) and we need to check permission for both files. The permission should be 644 for both. if permission didn’t assigned accordingly then we have to assign.

# chmod 644 id_rsa
# chmod 644

Now we need to locate key file on the Linux VPS server which one we want to access without password.

# ssh-copy-id  username@server IP address

Now try to login using key file.

# ssh -i id_rsa username@serverIPaddress

How to install free SSL certificate on domain via terminal?


Secure Socket Layer

It is a protocol used for transmitting private documents via the internet,  it uses a cryptographic system that uses two keys to encrypt data: a public key known to everyone and a private or secret key known only to the recipient of the message.


1.Domain Name registration

2.certboot software

Configure SSL

Steps to configure the Let’s Encrypt Free SSL certificate in centos7 cheap Linux VPS Server

  1. Open this URL and click on Get certbot  instruction options.

       2.Now select the software and VPS in which your website is running.

3. Run VPS with SSH and use sudo if you don’t have root privileges.

4.Enable EPEL repository by using the following command:

# yum install -y

  1. Now after that enable the optional channel by using the following command:

      # yum -y install yum-utils

     # yum-config-manager –enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

  1. Install certbot by using following command:

     # yum install certbot python2-certbot-apache

  1. Run this command to get a certificate and have Certbot edit your Apache configuration automatically to serve it, turning on HTTPS access in a single step. 

# certbot –apache

  1. Set up automatic renewal

# echo “0 0,12 * * * root python -c ‘import random; import time;

time.sleep(random.random() * 3600)’ && certbot renew” | sudo tee -a /etc/crontab > /dev/null

  1. Confirm that certbot worked by clicking on the particular website.

  1. Enter your domain name and it will show that website is secured or not.

Test your Domain Name

Now after completing the above installation go to any browser and type the Domain Name in the URL to check the configuration.



CONCLUSION– After the above configuration, you will be able to use Free SSL certificate from certbot on your domain.

How to install and configure LAMP(Linux, Apache, Mysql/MariaDB, Php) with WordPress CMS on Ubuntu 16.04.

WordPress is a popular open source Content Management System (CMS), which allows you to build dynamic websites and blogs. WordPress is the most popular blogging system on the web and allows updating, customizing, and managing the website from its back-end CMS.

In this blog, we are going to configure WordPress with LAMP in Ubuntu 16.04 for that the Prerequisite is Ubuntu 16.04 server.


1. Prerequisite

2. Install Apache Server 2.4.18

3. Install MySQL 5.7 

4. Install Php 7.0

5. Install WordPress File

6. Creating a WordPress Database in MYSQL

7. Test WordPress

  1. Prerequisite

Firstly required Ubuntu 16.04 VPS along with root privileges or you can also use sudo in starting of the commands.

Several commands are used to check the system status for the installation of WordPress CMS on the server.

# df -h (To check the status of memory in the system.)

#cat /etc/os-release(To check the operating system of the server.)

# apt-get update(To update all the packages in server.)

  1. Install Apache Server 2.4.18

Firstly install Apache server i.e. a web server that helps to host websites and blogs.

Now the next step is to install the apache server by using the command:

# apt-get install apache2

Check the status with the following command:

# systemctl status apache2

  1. Install MySQL 5.7

MySQL is a software used to create databases, stores, and get data when requested. MySQL is used by WordPress to store a database of its users. 

Now the next step is to install MYSQL and link it with PHP.

# apt-get install mysql-server php7.0-mysql

One dialog box is prompted for MySQL password, give the root password.

Now complete the MYSQL installation,

# mysql_secure_installation

Here, we have to configure the basic details of MYSQL and it asked for a password, enter the MYSQL password.

Would you like to setup validate password plugin? N (Use to set up  password policy)

Change the root password? N

Remove anonymous users? Y

Disallow root login remotely? Y

Remove test database and access to it? Y

Reload privilege tables now? Y

  1. Install PHP 7.0

WordPress requires all the components of LAMP and the last PHP 7.0 to be installed.

# apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcryptphp7.0-xml php7.0-curl php7.0-json php7.0-cgi

Check that php is installed correctly or not, For that remove default file from /var/www/html directory i.e. index.html and create new file i.e. info.php.

# cd /var/www/html

# nano info.php

And enter the sample code in info.php file,




Restart the apache server.

#systemctl restart apache2

After that open any browser and give IP i.ehttp://ip_address_server/

and here check the default page for PHP.

Now remove the index.php file,

# rm /var/www/html/index.html

  1. Install WordPress File

Once the configuration of the LAMP stack is completed, now go proceed with installing the WordPress file.

Go inside the html folder

# cd /var/www/html

And download the latest version of WordPress CMS from the internet,

#wget -c

Now use tar to unzip the downloaded WordPress archive.

#tar -xzvf latest.tar.gz

After that set the appropriate file permissions,

# chown -R www-data:www-data /var/www/html

#chmod -R 755 /var/www/html

  1. Creating a WordPress Database in MYSQL

Before proceeding with the installation of WordPress we have to create Database for WordPress in MySQL console.

# mysql -u root -p

Enter the password of MySQL and after that create a new database for WordPress.

# mysql>CREATE DATABASE WordPress;

Now create a new user and grant all privileges to the WordPress database.

# mysql>GRANT ALL PRIVILEGES on WordPress.* to 

  ‘username’@’localhost’ IDENTIFIED BY ‘password’;


After that exit the MySQL console.

# mysql>exit

  1. Test WordPress

Now after all the configuration done successfully, Restart the Apache webserver.

# systemctl restart apache2

After the server is restarted go in any browser and type http://ip_address/

And then the installation page is open here i.ehttp://ip_address/wp-admin/

Now configure the basic details. And after the administrator prompt is open. Launch the website in its control panel and refresh the URL.


CONCLUSION – After the above installation you will we able to create a blog by using WordPress CMS in Ubuntu VPS.

How to install WordPress with LEMP stack on CentOS 7 VPS (Part2)

5. Install Nginx

Nginx, pronounced as “Engine X” and is a very fast and lightweight web server, that can be used to support static files, used as a reverse proxy and also for load balancing.

Firstlly, update all the software packages by typing the following command:

# yum -y update

After that install EPEL repository that is required for Nginx packages by using command:

# yum -y install epel-release

Now install Nginx by typing the command:

# yum -y install nginx

After the installation is completed you must Enable and Start Nginx server by typing command:

# systemctl start nginx

And enable it with the command:

# systemctl enable nginx
Also check its status with

# systemctl status nginx

6. Configure Firewall

After completed with installation part, configure the firewall settings with the following command:

Open HTTP port by typing command with:

# firewall-cmd –permanent –zone=public –add-service=http

If firewalld package is not available then you can install it with command:

# yum -y install firewalld

And start firewalld service with command:

# systemctl start firewalld

Now reload firewall configuration file by typing:

# firewall-cmd –reload

Now verify your installation of Nginx by visiting the following URL on any browser you like with http://ip_address

7. Configure Nginx File

An Nginx server configuration file plays an important role, So you should be more careful when setting up this file.

For configuring Nginx file go inside the following path with the following command:# cd /etc/nginx/conf.d

# vi default.conf

And write the following code in the above file i.e. default.conf.

Also change your domain in place of ip_address

server {

listen 80;


root /usr/share/nginx/html/wordpress;

index index.php index.html index.htm;

location / {

try_files $uri $uri/ =404;


error_page 404 /404.html;

location = /40x.html {

root /usr/share/nginx/html/wordpress;


error_page 500 502 503 504 /50x.html;

location = /50x.html {

root /usr/share/nginx/html/wordpress;


location ~* \.php$ {

try_files $uri =404;

fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;

fastcgi_index index.php;

include fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;



And save it with :wq command, after that edit the configuration file of php-fpm with the following command:

# vi /etc/php-fpm.d/www.conf

Open the file with above command and edit the following lines i.e.

user = nginx

group = nginx

Add new listen under listen =

listen = /var/run/php-fpm/php-fpm.sock

And also add

listen.owner = nginx = nginx

Remove comment (;) from the above two lines and save it with :wq.

8. Install WordPress File

You can easily download WordPress archive file from the link I provided in this blog.
First go inside /tmp directory by typing below command:
# cd /tmp
Download the latest WordPress setup by using wget command
# wget
And if wget command not work then you can download it with the following command
# yum -y install wget
Now extract the downloaded file using below command:
# tar xzvf latest.tar.gz
After that move wordpress directory in /var/www/html directory by using command:
# mv wordpress /usr/share/nginx/html
Also change the ownership of /var/www/html directory by using the following command
# sudo chown -R nginx: /usr/share/nginx/html
# chmod -R 755 /usr/share/nginx/html

9. Test WordPress

Now for testing the server of WordPress you should restart the server for that follow the command:
# nginx -t (If the command shows ‘successfully’ message then the changes in file are correct and else the changes are wrong in the nginx configuration file.)
# systemctl restart php-fpm
# systemctl restart nginx

Then open any browser and type inside URL i.e http://ip_address/

After then configuration page i.e. http://ip_address/wp-admin/ is open and select language.





After this installation, you will be able to create or manage blog in wordpress CMS in Centos VPS.


Get started with CloudMinister Today