How to install Baun cms on centos 7.5

Installation of baun cms 1.3.2 on centos 7.5

Installtion procedure

You need to configure the LAMP setup For the Installation of baun CMs If you dont have the Lamp setup Refer Here

Required php modules

yum install php-mysql php-curl php-json php-cgi php-mcrypt php-xmlrpc php-gd php-mbstring php php-curl php-zip

Check the centos version by using the following command

[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-5.1804.el7.centos.x86_64

Download the baun cms package using wget command

[root@linuxhelp ~]# wget https://github.com/BaunCMS/Baun/archive/1.3.2.zip
--2019-04-09 17:27:03--  https://github.com/BaunCMS/Baun/archive/1.3.2.zip
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/BaunCMS/Baun/zip/1.3.2 [following]
--2019-04-09 17:27:04--  https://codeload.github.com/BaunCMS/Baun/zip/1.3.2
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120, 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘1.3.2.zip’
    [  <=>                                                      ] 27,014      92.7KB/s   in 0.3s   
2019-04-09 17:27:06 (92.7 KB/s) - ‘1.3.2.zip’ saved [27014]

Once the Download is completed extract the download package by using the following 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/LICENSE      
  inflating: Baun-1.3.2/README.md  
.
.
.
.
   creating: Baun-1.3.2/public/themes/baun/bower_components/skeleton/images/
 extracting: Baun-1.3.2/public/themes/baun/bower_components/skeleton/images/favicon.png  
  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  

Move the baun cms directory to apache root directory

[root@linuxhelp ~]# mv Baun-1.3.2 /var/www/baun

change ownership and file excution permission for the baun cms by using the following command.

[root@linuxhelp ~]# chown -R apache:apache /var/www/baun
[root@linuxhelp ~]# chmod -R 775 /var/www/baun

Configure a virtual host for baun cms by using this command

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

Enter into the baun directory

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

Now install Composer by using the following command.

[root@linuxhelp baun]# yum install composer
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * epel: mirror.horizon.vn
 * extras: mirror.horizon.vn
 * remi-php70: ftp.arnes.si
 * remi-safe: ftp.arnes.si
 * updates: mirror.nbrc.ac.in
Resolving Dependencies
--> Running transaction check
---> Package composer.noarch 0:1.8.4-1.el7 will be installed
.
.
.
.
  php-symfony-http-kernel.noarch 0:2.8.12-2.el7                                                     
  php-symfony-polyfill.noarch 0:1.5.0-1.el7                                                         
  php-symfony-process.noarch 0:2.8.12-2.el7                                                         
  php-symfony-var-dumper.noarch 0:2.8.12-2.el7                                                      
  php-symfony-yaml.noarch 0:2.8.12-2.el7                                                            
Complete!

Then run the composer install command.

[root@linuxhelp baun]# composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
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.8.0): Downloading (100%)         
  - Installing symfony/polyfill-ctype (v1.11.0): Downloading (100%)         
  - Installing symfony/yaml (v2.8.49): Downloading (100%)         
  - Installing twig/twig (v1.38.4): Downloading (100%)         
  - Installing phroute/phroute (v2.1.0): Downloading (100%)         
  - Installing symfony/polyfill-mbstring (v1.11.0): Downloading (100%)         
  - Installing psr/log (1.1.0): Downloading (100%)         
  - Installing symfony/debug (v3.0.9): Downloading (100%)         
  - Installing symfony/console (v2.8.49): Downloading (100%)         
  - Installing ircmaxell/password-compat (v1.0.4): Downloading (100%)         
  - Installing symfony/polyfill-php55 (v1.11.0): Downloading (100%)         
  - Installing symfony/polyfill-php54 (v1.11.0): Downloading (100%)         
  - Installing symfony/http-foundation (v2.8.49): Downloading (100%)         
  - Installing bauncms/framework (1.4.5): Downloading (100%)         
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/process
symfony/console suggests installing psr/log-implementation (For using the console logger)
Writing lock file
Generating autoload files

Once the above step is completed restart the apache service

[root@linuxhelp baun]# systemctl restart httpd

Switch over to the browser and enter the ip or domain name

This is the baun cms dashboard

With this, the method to install Baun CMS 1.3.2 on centos 7.5 comes to an end.

FAQ
Q
How to get the latest version of Baun CMS from the official link?
A
To get the latest version of Baun CMS go to the link as follow "https://github.com/BaunCMS/Baun/releases"
Q
What are all the PHP modules required For Installation of Baun CMS?
A
The PHP modules required are installed by using the command

# yum install php-mysql php-curl php-json php-cgi php-mcrypt php-xmlrpc php-gd php-mbstring php php-curl php-zip
Q
Is Baun CMS Opensource?
A
Yes, Baun CMS is free and Opensource.
Q
What is Baun CMS?
A
Baun CMS is an open source, lightweight and extensible flat-file CMS for PHP. It doesn' t require a database and administration back-end and is a perfect solution for small websites. The main advantages of a flat-file CMS systems are simplicity, portability, security, speed and version control.
Q
What are the Alternative for Baun CMS?
A
The Alternative for Baun CMS are

Wordpress,

Drupal,

Bootstrap CMS,

Readz,

OverBlog, etc.