How to install OrangeHRM on a CentOS 7 VPS

In the following article we are going to explain how you can install and run OrangeHRM on your CentOS 7 VPS. OrangeHRM is a superb, scalable Human Resource Management solution written in PHP. It has the following features:

As always, make sure your CentOS 7 VPS is fully up-to-date with the command below:

# yum update

INSTALL LAMP

Your first step is to install Linux Apache, MariaDB & PHP or better known by LAMP. LAMP is actually an acronym for a web services solution stack consisting of Linux, the Apache HTTP Server, the MySQL or MariaDB database engines, and the PHP, Perl or Python programming language. Issue the following:

Move the files and directories from the unpackacked directory into your current working directory (Apache’s document root)

# mv orangehrm-3.3.1/* . && mv orangehrm-3.3.1/.htaccess .

Now, open the Apache configuration file:

# vim /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.

So, after you are done, the section should look like this:

<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

Next, open the MariaDB configuration file. We are using the following command:

# vim /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

Set the correct ownership:

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

To finish the OrangeHRM installation, open your favorite browser and navigate to http://your_domain.com . Accept the license and enter your preferred database configuration information once you reach the Database Configuration part.

You can also leave the default database values.

In ‘step 3: System Check’, make sure all listed items are green and OK.

Next, create your admin username and password. The installation will start once you click the ‘Install’ button after the confirmation of your set up in the last ‘Step 5: Confirmation’.

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install this for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.