How VPS - How to use/setup VPS
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System CentOS

How to Install Cerb on CentOS 7

How VPS by How VPS
October 1, 2019
in CentOS
0
0
SHARES
35
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Prerequisites
  2. Step 1: System update
  3. Step 2: Install Apache web server
  4. Step 3: Install PHP 7
  5. Step 4: Install MariaDB
  6. Step 5: Create a database for Cerb
  7. Step 6: Install Cerb
  8. Step 7: Finish installation
  9. Want to contribute?


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. In this tutorial, you will learn how to install Cerb on CentOS 7.

Prerequisites

  • A Vultr CentOS 7 server instance.
  • A sudo user.

Step 1: System update

Before installing any packages on a CentOS server instance, it is recommended to update the system. Login using the sudo user and run the following commands to update the system.

sudo yum -y install epel-release
sudo yum -y update
sudo shutdown -r now

Once the system has finished rebooting, log in again as the sudo user and proceed to the next step.

Step 2: Install Apache web server

Run the following command to install the Apache web server.

sudo yum -y install httpd

Once Apache is installed, run the following command to start Apache and enable it to automatically start at boot time.

sudo systemctl start httpd.service
sudo systemctl enable httpd.service

Step 3: Install PHP 7

Cerb is compatible with any version of PHP greater than 5.5. You can use the latest version of PHP 7 in order to get maximum performance. Add and enable the Remi repository on your system.

sudo rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum -y install yum-utils
sudo yum-config-manager --enable remi-php71

Install the latest version of PHP with Cerb’s required modules.

sudo yum -y install php php-curl php-dom php-gd php-imap php-json php-mbstring php-mysqli php-openssl php-pcre php-session php-simplexml php-xml php-spl php-mailparse

Edit /etc/php.ini using your favorite editor.

sudo nano /etc/php.ini

Update the following lines.

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

Save the file and exit from the text editor. Then, restart Apache.

sudo systemctl restart httpd.service

Step 4: Install MariaDB

Install MariaDB using the following command. MariaDB is a fork of MySQL.

sudo yum -y install mariadb mariadb-server

Once MariaDB has been installed, run the following command to start MariaDB and enable it to automatically start on boot.

sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service

Now secure your MariaDB installation using the following command.

sudo mysql_secure_installation

You will be asked for the current root password. As we have just installed MariaDB, the root password is not set. Press the “Enter” key to proceed. Set a strong root password for your MySQL server and answer Y for all of the other questions asked. All the questions asked are self explanatory.

Step 5: Create a database for Cerb

Login to the MySQL shell as the root user using the following command.

mysql -u root -p

Provide the password for root user you just set earlier.

Now run the following queries to create the database and database user for the Cerb installation.

CREATE DATABASE cerb_data;
CREATE USER 'cerb_user'@'localhost' IDENTIFIED BY 'StrongPassword';
GRANT ALL PRIVILEGES ON cerb_data.* TO 'cerb_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Make sure that you use a semicolon at the end of each query above. You can replace the database name cerb_data and database username cerb_user according to your needs. Be sure to change StrongPassword with a very strong password.

Step 6: Install Cerb

Install git if you do not have it already installed.

sudo yum -y install git

Now, switch to the webroot directory of Apache and clone the latest version of Cerb using the following command.

cd /var/www/html
sudo git clone git://github.com/wgm/cerb.git cerb

Provide appropriate ownership and file permissions using the following commands.

cd /var/www/html/cerb
sudo chown -R apache:apache .
sudo chmod -R u+w framework.config.php storage

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

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

Now complete the installation using a web browser.

Step 7: Finish installation

Go to the following link using your favorite web browser.

http://192.0.2.1/cerb

Replace 192.0.2.1 with the IP address of your server. If you have followed the tutorial correctly, you should have all of the requirements satisfied. On the “Database Setup” interface, choose the driver MySQLi and engine InnoDB. Also provide the database name and credentials that you have created earlier. Once the database connection is checked, it will ask to provide details of your SMTP server to send outgoing emails. Finally, create the administrator user.

Cerb is now installed on your server.

Run the following command to delete the install directory before using it.

sudo rm -rf /var/www/html/cerb/install

You can now use Cerb through your web browser.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
How VPS

How VPS

Related Posts

Failed to download metadata for repo 'appstream' on Centos 8
CentOS

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Install BoltWire CMS on CentOS 7
CentOS

How to Install BoltWire CMS on CentOS 7

February 14, 2020
Showterm.io – A Terminal/Shell Recording, Upload and Share Tool for Linux
CentOS

Setup HTTP Authentication With Nginx on CentOS 7

February 14, 2020
Next Post

How To Install Vagrant On CentOS 6

How to Install DreamFactory Open Source on CentOS 7

Installing Revive Adserver on CentOS 7

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow Us

  • 121 Followers
  • 87.2k Followers

Recommended

How to Fix “failed to mount /etc/fstab” Error in Linux

4 years ago

How to Deploy Ghost v0.11 LTS on CentOS 7.3

3 years ago

Translate rwx Permissions into Octal Format in Linux

4 years ago
Tips to Create ISO from CD, Watch User Activity and Check Memory Usages of Browser

Installing AlternC on Debian Squeeze, Wheezy, Jessie

3 years ago

Instagram

    Please install/update and activate JNews Instagram plugin.

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

Topics

Apache Web Server Bluehost Review 2019 Bluehost Review 2020 Bluehost Review 2021 Centmin Mod CentminMod centos install htop fsck htop install HTTP DoS attack Install Snort on an Ubuntu install Zabbix on CentOS install Zabbix on CentOS 7 Linux Commands linux guide linux install htop linux vps setup guide MariaDB MariaDB Error Mysql mysqld error optimize MariaDB optimize Mysql snort Ubuntu
No Result
View All Result

Highlights

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Webmin Reviews

Virtualmin Reviews

CentOS Web Panel Reviews

Ajenti Reviews

ISPConfig Reviews

Trending

Failed to download metadata for repo 'appstream' on Centos 8
CentOS

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

by How VPS
February 25, 2022
0

I tried to update some extensions by use yum on centOs which I specified in Dockerfile. After...

How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020
Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

February 17, 2020
Webmin Reviews

Webmin Reviews

February 17, 2020
How VPS – How to use/setup VPS

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Visit our landing page to see all features & demos.
LEARN MORE »

Recent News

  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8 February 25, 2022
  • How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”? November 17, 2020
  • How to optimize Mysql or MariaDB November 3, 2020

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

[mc4wp_form]

© 2018 JNews - City News Magazine WordPress theme. All rights belong to their respective owners.
JNews is a top selling 2018 WordPress News, Blog, Newspaper & Magazine Theme.

No Result
View All Result
  • Home

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.