How to Install Baun CMS on Linux Mint 20
To Install Baun CMS on Linux Mint 20
The Baun CMS is an open-source, lightweight, and extensible flat-file CMS written in PHP. It is ideal for small websites. A flat-file CMS system is characterized by simplicity, portability, security, speed, and version control. This tutorial explains how to set up Baun CMS on Linux Mint 20.
Requirements for Baun CMS:
Apache
MySQL
PHP and its Modules
Installation Procedure:
Now check the version of the Linux mint by using the following command
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"
Now download the Baun CMS package by using the following command
root@linuxhelp:~# wget https://github.com/BaunCMS/Baun/archive/1.3.2.zip
--2020-12-01 09:52:06-- https://github.com/BaunCMS/Baun/archive/1.3.2.zip
Resolving github.com (github.com)... 13.234.176.102
Connecting to github.com (github.com)|13.234.176.102|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/BaunCMS/Baun/zip/1.3.2 [following]
--2020-12-01 09:52:07-- https://codeload.github.com/BaunCMS/Baun/zip/1.3.2
Resolving codeload.github.com (codeload.github.com)... 13.127.152.42
Connecting to codeload.github.com (codeload.github.com)|13.127.152.42|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘1.3.2.zip’
1.3.2.zip [ <=> ] 26.38K 143KB/s in 0.2s
2020-12-01 09:52:07 (143 KB/s) - ‘1.3.2.zip’ saved [27014]
Extract the baun command by using command
root@linuxhelp:~# unzip 1.3.2.zip
Archive: 1.3.2.zip
a9e698e9e16e8a9785b95bdc89eeee0c487d78ee
creating: Baun-1.3.2/
inflating: Baun-1.3.2/.gitignore
inflating: Baun-1.3.2/CHANGELOG.md
.
.
.
inflating: Baun-1.3.2/public/themes/baun/bower_components/skeleton/index.html
inflating: Baun-1.3.2/public/themes/baun/layout.html
inflating: Baun-1.3.2/public/themes/baun/page.html
inflating: Baun-1.3.2/public/themes/baun/post.html
inflating: Baun-1.3.2/public/themes/baun/data-style.css
Now list the files
root@linuxhelp:~# ls
1.3.2.zip Baun-1.3.2
Now move the baun CMS directory to apache root directory
root@linuxhelp:~# mv Baun-1.3.2 /var/www/baun
Now set the ownership and permission to baun root directory
root@linuxhelp:~# chown -R www-data.www-data /var/www/baun/
root@linuxhelp:~# chmod -R 755 /var/www/baun/
Now configure the virtualhost for access the baun CMS by using following command
root@linuxhelp:~# vi /etc/apache2/sites-available/baun.conf
Now move into the baun directory and install the composer package
root@linuxhelp:~# cd /var/www/baun
Use the following command
root@linuxhelp:/var/www/baun# apt install composer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
.
.
.
Setting up php-composer-semver (1.5.1-1) ...
Setting up git-man (1:2.25.1-1ubuntu3) ...
Setting up php-json-schema (5.2.9-1) ...
Setting up php-composer-spdx-licenses (1.5.3-1) ...
Setting up php-symfony-console (4.3.8+dfsg-1ubuntu1) ...
Setting up php-composer-xdebug-handler (1.4.0-1) ...
Setting up git (1:2.25.1-1ubuntu3) ...
Setting up composer (1.10.1-1) ...
Processing triggers for man-db (2.9.1-1)
Now run the composer file by using following command
root@linuxhelp:/var/www/baun# composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
.
.
.
Writing lock file
Generating autoload files
5 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Now disable the default site access
root@linuxhelp:/var/www/baun# 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 baun CMS
root@linuxhelp:/var/www/baun# a2ensite baun.conf
Enabling site baun.
To activate the new configuration, you need to run:
systemctl reload apache2
Now enable the rewrite module
root@linuxhelp:/var/www/baun# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2
Now restart the apache service by using following command
root@linuxhelp:/var/www/baun# systemctl restart apache2
Open browser and enter your hostname
This the application of the baun CMS
With this, the method of installation Baun CMS on LinuxMint 20 comes to an end.
1.Minimum 128MB RAM, recommend 512MB.
2.RHEL/CentOS 7/6, Fedora 18-23, Ubuntu 16.04-12.04, Debian 8/7, etc.
3.MySQL/MariaDB
4.PHP 5.4 +
5.Apache 2.4 with mod_php