How to Install OrangeHRM on Manjaro

OrangeHRM is a popular open-source HR management software that helps businesses streamline their HR operations. In this tutorial, we will walk you through the steps to install OrangeHRM on Manjaro.

Prerequisites

Before we start, make sure you have the following:

Step 1: Download OrangeHRM

Go to the official OrangeHRM website at https://www.orangehrm.com/download/ and download the latest version of the software.

Step 2: Install Dependencies

Open the terminal and run the following command to install the required dependencies:

sudo pacman -S apache php php-apache mariadb

Once the installation is complete, start the Apache and MariaDB services by running:

sudo systemctl start apache
sudo systemctl start mariadb

You can also set these services to start automatically at boot time by running:

sudo systemctl enable apache
sudo systemctl enable mariadb

Step 3: Configure MariaDB

Run the following commands to configure MariaDB:

sudo mysql_secure_installation
sudo mysql -u root -p

Enter your root password and run the following SQL commands:

CREATE DATABASE orangehrm;
CREATE USER 'orangehrm'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON orangehrm.* TO 'orangehrm'@'localhost';
FLUSH PRIVILEGES;
QUIT;

Replace "password" in the second command with a strong password of your choice.

Step 4: Install OrangeHRM

Extract the downloaded OrangeHRM package to the Apache web root directory:

sudo tar -xvzf orangehrm-4.x.x.x.tar.gz -C /srv/http/

Replace "4.x.x.x" in the command with the version you downloaded.

Run the following command to give the web server write permissions:

sudo chown -R http:http /srv/http/orangehrm-4.x.x.x

Step 5: Access OrangeHRM

Open your web browser and navigate to http://localhost/orangehrm-4.x.x.x/ to access the OrangeHRM installation wizard.

Follow the on-screen instructions to complete the installation.

Congratulations! You have successfully installed OrangeHRM on Manjaro.

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!