How to Install Baun CMS on RHEL7.6
- 00:28 cat /etc/os-release
- 00:37 curl -sS https://getcomposer.org/installer | php
- 00:52 mv composer.phar /usr/local/bin/composer
- 01:10 chmod +x /usr/local/bin/composer
- 01:24 cd /var/www/html/
- 01:31 git clone https://github.com/BaunCMS/Baun.git
- 01:40 cd Baun/
- 01:46 composer install
- 02:08 chown -R apache. /var/www/html/
- 02:17 chmod -R 755 /var/www/html/
- 02:29 vim /etc/httpd/conf.d/baun.conf
- 02:55 vim /etc/hosts
- 05:15 systemctl restart httpd
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.
Comments ( 0 )
No comments available