How to install Backdrop CMS on CentOS 7 using LEMP

To install Backdrop CMS on CentOS 7 using LEMP

In our preceeding tutorial, we have been briefed about the installation process of Backdrop CMS on CentOS 7. In this tutorial, we will see about the installation procedure of Backdrop CMS on CentOS 7 using LEMP. Backdrop CMS is a full-featured content management system that permits the non-technical users to manage wide variety of content. It can be used to create all kinds of websites including blogs, image galleries, social networks, intranets, and more. It is very simple to use, that even users with minimal technical knowledge can easily create a web content using this CMS tool.


Pre - Requisite
LEMP Stack
- Nginx
- MariaDB
- PHP 7 by executing the following command along with the dependencies.
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

yum install mod_php71w php71w-cli php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w-xml php71w-mysql

Installation procedure

To proceed with the installation procedure, go to its official website and get the latest stable version. Execute the following wget command followed by the download link.

[root@linuxhelp ~]# wget https://github.com/backdrop/backdrop/releases/download/1.8.0/backdrop.zip
--2017-10-23 10:52:05--  https://github.com/backdrop/backdrop/releases/download/1.8.0/backdrop.zip
Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/12285928/b0233aca-9a6c-11e7-9ef1-585df82e2732?X-Amz-Algorithm=AWS4-HMAC-SHA256& X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20171023%2Fus-east-1%2Fs3%2Faws4_request& X-Amz-Date=20171023T052242Z& X-Amz-Expires=300& X-Amz-Signature=5609636f374e0d037fed42a96d89a20b7864d3bc8c8cb5c5c2cee5d0ee50600e& X-Amz-SignedHeaders=host& actor_id=0& response-content-disposition=attachment%3B%20filename%3Dbackdrop.zip& response-content-type=application%2Foctet-stream [following]
--2017-10-23 10:52:06--  https://github-production-release-asset-2e65be.s3.amazonaws.com/12285928/b0233aca-9a6c-11e7-9ef1-585df82e2732?X-Amz-Algorithm=AWS4-HMAC-SHA256& X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20171023%2Fus-east-1%2Fs3%2Faws4_request& X-Amz-Date=20171023T052242Z& X-Amz-Expires=300& X-Amz-Signature=5609636f374e0d037fed42a96d89a20b7864d3bc8c8cb5c5c2cee5d0ee50600e& X-Amz-SignedHeaders=host& actor_id=0& response-content-disposition=attachment%3B%20filename%3Dbackdrop.zip& response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.227.112
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.227.112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9245395 (8.8M) [application/octet-stream]
Saving to: ‘ backdrop.zip’ 

100%[======================================> ] 9,245,395   1.10MB/s   in 9.7s   

2017-10-23 10:52:17 (934 KB/s) - ‘ backdrop.zip’  saved [9245395/9245395]


Extract the downloaded package by running the unzip command.

[root@linuxhelp ~]# unzip backdrop.zip 
Archive:  backdrop.zip
  inflating: backdrop/files/.htaccess  
  inflating: backdrop/files/README.md  
  inflating: backdrop/core/includes/database/mysql/query.inc  
  inflating: backdrop/core/includes/database/mysql/install.inc  
  inflating: backdrop/core/includes/database/mysql/database.inc  
  inflating: backdrop/core/includes/database/mysql/schema.inc  
  inflating: backdrop/core/includes/database/query.inc  
  inflating: backdrop/core/includes/database/select.inc  
  inflating: backdrop/core/includes/database/prefetch.inc  
  inflating: backdrop/core/includes/database/database.inc  
.
.
.
.
inflating: backdrop/sites/sites.php  
  inflating: backdrop/sites/README.md  
  inflating: backdrop/index.php      
  inflating: backdrop/robots.txt     
  inflating: backdrop/.htaccess      
  inflating: backdrop/.editorconfig  
  inflating: backdrop/README.md      
  inflating: backdrop/.gitignore     
  inflating: backdrop/settings.php   

Move the backdrop directory to Nginx root directory path.

[root@linuxhelp ~]# mv backdrop /usr/share/nginx/html/

Provide the appropriate owner permission and file execution permission for the directory.

[root@linuxhelp ~]# cd /usr/share/nginx/html/
[root@linuxhelp html]# chown -R nginx:nginx /usr/share/nginx/html/
[root@linuxhelp html]# chmod -R 777 /usr/share/nginx/html/

Configure the Nginx Virtual host file for Backdrop CMS named backdrop.conf. Enter the following content in the file and save it.

[root@linuxhelp ~]# vim /etc/nginx/conf.d/backdrop.conf

server {
    listen  80 
  server_name www.linuxhelp1.com 

    location / {
        root  /usr/share/nginx/html 
        index  index.html index.htm index.php 
    }

    error_page  500 502 503 504  /50x.html 
    location = /50x.html {
        root  /usr/share/nginx/html 
    }
location ~ \.php {
    fastcgi_index index.php 
    fastcgi_split_path_info ^(.+\.php)(.*)$ 
    include /etc/nginx/fastcgi_params 
    fastcgi_pass unix:/run/php-fpm/php-fpm.sock 
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name 
  }

}

Restart the Nginx service.

[root@linuxhelp ~]# systemctl restart nginx

Switch to the browser and enter the URL as http://www.linuxhelp1.com/backdrop. The installation of Backdrop CMS appears on the screen. Choose the required language and select Save and Continue option.

Enter the required database details and select Save and Continue option.

The installation is in progress and the user has to wait for some time.

Next create an user account by entering the required details.

Select the time zone as per the requirements.

Now run the Backdrop CMS to see the site that you have created.

This concludes the installation procedure of Backdrop CMS on CentOS 7 using LEMP.

FAQ
Q
What are the required PHP Modules for Backdrop CMS?
A
The required PHP Modules for Backdrop CMS are mod_php71w php71w-cli php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w-xml php71w-mysql
Q
What is Backdrop CMS?
A
Backdrop CMS is a full-featured content management system that permits non-technical users to manage a wide variety of content. It can be used to create all kinds of websites including blogs, image galleries, social networks, intranets, and more. It is very simple to use, that even users with minimal technical knowledge can easily create web content using this CMS tool.
Q
Please share the installation process with the LAMP for Backdrop?
A
To install Backdrop CMS with LAMP, "https://www.linuxhelp.com/how-to-install-backdrop-cms-on-centos-7/"
Q
Is this Backdrop CMS user-friendly or complicated to use with?
A
Yes Backdrop CMS is user-friendly and it even allows non-technical users to manage a wide variety of content
Q
My web interface is not getting displayed it is showing a blank page on Backdrop CMS?
A
Check with the php module and also with the look at the apache error logs of Backdrop CMS.