How to Install and Configure Sentrifugo on CentOS


  1. You must have Alibaba Cloud Elastic Compute Service (ECS) activated and verified your valid payment method. If you are a new user, you can get a free account in your Alibaba Cloud account. If you don’t know about how to setup your ECS instance, you can refer to this tutorial or quick-start guide. Your ECS instance must have at least 1GB RAM and 1 Core processor.
  2. A domain name registered from Alibaba Cloud. If you have already registered a domain from Alibaba Cloud or any other host, you can update its domain nameserver records.
  3. Domain name must be pointed to your Alibaba Cloud ECS’s IP address
  4. Access to VNC console in your Alibaba Cloud or SSH client installed in your PC
  5. Set up your server’s hostname and create user with root privileges.

Update your CentOS 7 System

Before proceeding with installation of any kind of package, use the following command to update your CentOS system. To execute this command, remember to login from non-root user with sudo privileges.

# sudo yum -y update

Install Unzip

To unzip any zip folder, you will require unzip tool. To do so, use the following command:

# sudo yum -y install unzip

Install Nano Editor

You can edit any file easily using Nano editor due to its ease of use. To install Nano editor, execute the command below:

# sudo yum install nano

Install epel-release:

To install epel-release, execute the command below:

# sudo yum install epel-release

Enable remi repo and Install yum-utils

PHP 5.6 is required by Sentrifugo. It is not available in yum repository, so you will have to enable remi repository for PHP 5.6. To do so, execute the following commands.

# sudo rpm -Uvh 
# sudo yum -y install yum-utils
# sudo yum-config-manager --enable remi-php56

Install Apache

You will be required to install apache server. To install it, execute the command below.

# sudo yum -y install httpd

Install PHP 5.6

To install PHP 5.6 on CentOS, along with modules required by Sentrifugo. Execute the following command:

# sudo yum -y install php php-gd php-mysqli php-mbstring php-curl php-cli php-pear php-devel php-openssl

Install MariaDB (MySQL) Server

In replacement of MySQL server, CentOS uses MariaDB server by default. To install MariaDB, use the following command:

# sudo yum -y install mariadb-server
# sudo systemctl enable mariadb
# sudo systemctl start mariadb
# sudo mysql_secure_installation

Configure Database

To login to your MySQL server, execute the following command and login to shell.

# mysql -u root -p
CREATE USER 'hrm'@'localhost' IDENTIFIED BY '654321Ab';
GRANT ALL PRIVILEGES ON hrm.* TO 'hrm'@'localhost';

Sentrifugo Human Resource Management

To install Sentrifugo, you will require to download compressed folder of Sentrifugo installation. To do so, follow the steps below.

# wget -O
# ls -li
# sudo unzip -d /var/www
# cd /var/www
# sudo chown -R apache:apache /var/www/Sentrifugo_3.2
# sudo nano /etc/httpd/conf.d/
<VirtualHost *:80>
DocumentRoot /var/www/Sentrifugo_3.2
<Directory /var/www/Sentrifugo_3.2>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# sudo systemctl restart httpd



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website: