CentOSLinuxTutorials

How To Install OrangeHRM on CentOS 7

Install OrangeHRM on CentOS 7

In this tutorial, we will show you how to install OrangeHRM on CentOS 7. For those of you who didn’t know, Orange HRM is the most popular open-source human resource management (HRM) software in the world. OrangeHRM, is available both as an open-source and an advanced hosted application (SaaS).

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. I will show you the step-by-step installation of OrangeHRM in the CentOS 7 server.

OrangeHRM Features

  • Administration Module.
  • Personal Information Management.
  • Leave Module.
  • Time Module.
  • Employee Self-Service Module.
  • Recruitment/ Applicant Tracking Module.
  • Performance Module.

Install OrangeHRM on CentOS 7

Step 1. First of all, make sure that all packages are up to date.

yum - update

Step 2. Install LAMP server.

A CentOS 7 LAMP server is required. If you do not have LAMP installed, you can follow our guide here.

Step 3. Install OrangeHRM.

Download the latest stable version of OrangeHRM, At the moment of writing this article it is version 3.3.2:

cd /var/www/html
wget http://nchc.dl.sourceforge.net/project/orangehrm/stable/3.3.2/orangehrm-3.3.2.zip
unzip orangehrm-3.3.2.zip
mv orangehrm-3.3.2/* . && mv orangehrm-3.3.2/.htaccess .

We will need to change some folders permissions:

chown -R apache:apache /var/www/html

Step 4. Configuring MariaDB.

By default, MariaDB is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each step carefully which will set a root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.

mysql_secure_installation

Next, open the MariaDB configuration file:

nano /etc/my.cnf

Anywhere under the [mysqld] block place the following line: event_scheduler = ON. Then restart MariaDB for the changes to take effect:

systemctl restart mariadb

Step 4. Configuring Apache webserver.

Now, open the Apache configuration file:

nano /etc/httpd/conf/httpd.conf

Locate the ‘<Directory “/var/www/html”>‘ section and change the value of the line: ‘AllowOverride None‘ to ‘AllowOverride All‘. This action will enable .htaccess files to be used by your web server:

<Directory "/var/www/html">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Require all granted

Now, we can restart Apache so that the changes take place:

systemctl restart httpd.service

Step 5. Accessing OrangeHRM Web UI.

OrangeHRM human resource management system will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your-domain.com or http://server-ip/ and complete the required steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulations! You have successfully installed OrangeHRM. Thanks for using this tutorial for installing the OrangeHRM human resource management system in CentOS 7 system. For additional help or useful information, we recommend you check the official OrangeHRM website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button