• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Install b2evolution CMS On centos 7.5

  • 01:10 cat /etc/centos-release
  • 01:27 yum install httpd mariadb-server -y
  • 01:47 systemctl enable httpd mariadb
  • 01:57 systemctl start httpd mariadb
  • 02:37 mysql_secure_installation
  • 03:15 mysql -u root -p
  • 03:45 create database b2;
  • 04:14 create user user@localhost identified by 'linuxc';
  • 04:29 grant all on b2.* to user@localhost;
  • 04:44 flush privilerges;
  • 05:13 yum install epel-release yum-utils -y
  • 05:27 wget https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
  • 05:43 rpm -Uvh webtatic.release.rpm
  • 05:54 wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
  • 06:10 rpm -Uvh remi-release 7.rpm
  • 06:29 yum-config-manager --enable remi-php71
  • 06:38 yum install php php-gd php-pdo php-mysql php-mbstring php-mcrypt php-imap php-simplexml php-pecl-zip -y
  • 07:28 wget https://github.com/b2evolution/b2evolution/archive/master.zip
  • 07:45 unzip master.zip
  • 08:03 mv b2evolution_master b2
  • 08:20 chmod -R 775 b2/
  • 08:41 chmod 777 conf
  • 08:58 date.timezone= Asia/Kolkata
  • 09:42 vim /etc/httpd/conf.d/b2.conf
{{postValue.id}}

Installation Of B2evolution 6.10.3 CMS on centos 7.5:

Features:

It provides Forums, Galleries to showcase your photos.

Private Messaging and shows activity graphs for each blogs

You can display several collections on a single page.

Pre-requisites:

LAMP STACK

Apache 2.2+

MariaDB 5.0+

PHP 7+

Installation Procedure:

LAMP STACK

To check the version of Centos 7 :

[root@linuxhelp ~]# cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)

Install Apache and MariaDB Server into our centos 7 system

[root@linuxhelp ~]# yum install httpd mariadb-server -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.nbrc.ac.in
 * extras: mirror.ehost.vn
 * updates: mirror.nbrc.ac.in
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-88.el7.centos will be installed
.
.
.
Installed:
  httpd.x86_64 0:2.4.6-88.el7.centos                                 mariadb-server.x86_64 1:5.5.60-1.el7_5                                

Dependency Installed:
  apr.x86_64 0:1.4.8-3.el7_4.1              apr-util.x86_64 0:1.5.2-6.el7               httpd-tools.x86_64 0:2.4.6-88.el7.centos            
  mailcap.noarch 0:2.1.41-2.el7             mariadb.x86_64 1:5.5.60-1.el7_5             perl-DBD-MySQL.x86_64 0:4.023-6.el7                 

Dependency Updated:
  mariadb-libs.x86_64 1:5.5.60-1.el7_5    

After Successful Installation of Apache And MariaDB Servers, Now do Enable and Start the service of both Apache And MariaDB.

[root@linuxhelp ~]# systemctl enable httpd mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[root@linuxhelp ~]# systemctl start httpd mariadb

Check the status of Apache And MariaDB by executing the following command.

[root@linuxhelp ~]# systemctl status httpd mariadb
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-03-28 13:15:25 IST; 34s ago
● mariadb.service - MariaDB database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-03-28 13:15:28 IST; 30s ago

Secure The Installation Of MariaDB through the below procedure.

 [root@linuxhelp ~]# mysql_secure_installation 

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

Log in to the MariaDB and create a new database for b2evolution CMS by entering the root password that has set during secure Installation.

[root@linuxhelp ~]# mysql -u root -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)

MariaDB [(none)]> create database b2;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> use b2;
Database changed
MariaDB [b2]> create user user@localhost identified by 'linuxc';
Query OK, 0 rows affected (0.00 sec)

MariaDB [b2]> grant all on b2.* to user@localhost;
Query OK, 0 rows affected (0.00 sec)

MariaDB [b2]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [b2]> exit
Bye

Successfully Secured MAriadb through above installation and configured mariadb

PHP Installation Procedure : To install PHP,we need to install 3 third-party yum repositories which are epel-release,webtatic and remi-release. Install the epel-release repository with the following command.

[root@linuxhelp ~]# yum install epel-release yum-utils -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.nbrc.ac.in
 * extras: mirror.ehost.vn
 * updates: mirror.nbrc.ac.in
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
---> Package yum-utils.noarch 0:1.1.31-45.el7 will be updated
.
.
.
.
 
