Atlantic.Net Blog

How to Install Backdrop CMS on Fedora

Backdrop CMS is an open-source and lightweight content management system written in PHP language. It is a fork of the Drupal project designed to build personal or professional websites. Backdrop CMS is a user-friendly CMS that helps you to build comprehensive websites for non-profit, education, and business. Backdrop CMS is fast, high-performance, and offers a responsive user interface allowing you to use it from many devices.

This post will show you how to install Backdrop CMS on Fedora Linux.

Step 1 – Install the LAMP Server

By default, Apache and MariaDB packages are included in the Fedora default repo. You can install both using the following command.

dnf install httpd mariadb-server

Next, add the PHP remi repository to install the latest PHP version.

dnf install -y http://rpms.remirepo.net/fedora/remi-release-34.rpm
dnf module install php:remi-8.1

Next, install the PHP with other PHP extensions using the following command.

dnf install php php-cli php-gd php-mysqlnd php-json php-curl php-pdo php-mbstring php-dom php-xml unzip -y

Once all the packages are installed, start and enable the Apache and MariaDB services using the following command.

systemctl start httpd
systemctl enable httpd
systemctl start mariadb
systemctl enable mariadb

Step 2 – Create a Database for Backdrop

Backdrop CMS uses a MariaDB as a database backend, so you will need to create a database and user for Backdrop.

First, connect to the MariaDB with the following command.

mysql

Next, create a database and user with the following command.

create database backdrop;
create user 'backdrop'@localhost identified by 'password';
grant all privileges on backdrop.* to 'backdrop'@localhost;

Next, flush the privileges and exit from the MariaDB using the following command.

flush privileges;
exit;

Step 3 – Download Backdrop CMS

First, download the latest version of Backdrop CMS from the GitHub repository.

wget https://github.com/backdrop/backdrop/releases/download/1.25.1/backdrop.zip

Once the download is completed, unzip the downloaded file with the following command.

unzip backdrop.zip

Next, move the extracted directory to the Apache web root.

mv backdrop /var/www/html/backdrop

Next, change the permissions and ownership of the Backdrop CMS directory.

chown -R apache:apache /var/www/html/backdrop
chmod -R 755 /var/www/html/backdrop

Step 4 – Configure Apache for Backdrop CMS

Next, you will need to create an Apache virtual host configuration file to host Backdrop CMS on the internet.

nano /etc/httpd/conf.d/backdrop.conf

Add the following configurations.

<virtualhost *:80>
	ServerAdmin [email protected]
        ServerName backdrop.example.com
        DocumentRoot /var/www/html/backdrop
<directory /var/www/html/backdrop>
allowoverride all
allow from all
</directory>
TransferLog /var/log/httpd/backdrop_access.log
ErrorLog /var/log/httpd/backdrop_error.log
</virtualhost>

Save and close the file, then restart the Apache service to apply the changes.

systemctl restart httpd

Step 5 – Access Backdrop CMS

Now, open your web browser and access the Backdrop CMS using the URL http://backdrop.example.com. You will see the Backdrop language selection screen.

Click on SAVE AND CONTINUE. You will see the database configuration screen.

Provide your database details and click on SAVE AND CONTINUE. You will see the user configuration screen.

Provide your admin username, password, email then click on SAVE AND CONTINUE. You will see the Backdrop CMD dashboard.

Conclusion

In this tutorial, you learned how to install and configure Backdrop CMS using LAMP on Fedora. You can now start building your website from the Backdrop CMS web interface. You can now use Backdrop CMS on virtual private server hosting from Atlantic.Net!

Get a $250 Credit and Access to Our Free Tier!

Free Tier includes:
G3.2GB Cloud VPS a Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year