How to install backdrop cms in ubuntu 18.10
- 0:41 lsb_release -a
- 0:54 apt install apache2
- 1:42 apt install mysql*
- 2:35 mysql_secure_installation
- 3:12 apt install php php-cli php-common php-gd php-mbstring php-xml php-mysql
- 3:28 systemctl restart apache2.service
- 3:39 wget https://github.com/backdrop/backdrop/releases/download/1.12.5/backdrop.zip
- 3:55 unzip backdrop.zip
- 4:12 mv backdrop /var/www/
- 4:37 chown -R www-data.www-data /var/www/backdrop
- 4:48 mysql -u root -p
- 6:27 vim /etc/apache2/sites-available/backdrop.conf
- 7:07 vim /etc/hosts
- 7:41 a2dissite 000-default.conf
- 7:56 a2ensite backdrop.conf
- 8:15 a2enmod rewrite
- 8:33 systemctl restart apache2.service
Installation of backdrop 1.12 using lamp in ubuntu18.10
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. Installation of Backdrop CMS is explained in this manual.
Checking the Ubuntu version
root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
Install the apache by using the Following command
root@linuxhelp:~# apt install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
apache2
0 upgraded, 1 newly installed, 0 to remove and 311 not upgraded.
Need to get 0 B/95.1 kB of archives.
After this operation, 535 kB of additional disk space will be used.
Selecting previously unselected package apache2.
(Reading database ... 133800 files and directories currently installed.)
Preparing to unpack .../apache2_2.4.34-1ubuntu2_amd64.deb ...
Unpacking apache2 (2.4.34-1ubuntu2) ...
Processing triggers for ufw (0.35-6) ...
Setting up apache2 (2.4.34-1ubuntu2) ...
Processing triggers for systemd (239-7ubuntu10) ...
Processing triggers for man-db (2.8.4-2) ...
Once the Installation of apache Is completed start the service
root@linuxhelp:~# systemctl start apache2.service
Enable the service of apache by using the Following Command
root@linuxhelp:~# systemctl enable apache2.service
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
Next step will be installing mysql
root@linuxhelp:~# apt install mysql*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'mysqltcl' for glob 'mysql*'
Note, selecting 'mysql-workbench' for glob 'mysql*'
Note, selecting 'mysql-client-5.5' for glob 'mysql*'
Note, selecting 'mysql-client-5.6' for glob 'mysql*'
Note, selecting 'mysql-client-5.7' for glob 'mysql*'
Note, selecting 'mysql-common-5.6' for glob 'mysql*'
Note, selecting 'mysql-server-5.0' for glob 'mysql*'
.
.
.
Created symlink /etc/systemd/system/multi-user.target.wants/mysql.service → /lib/systemd/system/mysql.service.
Setting up mysql-server (5.7.25-0ubuntu0.18.10.2) ...
Setting up mysql-testsuite-5.7 (5.7.25-0ubuntu0.18.10.2) ...
Setting up mysql-testsuite (5.7.25-0ubuntu0.18.10.2) ...
Setting up odbcinst (2.3.6-0.1) ...
Setting up odbcinst1debian2:amd64 (2.3.6-0.1) ...
Setting up libgdal20 (2.3.2+dfsg-2) ...
Setting up mysql-workbench (6.3.10+dfsg-3ubuntu1) ...
Processing triggers for libc-bin (2.28-0ubuntu1) ...
Processing triggers for systemd (239-7ubuntu10) ...
Once the mysql Installation is completed start the service
root@linuxhelp:~# systemctl start mysql
Enable the mysql service by using the Following command
root@linuxhelp:~# systemctl enable mysql
Synchronizing state of mysql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable mysql
After completing, secure the root password for mysql database as Follows
root@linuxhelp:~# mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
VALIDATE PASSWORD PLUGIN can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD plugin?
Press y|Y for Yes, any other key for No:
Please set the password for root here.
New password:
Re-enter new password:
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
- Dropping test database...
Success.
- Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
Once Mysql is Installed, install the php and php modules
root@linuxhelp:~# apt install php php-cli php-common php-gd php-mbstring php-xml php-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libapache2-mod-php7.2 php7.2 php7.2-cli php7.2-common php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache
php7.2-readline php7.2-xml
Suggested packages:
php-pear
The following NEW packages will be installed:
libapache2-mod-php7.2 php php-cli php-common php-gd php-mbstring php-mysql php-xml php7.2 php7.2-cli php7.2-common
php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline php7.2-xml
0 upgraded, 18 newly installed, 0 to remove and 311 not upgraded.
.
.
.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php7.2
Setting up php-mysql (1:7.2+62) ...
Setting up php-cli (1:7.2+62) ...
Setting up php7.2 (7.2.15-0ubuntu0.18.10.2) ...
Setting up php (1:7.2+62) ...
Restart the apache service by using following command
root@linuxhelp:~# systemctl restart apache2.service
Download the Backdrop package by running the following command.
root@linuxhelp:~# wget https://github.com/backdrop/backdrop/releases/download/1.12.5/backdrop.zip
--2019-03-31 02:23:34-- https://github.com/backdrop/backdrop/releases/download/1.12.5/backdrop.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/12285928/504a8180-4b14-11e9-8c92-428d62e0fd98?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190330%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190330T085427Z&X-Amz-Expires=300&X-Amz-Signature=57cdfcf220ee70618651f4d652343c2e6fa468980c6b343f0d125675fee9f84f&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dbackdrop.zip&response-content-type=application%2Foctet-stream [following]
--2019-03-31 02:23:35-- https://github-production-release-asset-2e65be.s3.amazonaws.com/12285928/504a8180-4b14-11e9-8c92-428d62e0fd98?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190330%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190330T085427Z&X-Amz-Expires=300&X-Amz-Signature=57cdfcf220ee70618651f4d652343c2e6fa468980c6b343f0d125675fee9f84f&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.162.211
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.162.211|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9411728 (9.0M) [application/octet-stream]
Saving to: ‘backdrop.zip’
backdrop.zip 100%[====================================================>] 8.98M 1.11MB/s in 9.8s
2019-03-31 02:23:47 (935 KB/s) - ‘backdrop.zip’ saved [9411728/9411728]
Once the installation package is downloaded,Extract it as follows.
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/install.php
inflating: backdrop/core/LICENSE.txt
inflating: backdrop/core/authorize.php
inflating: backdrop/core/.jshintignore
inflating: backdrop/core/.jshintrc
inflating: backdrop/modules/README.md
inflating: backdrop/layouts/README.md
inflating: backdrop/themes/README.md
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
Now move the Backdrop directory to /var/www/ location.
root@linuxhelp:~# mv backdrop /var/www/
Change the ownership for the Backdrop directory with the help of the following command.
root@linuxhelp:~# chown -R www-data.www-data /var/www/backdrop
Next, Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.
root@linuxhelp:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.25-0ubuntu0.18.10.2 (Ubuntu)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database backdrop1;
Query OK, 1 row affected (0.01 sec)
mysql> create user 'backuser'@localhost identified by '123456';
Query OK, 0 rows affected (0.01 sec)
mysql> grant all privileges on backdrop1.* to 'backuser'@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
Next step is very crucial. You need to configure the Apache VirtualHost for Backdrop.
root@linuxhelp:~# vim /etc/apache2/sites-available/backdrop.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/backdrop
</Virtualhost>
Now configure the host entry
root@linuxhelp:~# vim /etc/hosts
<ipaddress> <domain name>
Disable default access
root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable site access
root@linuxhelp:~# a2ensite backdrop.conf
Enabling site backdrop.
To activate the new configuration, you need to run:
systemctl reload apache2
Enable rewrite module
root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Once it is completed,Restart the Apache Web Server by running the following command
root@linuxhelp:~# systemctl restart apache2.service
Once It completed enter into browser and enter your domain name
Choose your preferred language and click Save and Continue.

Then configure the Database and database username

Installation process is completed

Configure the site details and click Save and Continue.

Select the time zone as per the requirements.

This the backdrop cms dashboard

With this the installation of backdrop cms 1.12 in ubuntu 18.10 comes to an end
Comments ( 0 )
No comments available