How to install Cerb based on Apache on CentOS 7

1. Software introduction

Cerb is a workflow and email automation system written in PHP that uses MySQL or MariaDB as the database, which is very suitable for large teams.

His main characteristics include:

1. Large-capacity mail management.

2. Shared mailbox.

3. Dashboard for real-time monitoring and target tracking.

4. Real-time notification.

5. Task manager.

6. Adapt to mobile devices.

7. REST-based API.

Cerb was developed on the basis of 15 years of community feedback. Although the source code is available on Github, the software is distributed under a commercial open source license called Devblocks Public license (DPL). It is worth noting that , The issuance of permits is based on the maximum number of employees logged in at the same time.

Two, server configuration

In the next steps, we will learn how to install and configure the tools needed by Cerb: Apache, MariaDB and PHP

First, install EPEL:

# yum -y install epel-release

Install Apache

Now we will install the web server Apache with yum

# yum install -y httpd

Start Apache and use the systemd setting to start booting

# systemctl start httpd

# systemctl enable httpd

Inspection status:

# systemctl status httpd




httpd.service - The Apache HTTP Server

 Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)

 Active: active (running)

Three, install PHP

As mentioned in the introduction, Cerb is written in PHP. More specifically, we need PHP5.5 or higher with the following extensions:

· curl

· Dom

· gd

· imap

· pcre

· session

· simplexml

· spl

· xml

· json

· Mailparse

· mbstring

· mysqli

· openssl

In this tutorial, we will use PHP7. In order to install this version, we need to use the following code to add the Remi repository:

# rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm

Open warehouse

# yum-config-manager --enable remi-php71

Now we can install the above mentioned PHP and its extension tools.

# yum install -y php php-curl php-mysqli php-openssl php-dom 


php-gd php-json php-pcre php-imap php-mbstring php-session 
php-simplexml php-xml php-spl php-mailparse

We will need to modify the php.ini file for Cerb. The parameters file_uploads, memory_limit, upload_max_filesize and post_max_size are as follows:

file_uploads = On

upload_max_filesize = 64M

memory_limit = 256M

post_max_size = 64M

upload_tmp_dir = /tmp

Save the settings, exit and restart the service:

# systemctl restart httpd

Fourth, install MariaDB

Now we will install MariaDB using yum:

# yum install -y mariadb mariadb-server

Open MariaDB and set up the root account:

# systemctl start mariadb

# mysql_secure_installation

During this process, you will be asked the following questions:

New password: 

Re-enter new password: 

Password updated successfully!

Reloading privilege tables..

 ... Success!




Remove anonymous users? [Y/n] 

 ... Success!




Disallow root login remotely? [Y/n] 

 ... Success!







Remove test database and access to it? [Y/n] 

 - Dropping test database...

 ... Success!

 - Removing privileges on test database...

 ... Success!




Reload privilege tables now? [Y/n] 

 ... 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!

Five, create a new database

Next, we will create a database for Cerb. First, log in to MariaDB from the command line:

# mysql -u root -p

Create a new user and new database:

MariaDB [(none)]> CREATE DATABASE cerbdb;

MariaDB [(none)]> CREATE USER 'cerbusr'@'localhost' IDENTIFIED BY 'usr_strong_password';

MariaDB [(none)]> GRANT ALL PRIVILEGES ON cerbdb.* TO 'cerb'@'localhost' IDENTIFIED BY 'usr_strong_password';

MariaDB [(none)]> FLUSH PRIVILEGES;

MariaDB [(none)]> EXIT;

Six, install Cerb

Next to download and install Cerb, you need to switch to the root directory of the Web:

# cd /var/www/html

Use the git command to clone the Cerb repository code:

# git clone git://github.com/wgm/cerb.git cerb

Make sure that the Cerb file is switched to the web server group and user, and the Apache file is www-data

# cd cerb

# chown -R www-data:www-data 

# chmod -R u+w framework.config.php storage

framework.config.php is the configuration file, the storage directory mainly stores third-party plug-ins, attachments, and temporary files

And cache.

Now open port 80 of the system firewall HTTP:

# firewall-cmd --zone=public --permanent --add-service=http

# firewall-cmd --reload

In the last step, the browser visits http://localhost/cerb to complete the installation of Cerb. Once the installation is complete, Cerb is ready to use.

Seven, summary

In this tutorial, we learned how easy it is to install and configure Cerb with MariaDB on a server based on CentOS7 and Apache. As long as you follow the guide step by step, you can use Cerb. In today's fast-paced and dynamic working environment, Workflow and email automation systems like Cerb can work together to make you feel comfortable.