Verifying  : epel-release-7-11.noarch                                                                                                 1/3
Verifying  : yum-utils-1.1.31-50.el7.noarch                                                                                           2/3
Verifying  : yum-utils-1.1.31-45.el7.noarch                                                                                           3/3

Installed:
  epel-release.noarch 0:7-11                                                                                                                

Updated:
  yum-utils.noarch 0:1.1.31-50.el7                                                                                                          

Complete!

Install the Webtatic repository with the following link.

[root@linuxhelp ~]# rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Retrieving https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
warning: /var/tmp/rpm-tmp.k8XZHi: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:webtatic-release-7-3             ################################# [100%]

Download the remi-release repository by using the wget command then install it.

[root@linuxhelp ~]# wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
--2019-03-28 13:30:16--  http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Resolving rpms.remirepo.net (rpms.remirepo.net)... 195.154.241.117, 2001:bc8:33a1:100::1
Connecting to rpms.remirepo.net (rpms.remirepo.net)|195.154.241.117|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16004 (16K) [application/x-rpm]
Saving to: ‘remi-release-7.rpm’

100%[==================================================================================================>] 16,004      --.-K/s   in 0s      

2019-03-28 13:30:17 (169 MB/s) - ‘remi-release-7.rpm’ saved [16004/16004]
[root@linuxhelp ~]# rpm -Uvh remi-release-7.rpm 

warning: remi-release-7.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:remi-release-7.6-2.el7.remi      ################################# [100%]

Enable the remi repository with PHP 7.1 version.

[root@linuxhelp ~]# yum-config-manager --enable remi-php71
Loaded plugins: fastestmirror, langpacks
============================================================= repo: remi-php71 =============================================================
[remi-php71]
async = True
bandwidth = 0
base_persistdir = /var/lib/yum/repos/x86_64/7
baseurl = 
cache = 0
cachedir = /var/cache/yum/x86_64/7/remi-php71
.
.
.
.
timeout = 30.0
ui_id = remi-php71
ui_repoid_vars = releasever,
   basearch
username = 

Install the following php modules

[root@linuxhelp ~]# yum install php php-ldap php-gd php-pdo php-mbstring php-mcrypt php-simplexml php-libxml php-pecl-zip php-apcu php-curl php-memcache php-memcached php-fpm php-imap php-mysql –y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                                                                        | 7.1 kB  00:00:00     
 * base: mirror.nbrc.ac.in
 * epel: sg.fedora.ipserverone.com
 * extras: centos-hcm.viettelidc.com.vn
 * remi-php71: remirepo.reloumirrors.net
 * remi-safe: remirepo.reloumirrors.net
 * updates: mirror.ehost.vn
 * webtatic: uk.repo.webtatic.com
epel                                                                                                                                                                                    | 4.7 kB  00:00:00     
remi-php71                                                                                                                                                                                  | 3.0 kB  00:00:00     
remi-safe                                                                                                                                                                                   | 3.0 kB  00:00:00     
webtatic                                                                                                                                                                                    | 3.6 kB  00:00:00     
(1/7): epel/x86_64/group_gz                                                                                                                                                                 |  88 kB  00:00:00     
(2/7): epel/x86_64/updateinfo                                                                                                                                                               | 1.0 MB  00:00:03     
(3/7): webtatic/x86_64/group_gz                                                                                                                                                             |  448 B  00:00:01     
(4/7): webtatic/x86_64/primary_db                                                                                                                                                           | 131 kB  00:00:02     
(5/7): remi-php71/primary_db      
.
.
.
.
.
Installed:
  php.x86_64 0:7.1.27-1.el7.remi                         php-common.x86_64 0:7.1.27-1.el7.remi             php-fpm.x86_64 0:7.1.27-1.el7.remi                 php-gd.x86_64 0:7.1.27-1.el7.remi                    
  php-imap.x86_64 0:7.1.27-1.el7.remi                    php-ldap.x86_64 0:7.1.27-1.el7.remi               php-mbstring.x86_64 0:7.1.27-1.el7.remi            php-mcrypt.x86_64 0:7.1.27-1.el7.remi                
  php-mysqlnd.x86_64 0:7.1.27-1.el7.remi                 php-pdo.x86_64 0:7.1.27-1.el7.remi                php-pecl-apcu.x86_64 0:5.1.17-1.el7.remi.7.1       php-pecl-memcache.x86_64 0:4.0.3-1.el7.remi.7.1      
  php-pecl-memcached.x86_64 0:3.1.3-1.el7.remi.7.1       php-pecl-zip.x86_64 0:1.15.4-1.el7.remi.7.1       php-xml.x86_64 0:7.1.27-1.el7.remi                

