How to install Backdrop CMS on CentOS 7

To install Backdrop CMS on CentOS 7

Backdrop CMS is a full-featured content management system that allows 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 a web content using this CMS tool. This tutorial explains the installation process of Backdrop CMS on CentOS 7.

Pre-Requisite

LAMP Stack

- Apache

- MariaDB

- PHP 7 (mod_php71w php71w-cli php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-xml)

Installation procedure

To proceed with the installation procedure, go to its official website and get the package link for downloading it. Run the wget command followed by the download link.

[root@linuxhelp ~]# wget https://github.com/backdrop/backdrop/releases/download/1.8.0/backdrop.zip
--2017-09-28 10:58:20--  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%2F20170928%2Fus-east-1%2Fs3%2Faws4_request& X-Amz-Date=20170928T052854Z& X-Amz-Expires=300& X-Amz-Signature=5fa61f9f6066c26bf34e19f1579b7d1dc9f5a1fb14449f947f03ee3130554161& X-Amz-SignedHeaders=host& actor_id=0& response-content-disposition=attachment%3B%20filename%3Dbackdrop.zip& response-content-type=application%2Foctet-stream [following]
--2017-09-28 10:58:22--  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%2F20170928%2Fus-east-1%2Fs3%2Faws4_request& X-Amz-Date=20170928T052854Z& X-Amz-Expires=300& X-Amz-Signature=5fa61f9f6066c26bf34e19f1579b7d1dc9f5a1fb14449f947f03ee3130554161& 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.65.168
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.65.168|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9245395 (8.8M) [application/octet-stream]
Saving to: ‘ backdrop.zip’ 
100%[======================================> ] 9,245,395   27.1KB/s   in 5m 31s

2017-09-28 11:03:54 (27.2 KB/s) - ‘ backdrop.zip’  saved [9245395/9245395]

Extract the downloaded package in Apache root directory by running the unzip command.

[root@linuxhelp ~]# unzip backdrop.zip -d /var/www/html/
Archive:  backdrop.zip
  inflating: /var/www/html/backdrop/files/.htaccess  
  inflating: /var/www/html/backdrop/files/README.md  
  inflating: /var/www/html/backdrop/core/includes/database/mysql/query.inc  
  inflating: /var/www/html/backdrop/core/includes/database/mysql/install.inc  
  inflating: /var/www/html/backdrop/core/includes/database/mysql/database.inc  
  inflating: /var/www/html/backdrop/core/includes/database/mysql/schema.inc  
  inflating: /var/www/html/backdrop/core/includes/database/query.inc  
  inflating: /var/www/html/backdrop/core/includes/database/select.inc  
  inflating: /var/www/html/backdrop/core/includes/database/prefetch.inc  
  inflating: /var/www/html/backdrop/core/includes/database/database.inc  
  inflating: /var/www/html/backdrop/core/includes/database/schema.inc  
  inflating: /var/www/html/backdrop/core/includes/database/log.inc  
  inflating: /var/www/html/backdrop/core/includes/database/charset_converter.inc  
.
.
.
.
inflating: /var/www/html/backdrop/robots.txt  
  inflating: /var/www/html/backdrop/.htaccess  
  inflating: /var/www/html/backdrop/.editorconfig  
  inflating: /var/www/html/backdrop/README.md  
  inflating: /var/www/html/backdrop/.gitignore  
  inflating: /var/www/html/backdrop/settings.php  

Move the package to the Apache path and list the directories.

[root@linuxhelp ~]# cd /var/www/html/
[root@linuxhelp html]# ll
total 4
drwxr-xr-x 9 root root 4096 Sep 28 11:20 backdrop

Provide the owner permission and file execution permission by executing the following list of commands.

[root@linuxhelp html]# chown -R apache:apache /var/www/html/
[root@linuxhelp html]# chmod -R 777 /var/www/html/

Next open Apache configuration file by executing the following command and open it using vim editor. Make the following changes in the file and save it.

[root@linuxhelp backdrop]# vim /etc/httpd/conf/httpd.conf
ServerName www.linuxhelp1.com:80
Directoryindex index.html index.php

Restart your Apache service.

[root@linuxhelp backdrop]# systemctl restart httpd                         

Switch over to the browser and enter http://www.linuxhelp1.com /backdrop URL. The Backdrop installation wizard appears on the screen. Choose the required language and click save and continue.

Enter the required database details along with database username and password. Click Save and continue.

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

Next enter the site details with the site name and create an user account.

Enter the email address along with password and save the changes.

The details have been entered. Now run the Backdrop CMS to see the site that you have created.

The installation procedure of Backdrop CMS on CentOS 7 is done successfully.

FAQ
Q
What are the features available in Backdrop CMS?
A
The following features avaiolable in the Backdrop CMS as,

Configuration

Admin Bar (port of Admin Menu)

Views

Views Bulk Operations

Responsive table

Instantfilter

UUID

Panels (layouts now)

Field as Block (our version was based on CTools, not the original FAB module)

CKEditor

Email

Link

Date
Q
What is the PHP requiremwnt to using the Backdrop CMS?
A
The PHP 5.3.2 or higher will be required to use the Backdrop CMS
Q
What is a Minimum requirement of Disk space for the Backdrop CMS?
A
A minimum installation requires 15 MB. A website with many contributed modules and themes installed may need 60 MB or more. A lot more space may be required for the database and files or media uploaded by the website's users.
Q
What is the Web Server Details for the Backdrop CMS?
A
Apache



Apache is the most commonly used web server for Backdrop CMS. Backdrop CMS will work on Apache legacy versions (1.3) as well as stable versions (2.x) hosted on UNIX/Linux, OS X, or Windows.



You can use the Apache 'mod_rewrite' extension to allow for clean URLs.

The Apache Virtualhost configuration must contain the directive AllowOverride All to allow Backdrop's .htaccess file to be used.

Sample Apache Virtualhost configuration:



DocumentRoot "/path/to/backdrop"

ServerName example.com

AllowOverride All



Nginx



Nginx is a commonly used web server that focuses on high concurrency, performance, and low memory usage. Backdrop CMS will work on Nginx legacy versions (0.7.x, 0.8.x, 1.0.x, 1.2.x), stable 1.4.x versions, and mainline 1.5.x versions hosted on UNIX/Linux, OS X, or Windows.



Recommended Nginx settings for clean URLs:



server {

listen 80; server_name example.com; location / {

root /path/to/backdrop; index index.php;

error_page 404 = @backdrop;

} location @backdrop { rewrite ^(.*)$ /index.php?q=$1 last; }

}
Q
What is the MySQL requirement of the Backdrop CMS?
A
The MySQL or MariaDB 5.0.15 or higher (with PDO) will be required to use the Backdrop CMS.