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, that 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 through the step by step installation OrangeHRM in CentOS 7 server.
- 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 steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB.
Next, open the MariaDB configuration file:
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 web server.
Now, open the Apache configuration file:
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.
OrangeHRM human resource management system will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com or http://server-ip/ and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.
Congratulation’s! You have successfully installed OrangeHRM. Thanks for using this tutorial for installing OrangeHRM human resource management system in CentOS 7 system. For additional help or useful information, we recommend you to check the official OrangeHRM web site.