How to Install OrangeHRM on Elementary OS Latest

OrangeHRM is a comprehensive human resource management system that can help you manage all your HR processes more effectively. If you're running on Elementary OS Latest, you're in luck because in this tutorial, we'll guide you through the process of installing OrangeHRM on your system.

Prerequisites

Before installing OrangeHRM, you'll need to have the following prerequisites set up on your system:

Step 1: Install Apache and PHP

Before we install OrangeHRM, we need to make sure that Apache and PHP are installed on our system. Run the following command in your terminal to install Apache and PHP:

sudo apt-get update
sudo apt-get install apache2 php php-cli libapache2-mod-php php-mysql php-ldap php-curl php-gd php-zip php-xml

Step 2: Install MySQL

Make sure to have MySQL installed on your machine. If you haven't installed it, you can run the following command to install:

sudo apt-get install mysql-server

During the installation of MySQL, you will be prompted to create a password for the root user. Make sure to take note of this password as you'll need it later.

Step 3: Download and Install OrangeHRM

Visit the OrangeHRM website at https://www.orangehrm.com/ and download the latest version of OrangeHRM. Extract the downloaded file and copy the extracted directory to your Apache root directory:

sudo cp -r {path_to_extracted_orangehrm_directory}/* /var/www/html/

Step 4: Configure OrangeHRM

Now that OrangeHRM is installed, we need to configure it for use. Follow the steps below to do so:

  1. Rename the "config-database.php" file to "config.php" that you can find in the directory "/var/www/html/orangehrm/symfony/plugins/orangehrmPimPlugin/config".

  2. Open the "config.php" file and update the following values according to your MySQL setup:

define("DB_HOST","localhost");
define("DB_NAME","orangehrm");
define("DB_USER","root");
define("DB_PASS","root_password");

Make sure to replace the values with your own MySQL configuration details, including the root password you set earlier.

  1. Update the Apache configuration file by running the following command:
sudo nano /etc/apache2/sites-available/000-default.conf

Add the following code after the "DocumentRoot" line:

<Directory /var/www/html/orangehrm>
    Options All
    AllowOverride All
    Require all granted
</Directory>

Save and close the file.

  1. Restart Apache:
sudo systemctl restart apache2
  1. You can now access OrangeHRM by visiting http://localhost/orangehrm in your web browser. You should see the OrangeHRM login page.

Conclusion

In this tutorial, we've covered the necessary steps to install OrangeHRM on a machine running elementary OS Latest. With proper installation and configuration in place, you're ready to start using the tool to manage your HR processes more efficiently.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!