How to Install Baun CMS on RHEL7.6

How to Install Baun CMS on RHEL7.6

Introduction:

Baun CMS is an open source, lightweight and extensible flat-file CMS for PHP. It helps its users create small websites easily as it doesn’t require database and administration back-end . In this tutorial, we are going to see the method to install Baun CMS on RHEL7.6

Prerequisite

Apache

Composer

PHP and Modules(php-gd php-pdo php-mbstring php-mcrypt php-mysql php-simplexml php-pecl-zip php-imap)

Installation Process :

Use the following command to check the installed version of OS.

[root@linuxhelp ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"

Download the composer file using the below command

 [root@linuxhelp ~]# curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...
Composer (version 1.10.10) successfully installed to: /root/composer.phar
Use it: php composer.phar

Then move the downloaded composer file under bin directory

[root@linuxhelp ~]# mv composer.phar  /usr/local/bin/composer

**Now, change the execute permission for the file **

[root@linuxhelp ~]# chmod +x /usr/local/bin/composer 

Change directory to html directory

[root@linuxhelp ~]# cd /var/www/html/

Here, clone the Baun CMS Git project

[root@linuxhelp html]# git clone https://github.com/BaunCMS/Baun.git
Cloning into 'Baun'...
remote: Enumerating objects: 392, done.
remote: Total 392 (delta 0), reused 0 (delta 0), pack-reused 392
Receiving objects: 100% (392/392), 59.94 KiB | 0 bytes/s, done.
Resolving deltas: 100% (184/184), done.

Change directory to baun

[root@linuxhelp html]# cd Baun/

Where run the composer install command

[root@linuxhelp Baun]# composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 17 installs, 0 updates, 0 removals
 - Installing bauncms/baun-blog-rss (1.0.0): Downloading (100%)         
 - Installing dflydev/dot-access-data (v1.1.0): Downloading (100%)         
 - Installing league/event (2.2.0): Downloading (100%)         
 - Installing michelf/php-markdown (1.9.0): Downloading (100%)         
….
….
symfony/console suggests installing psr/log-implementation (For using the console logger)
Writing lock file
Generating autoload files
5 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Set the ownership and permission for the directory

[root@linuxhelp Baun]# chown -R apache. /var/www/html/
[root@linuxhelp Baun]# chmod -R 755 /var/www/html/

Configure the virtualhost file for accessing the baun cms

 [root@linuxhelp Baun]# vim /etc/httpd/conf.d/baun.conf
<virtualhost *:80>
servername www.linuxhelp1.com
documentroot /var/www/html/Baun/public
</virtualhost>

Edit the host file with the below command

[root@linuxhelp Baun]# vim /etc/hosts
<your-ip>    <domain-name>

Once the configuration part is done restart the apache service to update the changes

[root@linuxhelp Baun]# systemctl restart httpd

Go to browser and type your domain name in new tab

This is the Baun CMS home page

With this, the method to install Baun CMS on RHEL7.6 comes to end.

FAQ
Q
If its possible to install Baun CMS on Android?
A
No, its not possible to install Baun CMS on Android.
Q
How to get the latest version of Baun CMS from the official link?
A
To get the latest version of Baun CMS to go to the link as follow "https://github.com/BaunCMS/Baun/releases"
Q
What are the requirement to install Baun CMS?
A
Apache
Composer
PHP and Modules(php-gd php-pdo php-mbstring php-mcrypt php-mysql php-simplexml php-pecl-zip php-imap)
Q
What is the Alternative for Baun CMS?
A
Here I have to give some of the Alternative for Baun CMS
Wordpress,
Drupal,
Bootstrap CMS,
Readz,
OverBlog, etc.
Q
What is Baun CMS?
A
Baun CMS is an open source, lightweight and extensible flat-file CMS for PHP.
It doesn't require database and administration back-end and it helps its users create small websites easily.