How to Install Bludit CMS on Linux Mint 20

To Install Bludit CMS on Linux Mint 20

Bludit CMS is an open-source and extensible file-based CMS that stores posts and pages as flat files. It allows users to build a fully functional site or blog easily. This tutorial provides an overview of how to install Bludit CMS on Linux Mint 20.

Installation Procedure:

Check the version of the OS

root@linuxhelp:~# cat /etc/os-release 
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.ubuntu.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=ulyana
UBUNTU_CODENAME=focal

Before Install the Bludit CMS then install LAMP server. Now install the apache server

root@linuxhelp:~# apt install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap
0 upgraded, 8 newly installed, 0 to remove and 363 not upgraded.
Need to get 1,713 kB of archives.
After this operation, 7,494 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libapr1 amd64 1.6.5-1ubuntu1 [91.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1 amd64 1.6.1-4ubuntu2 [84.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-4ubuntu2 [10.5 kB]
Created symlink /etc/systemd/system/multi-user.target.wants/apache2.service → /lib/systemd/system/apache2.service.
Created symlink /etc/systemd/system/multi-user.target.wants/apache-htcacheclean.service → /lib/systemd/system/apache-htcac

Once the apache service is installed now start the apache2 service by using the following command

root@linuxhelp:~# systemctl start apache2

check the status of apache2

root@linuxhelp:~# systemctl status apache2

Install mariadb server by using the following command

root@linuxhelp:~# apt install mariadb-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  galera-3 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libhtml-template-perl libterm-readkey-perl
  mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common mariadb-server-10.3 mariadb-server-core-10.3 socat
Suggested packages:
  libmldbm-perl libnet-daemon-perl libsql-statement-perl libipc-sharedcache-perl mailx mariadb-test tinyca
The following NEW packages will be installed:
  galera-3 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libhtml-template-perl libterm-readkey-perl
  mariadb-client-10.3 mariadb-client-core-10.3 mariadb-common mariadb-server mariadb-server-10.3
  mariadb-server-core-10.3 socat
0 upgraded, 13 newly installed, 0 to remove and 363 not upgraded.
Need to get 19.3 MB of archives.
After this operation, 164 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 mariadb-common all 1:10.3.22-1ubuntu1 [15.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 galera-3 amd64 25.3.29-1 [898 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libdbi-perl amd64 1.643-1 [730 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libconfig-inifiles-perl all 3.000002-1 [40.6 kB]
Selecting previously unselected package mariadb-client-core-10.3.

Once the mariadb server is installed now create a credentials of mysql server

root@linuxhelp:~# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n]  
New password: 
Re-enter new password: 
Sorry, passwords do not match.

New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB 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? [Y/n] 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? [Y/n] y
 ... Success!

By default, MariaDB 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? [Y/n] 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? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

Now the start the mariadb service by using the following command

root@linuxhelp:~# systemctl start mysql

Now I am going to check the status of the mariadb service by using the following command

root@linuxhelp:~# systemctl status mysql

Install php and its modules by using the following command

root@linuxhelp:~# apt install php php-xml php-mysql php-mcrypt php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libapache2-mod-php7.4 php-common php7.4 php7.4-cli php7.4-common php7.4-json php7.4-mysql php7.4-opcache
  php7.4-readline
Suggested packages:
  php-pear
The following NEW packages will be installed:
  libapache2-mod-php libapache2-mod-php7.4 php php-common php-mysql php7.4 php7.4-cli php7.4-common php7.4-json
  php7.4-mysql php7.4-opcache php7.4-readline
0 upgraded, 12 newly installed, 0 to remove and 363 not upgraded.
Need to get 4,144 kB of archives.
After this operation, 18.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 php-common all 2:75 [11.9 kB]
.
.
.
Setting up libapache2-mod-php (2:7.4+75) ...
Setting up php (2:7.4+75) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for php7.4-cli (7.4.3-4ubuntu2.4) ...
Processing triggers for libapache2-mod-php7.4 (7.4.3-4ubuntu2.4) ...

Once the php configuration is completed now I am going to restart the apache2 service by using following command

root@linuxhelp:~# systemctl restart apache2

 Download the Bludit CMS by using the following command
root@linuxhelp:~# wget https://www.bludit.com/releases/bludit-3-9-2.zip
--2020-11-28 18:29:44--  https://www.bludit.com/releases/bludit-3-9-2.zip
Resolving www.bludit.com (www.bludit.com)... 172.67.211.35, 104.27.170.56, 104.27.171.56, ...
Connecting to www.bludit.com (www.bludit.com)|172.67.211.35|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1773920 (1.7M) [application/zip]
Saving to: ‘bludit-3-9-2.zip’

bludit-3-9-2.zip               100%[=================================================>]   1.69M  1.14MB/s    in 1.5s    

2020-11-28 18:29:46 (1.14 MB/s) - ‘bludit-3-9-2.zip’ saved [1773920/1773920]

Extract the buldit CMS by using the following command

root@linuxhelp:~# unzip bludit-3-9-2.zip 
Archive:  bludit-3-9-2.zip
   creating: bludit-3-9-2/
  inflating: bludit-3-9-2/install.php  
  inflating: bludit-3-9-2/index.php  
.
.
.
  inflating: bludit-3-9-2/bl-plugins/disqus/languages/fa_IR.json  
  inflating: bludit-3-9-2/bl-plugins/disqus/languages/de_DE.json  
  inflating: bludit-3-9-2/bl-plugins/disqus/languages/fr_FR.json  
  inflating: bludit-3-9-2/bl-plugins/disqus/languages/uk_UA.json  
  inflating: bludit-3-9-2/bl-plugins/disqus/languages/es.json  
  inflating: bludit-3-9-2/bl-plugins/disqus/languages/pl_PL.json  
   creating: bludit-3-9-2/bl-content/
  inflating: bludit-3-9-2/.htaccess

list the file

root@linuxhelp:~# ls
bludit-3-9-2  bludit-3-9-2.zip

Now move the bludit CMS to apache2 root directory

root@linuxhelp:~# mv bludit-3-9-2 /var/www/bludit

Set the ownership to Bludit directory by using the following command

root@linuxhelp:~# chown -R www-data.www-data /var/www/bludit/

Now set the permissions to Bludit directory

root@linuxhelp:~# chmod -R 755 /var/www/bludit/

Now configure the virtual host for access the bludit CMS by using following command

root@linuxhelp:~# vi /etc/apache2/sites-available/bludit.conf

Now disable the default site access by using following command

root@linuxhelp:~# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

Now enable the site access for bludit CMS

root@linuxhelp:~# a2ensite bludit.conf
Enabling site bludit.
To activate the new configuration, you need to run:
  systemctl reload apache2

Now enable the rewrite module by using following command

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

Now restart the apache2 service by using following command

root@linuxhelp:~# systemctl restart apache2

Open browser and enter your hostname

This installation page of Bludit CMS

Now Create admin credentials here

This is the welcome page of Bludit CMS

Click the Admin panel and enter the admin credentials here This is the dashboard of Bludit CMS

With this, the method of installation Bludit CMS on LinuxMint 20 comes to an end.

FAQ
Q
How do you configure the virtual host to access the Bludit CMS?
A
The command is # vi /etc/apache2/sites-available/bludit.conf
Q
How do check the status of the apache service?
A
The command is # systemctl status apache2
Q
How do you restart the MariaDB (or) MySQL service?
A
The command is # systemctl start MariaDB (or) Mysql
Q
What is the command to edit the file?
A
The command is # vi (path)
Q
What is the command to install the packages?
A
The Command is # apt install