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.
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:
Change the following line:
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:
Configure it like this:
Next we will need to log in to the MariaDB console and create a database for the Cerb. Run the following command:
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:
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:
Next, you’ll have to change proper ownership and provide file permissions, you can do so using following command:
Step 5. Configure Firewall for Cerb.
You may also need to allow HTTP traffic on port
80 through the system firewall:
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.