How to Install Sentrifugo HRM on CentOS 7

Estimated reading: 4 minutes 122 views

Sentrifugo HRM is a free and open source Human Resource Management application. It is a feature-rich and easily configurable application. It is written in PHP and uses MySQL/MariaDB to store its database. You can use Sentrifugo to track the employee’s performance, vacation dates, roles, privileges and much more. It comes with a performance appraisal module which helps the HR managers track the performance of the employee over time. It contains numerous features which are required for day to day employee management, such as employee self-service, powerful analytics, easy background checks, leave management, expenses, and asset management.

Prerequisites

  • A CentOS 7 server instance with at least 2GB RAM.
  • A sudo user.

Update your base system, once your system has been updated, proceed to install the dependencies.

Install Apache

Install Apache.

sudo yum -y install httpd

Start Apache and enable it to automatically run at boot time.

sudo systemctl start httpd
sudo systemctl enable httpd

Install PHP 5.6

Add and enable the Remi repository as PHP version 5.6 is not available by default in the yum repository.

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

Install PHP version 5.6 along with the modules required by Sentrifugo HRM.

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

Edit the loaded PHP configuration file.

sudo nano /etc/php.ini

Find the following line. Uncomment and set appropriate timezone.

date.timezone = Asia/Kolkata

Install MariaDB

MariaDB is a fork of MySQL. Add the MariaDB repository into your system. The default yum repository contains an older version of MariaDB.

echo "[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1" | sudo tee /etc/yum.repos.d/mariadb.repo

Install MariaDB.

sudo yum -y install mariadb mariadb-server

Start MariaDB and enable it to automatically start at boot time.

sudo systemctl start mariadb
sudo systemctl enable mariadb

Before configuring the database, you will need to secure MariaDB first.

sudo mysql_secure_installation

You will be asked for the current MariaDB root password. By default, there is no root password in a fresh MariaDB installation. Press the “Enter” key to proceed. Set a strong password for the root user of your MariaDB server and answer “Y” to all of the other questions that are asked. The questions asked are self-explanatory.

Log into the MySQL shell as root.

mysql -u root -p

Provide the password for the MariaDB root user to log in.

Run the following queries to create a database and a database user for the Sentrifugo installation.

create database sentrifugodb character set UTF8 collate utf8_general_ci;
create user 'sentrifugouser'@'localhost' identified BY 'Linuxyogi@123';
grant all privileges on sentrifugodb.* to sentrifugouser@localhost;
flush privileges;
EXIT;

You can replace the database name hrm_data and username hrm_user according to your choice. Please make sure to change StrongPassword to a very strong password.

Install Sentrifugo HRM

Download the Sentrifugo HRM zip archive.

wget http://www.sentrifugo.com/home/downloadfile?file_name=Sentrifugo.zip -O Sentrifugo.zip

Install unzip.

sudo yum -y install unzip

Extract the archive.

sudo unzip Sentrifugo.zip -d /var/www

Change the name of the directory and provide the appropriate ownership.

cd /var/www
sudo mv Sentrifugo_*/ sentrifugo/
sudo chown -R apache:apache /var/www/sentrifugo

Allow HTTP traffic on port 80 through the firewall.

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

Create a virtual host

Create a virtual host for your Sentrifugo HRM site.

sudo nano /etc/httpd/conf.d/hrm.example.com.conf

Populate the file.

<VirtualHost *:80>
    ServerName hrm.example.com
    DocumentRoot /var/www/sentrifugo
    <Directory /var/www/sentrifugo>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

Restart Apache.

sudo systemctl restart httpd

Wrapping Up

Now that you have successfully installed Sentrifugo HRM through the command line, you will need to finish the installation through the web interface. You can access the web installer on http://hrm.example.com. If you have followed the tutorial correctly, you should see that you have all the prerequisites satisfied to continue web-based installation. Provide the database and SMTP server details. Once you have provided the required database and SMTP server details, the setup will write into the database and a random username and password will be generated. Login to the HRM dashboard and configure the application according to your needs.

Congratulations, you have successfully installed Sentrifugo HRM on CentOS 7 server.

 

 


Leave a Comment