AMP AMP

How to Install Baun CMS 1.3.2 Version Using LEMP on CentOS 7.6

Installation Of Baun CMS 1.3.2 Version :

PHP Modules:

php php-gd php-pdo php-mbstring php-zip php-fpm

Pre-Requisites

Nginx 1.17.0

PHP 5.4+

Utilies: git composer

Composer Command :curl -sS https://getcomposer.org/installer | php

mv composer.phar /usr/local/bin/composer

Download link :

https://github.com/BaunCMS/Baun.git

Download the baun CMS using git clone

[root@linuxhelp ~]# 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.95 KiB | 0 bytes/s, done.
Resolving deltas: 100% (184/184), done.

View the Downloaded file of baun CMS by listing the contents

[root@linuxhelp ~]# ll
total 166472
-rw-------. 1 root root      2097 Dec  9  2017 anaconda-ks.cfg
drwxr-xr-x  7 root root       201 Jun 18 01:23 Baun
drwxr-xr-x. 2 root root         6 Dec 12  2017 Desktop
drwxr-xr-x. 2 root root         6 Dec 12  2017 Documents
drwxr-xr-x. 2 root root         6 Dec 12  2017 Downloads
-rw-r--r--. 1 root root      2128 Dec 12  2017 initial-setup-ks.cfg
-rw-r--r--  1 root root 170440632 Apr  3 00:51 jdk-12.0.1_linux-x64_bin.rpm
drwxr-xr-x. 2 root root         6 Dec 12  2017 Music
drwxr-xr-x. 2 root root         6 Dec 12  2017 Pictures
drwxr-xr-x. 2 root root         6 Dec 12  2017 Public
-rw-r--r--  1 root root     16004 Mar  8 13:10 remi-release-7.rpm
drwxr-xr-x. 2 root root         6 Dec 12  2017 Templates
drwxr-xr-x. 2 root root         6 Dec 12  2017 Videos

Move the Baun Directory to the nginx Document root directory

[root@linuxhelp ~]# mv Baun/ /usr/share/nginx/html/

Change the directory to the nginx Document Directory

[root@linuxhelp ~]# cd /usr/share/nginx/html/

List the contents to view the moved directory.

[root@linuxhelp html]# ll
total 12
-rw-r--r-- 1 root root 494 May 21 20:27 50x.html
drwxr-xr-x 7 root root 201 Jun 18 01:23 Baun
-rw-r--r-- 1 root root 612 May 21 20:27 index.html
-rw-r--r-- 1 root root  20 Jun 14 23:47 info.php

Change the directory to BAun

[root@linuxhelp html]# cd Baun/

Assign the ownership permissions to the baun directory.

[root@linuxhelp Baun]# chown -R nginx. ./

Assign the writable permissions to the baun directory.

[root@linuxhelp Baun]# chmod -R 775 ./

List the extracted files of baun directory.

[root@linuxhelp Baun]# ll
total 24
-rwxrwxr-x 1 nginx nginx 1514 Jun 18 01:23 auto-install.php
-rwxrwxr-x 1 nginx nginx  487 Jun 18 01:23 baun
drwxrwxr-x 2 nginx nginx   24 Jun 18 01:23 cache
-rwxrwxr-x 1 nginx nginx  815 Jun 18 01:23 CHANGELOG.md
-rwxrwxr-x 1 nginx nginx  278 Jun 18 01:23 composer.json
drwxrwxr-x 2 nginx nginx   77 Jun 18 01:23 config
drwxrwxr-x 4 nginx nginx   53 Jun 18 01:23 content
-rwxrwxr-x 1 nginx nginx 1075 Jun 18 01:23 LICENSE
drwxrwxr-x 4 nginx nginx   92 Jun 18 01:23 public
-rwxrwxr-x 1 nginx nginx 1685 Jun 18 01:23 README.md

Change the directory to the nginx which is under /var/cache

[root@linuxhelp Baun]# cd /var/cache/nginx/

Assign the Writabel permissions to the nginx directory for the installation of baun cms

[root@linuxhelp nginx]# chmod -R 777 ./

Create a virtual host named baun.conf under the Nginx configuration file

[root@linuxhelp nginx]# vim /etc/nginx/conf.d/baun.conf
server {
listen 80;
server_name www.linuxhelp1.com;
root /usr/share/nginx/html/Baun/public/;
index index.php index.html;
location ~* \.php$ {
      fastcgi_pass 127.0.0.1:9000;
      include         fastcgi_params;
      fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
      fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;
    }
}

Test the configuration of nginx

[root@linuxhelp nginx]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Restart the service of php-fpm

[root@linuxhelp nginx]# systemctl restart php-fpm

Restart the service of Nginx

[root@linuxhelp nginx]# systemctl restart nginx

Open the Browser and enter the server name that has configured in the virtual host of baun cms as follows: Click on Finished Installing,Let’s go to view the website of Baun CMS With this,Installation of Baun CMS 1.3.2 version using LEMP On CentOS 7.6 comes to end.

Tag : baun Nginx CentOS
FAQ
Q
Can markdown do everything html can in baun cms?
A
markdown cant do everything that html does in baun cms
Q
What does MArkdown mean in baun cms?
A
markdown is a lightweight markup language with plain text formatting syntax in baun cms
Q
Can we edit text files in baun cms?
A
yes, you can edit text files in baun cms
Q
What Does twig templates in baun cms used for?
A
twig templates in baun cms are used for powerful and flexible themes.
Q
Does BAun cms require databse?
A
No database is required for baun cms