By Arslan Ud Din Shafiq, Alibaba Cloud Tech Share Author. Tech Share is Alibaba Cloud's incentive program to encourage the sharing of technical knowledge and best practices within the cloud community.
Sentrifugo is a free and open source human resource management system that is powerful enough to meet all your organizational needs. Sentrifugo helps you to manage and track your employees' availability and helps you to maintain privileges and roles for various employee groups in your organization. It also comes with a CV management feature that allows you to schedule interviews conveniently.
In this tutorial, we will be installing Sentrifugo on an Elastic Compute Service (ECS) with CentOS 7 installed on it.
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
You will be prompted to enter your password. Now type your password and hit Enter and wait for the update.
To unzip any zip folder, you will require unzip tool. To do so, use the following command:
# sudo yum -y install unzip
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
You will be asked "Is this ok?", to proceed with installation, type 'y' and hit Enter.
To install epel-release, execute the command below:
# sudo yum install epel-release
You will be asked "Is this ok?", to proceed with installation, type 'y' and hit Enter.
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 http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# sudo yum -y install yum-utils
# sudo yum-config-manager --enable remi-php56
You will be required to install apache server. To install it, execute the command below.
# sudo yum -y install httpd
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
In replacement of MySQL server, CentOS uses MariaDB server by default. To install MariaDB, use the following command:
# sudo yum -y install mariadb-server
For enterprise applications, Alibaba Cloud Aspara DB for RDS is a good alternative, and its use is recommended. Alibaba Cloud AsparaDB for RDS frees you from managing a database, helping you to focus on your business. It provides protection against SQL injections, network attacks, brute force attacks and many other types of database attacks. It is highly scalable, available and secure.
After successful installation, enable MariaDB server to start automatically when system reboot. To do so, use the following commands:
# sudo systemctl enable mariadb
To start MariaDB server, execute the command below:
# sudo systemctl start mariadb
Now to secure your MariaDB server, execute the command:
# sudo mysql_secure_installation
The root password will be blank by default, just hit Enter to proceed and select 'Y' and choose your password.
To login to your MySQL server, execute the following command and login to shell.
# mysql -u root -p
Execute the following MySQL query to create database, add new user and assign database to the newly created user.
CREATE DATABASE hrm CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'hrm'@'localhost' IDENTIFIED BY '654321Ab';
GRANT ALL PRIVILEGES ON hrm.* TO 'hrm'@'localhost';
FLUSH PRIVILEGES;
EXIT;
To install Sentrifugo, you will require to download compressed folder of Sentrifugo installation. To do so, follow the steps below.
Step 1:
Download Sentrifugo ZIP folder by executing command below.
# wget http://www.sentrifugo.com/home/downloadfile?file_name=Sentrifugo.zip -O Sentrifugo.zip
Step 2:
You can confirm if the folder was downloaded successfully by executing command below.
# ls -li
Step 3:
Extract the files from zipped folder by using the command. In my case, folder name is Sentrifugo.zip.
# sudo unzip Sentrifugo.zip -d /var/www
Step 4:
Navigate to directory /var/www
# cd /var/www
Step 5:
Assign rights of this folder to apache. To do so, execute the following command.
# sudo chown -R apache:apache /var/www/Sentrifugo_3.2
Step 6:
Now create a virtual host for your Sentrifugo. The following command will open a file in nano editor.
# sudo nano /etc/httpd/conf.d/softpedia.xyz.conf
Step 7:
Add the following lines to opened text file and save it. Remember to update server name according to your IP address or domain name.
<VirtualHost *:80>
ServerName softpedia.xyz
DocumentRoot /var/www/Sentrifugo_3.2
<Directory /var/www/Sentrifugo_3.2>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Step 8:
Now restart your apache server to load settings by executing the following command.
# sudo systemctl restart httpd
Step 9:
Now you can access Sentrifugo via your ECS IP address or domain name. I accessed via domain. The following screen loaded after accessing.
Step 10:
Now click Next. You will be redirected to database settings page as shown below. Here you will add your database details.
Step 11:
After confirmation of database information, you will be redirected to application settings page.
Step 12:
After confirmation of application settings, you will be redirected to mail server settings.
After completing SMTP settings, you will see the final check page. Make sure the details are correct and click Confirm.
Congratulations! Sentrifugo is now ready to use on your Elastic Compute Service (ECS) instance.
Translating 100 Billion Words Every Day for E-Commerce with Alibaba Machine Translation
How to Deploy React Apps Using Webhooks and Integrating Slack on Ubuntu
2,599 posts | 762 followers
FollowAlibaba Cloud MVP - March 27, 2020
Hiteshjethva - January 8, 2020
Alibaba Clouder - August 16, 2019
Alibaba Clouder - August 2, 2019
Sajid Qureshi - August 8, 2018
Hiteshjethva - December 12, 2019
2,599 posts | 762 followers
FollowElastic and secure virtual cloud servers to cater all your cloud hosting needs.
Learn MoreAn encrypted and secure cloud storage service which stores, processes and accesses massive amounts of data from anywhere in the world
Learn MoreLearn More
More Posts by Alibaba Clouder