How To Install Cerb on CentOS 7

In this tutorial we will show you how to install and configure of Cerb on your CentOS 7 server. For those of you who didn’t know, Cerb is an open-source application for web-based collaboration and automation. Cerb can also be used for sending a high volume of emails. Cerb is written in PHP and uses MySQL/MariaDB to store its data

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Cerb on a CentOS 7 server.

Install Cerb on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

1

2

3

yumcleanall

yum-yinstallepel-release

yum-yupdate

Step 2. Install LAMP server.

A CentOS 7 LAMP stack server is required. If you do not have a LAMP installed, you can follow our guide here. Also install required PHP modules:

Once the installation is finished, you will need to modify the php.ini configuration file:

1

nano/etc/php.ini

Change the following line:

1

2

3

4

memory_limit=128M# 128M or Higher according to the memory available

upload_max_filesize=2M# 32M or Higher

post_max_size=8M# 32M or Higher

;upload_tmp_dir=# Uncomment and change it to upload_tmp_dir = /tmp

Step 3. Configuring MariaDB for Cerb.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

1

mysql_secure_installation

Configure it like this:

1

2

3

4

5

-Setrootpassword?[Y/n]y

-Removeanonymoususers?[Y/n]y

-Disallowrootloginremotely?[Y/n]y

-Removetestdatabaseandaccesstoit?[Y/n]y

-Reloadprivilegetablesnow?[Y/n]y

Next we will need to log in to the MariaDB console and create a database for the Cerb. Run the following command:

1

mysql-uroot-p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Cerb installation:

1

2

3

4

5

CREATEDATABASEcerb_data;

CREATEUSER'cerb_user'@'localhost'IDENTIFIEDBY'StrongPassword';

GRANTALLPRIVILEGESONcerb_data.*TO'cerb_user'@'localhost';

FLUSHPRIVILEGES;

EXIT;

Step 4. Installing Cerb.

Once Database is configured, you will need to install Cerb. You can download the latest version of Cerb from GitHub repository with the following command:

1

2

3

yum-yinstallgit

cd/var/www/html

gitclonegit://github.com/wgm/cerb.git cerb

Next, you’ll have to change proper ownership and provide file permissions, you can do so using following command:

1

2

3

cd/var/www/html/cerb

chown-Rapache:apache.

chmod-Ru+wframework.config.phpstorage

Step 5. Configure Firewall for Cerb.

You may also need to allow HTTP traffic on port 80 through the system firewall:

1

2

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

firewall-cmd--reload

Step 6. Accessing Cerb.

Cerb will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/cerb or http://server-ip/cerb and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed Cerb. Thanks for using this tutorial for installing Cerb on CentOS 7 system. For additional help or useful information, we recommend you to check the official Cerb web site.

VPS Manage Service Offer

If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!