Dependency Installed:
  fastlz.x86_64 0:0.1.0-0.1.20070619svnrev12.el7  gd-last.x86_64 0:2.2.5-8.el7.remi  libc-client.x86_64 0:2007f-16.el7   libmcrypt.x86_64 0:2.5.8-13.el7      libmemcached-opt-libs.x86_64 0:1.0.18-2.el7.remi 
  libwebp7.x86_64 0:1.0.2-1.el7.remi              libzip5.x86_64 0:1.5.2-1.el7.remi  php-cli.x86_64 0:7.1.27-1.el7.remi  php-json.x86_64 0:7.1.27-1.el7.remi  php-pecl-igbinary.x86_64 0:3.0.1-1.el7.remi.7.1  
  php-pecl-msgpack.x86_64 0:2.0.3-1.el7.remi.7.1
Complete!

Check the modules of php by executing the following command

[root@linuxhelp ~]# php -m

[PHP Modules]
apcu
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
.
.
.
.
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]

Create a directory for b2evolution CMS

[root@linuxhelp www]# mkdir b2

Download the b2evolution CMS using wget command

[root@linuxhelp b2]# wget https://github.com/b2evolution/b2evolution/archive/master.zip
 --2019-04-04 12:35:29--  https://github.com/b2evolution/b2evolution/archive/master.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/b2evolution/b2evolution/zip/master [following]
--2019-04-04 12:35:30--  https://codeload.github.com/b2evolution/b2evolution/zip/master
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: ‘master.zip’

    [                                              <=>                                                   ] 19,684,706   681KB/s   in 33s    

2019-04-04 12:36:05 (574 KB/s) - ‘master.zip’ saved [19684706]

Unzip the file to extract the files of b2evolution CMS:

[root@linuxhelp b2]# unzip master.zip

Give writable permissions to access the B2evolution CMS that are essential.

[root@linuxhelp b2]# mv b2evolution-master/ b2
[root@linuxhelp www]# chmod -R 775 b2/

Change the directory to b2

[root@linuxhelp www]# cd b2

Give full permissions to conf directory

[root@linuxhelp b2]# chmod 777 conf

Set time-zone in the php configuration file as Asia/Kolkata

[root@linuxhelp ~]# vim /etc/php.ini
 data_timezone= Asia/Kolkata  

Add ip and domain into the hosts file

[root@linuxhelp ~]# vim /etc/hosts
192.168.7.229 www.linuxhelp1.com 

Create A customized Virtualhosting for b2CMS

[root@linuxhelp conf]# vim /etc/httpd/conf.d/b2.conf
<VirtualHost *:80>
servername www.linuxhelp1.com
Documentroot  /var/www/b2/
<Directory /var/www/b2/>
allowoverride all
allow from all
</Directory>
</Virtualhost>

Test the configuration of httpd

[root@linuxhelp conf]# httpd –t
Syntax OK

Restart the service of httpd:

[root@linuxhelp conf]# systemctl restart httpd

Now open the browser and enter the servername that has set in the customized configuration file and click installer to set up the database details.

snap1 snap2 Update the Config file by Providing the required database details and email id. snap3 snap4

Click Install by Choosing a choice in a way that you would like to install b2evolution CMS ,and add necessary plugins . snap5 snap6

Go through front-end office to view your website after the successful installation. snap7 snap8 snap9

Log in to Admins account through back-end office

snap10 snap11 snap12

With this, the method to install b2evolution CMS on centos 7 comes to an end.

Tags:
michael
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is self-hosted solution in b2evolution CMS?

A

Self-hosted solution means that at-any time you are in full control over your domain and websites data and privacy.

Q

Is it mandatory to add-plugins to get a full-featured in b2evolution CMS ?

A

No extra plugins are required to build a full-featured website. one single click is enough to upgrade everything at once.

Q

What is forums in b2evolution CMS?

A

It allows users to register on your website and make them to discuss topics that matter to them.

Q

Can Forums be visible to everyone in b2evolution CMS?

A

Forums can be public or private which is only accessible with an invitation.

Q

Is Cross-post possible in b2evolution CMS?

A

Yes, you can cross-post (share content) between multiple blogs.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Gibbson ?
How do i run both nginx and apache in same instance on centos

Hi...,

my server is based centos operating system and my webserver is already running on Apache.... i need to run both apache and nginx on same instance ... please help me to implement this concept...

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.