How to Install OrangeHRM on MXLinux Latest

OrangeHRM is an open-source HR management system for small and medium-sized organizations. The software provides a simple and efficient way to manage HR-related tasks such as recruitment, employee management, and attendance tracking. This tutorial will guide you through the process of installing OrangeHRM on your MXLinux.

Prerequisites

Before we proceed with the installation, make sure you have the following prerequisites:

Step 1: Install Apache and MariaDB

OrangeHRM requires a web server and a database to function. Therefore, we need to install the Apache web server and MariaDB database server. Run the following commands to install them:

sudo apt update
sudo apt install apache2 mariadb-server -y

After the installation, enable and start the Apache and MariaDB services by running:

sudo systemctl enable apache2 mariadb
sudo systemctl start apache2 mariadb

Step 2: Create a MariaDB Database and User

Next, we need to create a MariaDB database and user for OrangeHRM. Log in to MariaDB shell by running:

sudo mysql -u root

Once logged in, run the following commands to create a new database and user:

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

Note: Replace "password" with a strong password.

Step 3: Install PHP and Required Extensions

OrangeHRM is based on PHP, so we need to install PHP and its required extensions using the following command:

sudo apt install php libapache2-mod-php php-mysql php-gd php-zip php-mbstring php-xml php-curl -y

Once the installation is complete, restart the Apache service by running the command:

sudo systemctl restart apache2

Step 4: Download and Install OrangeHRM

Now, download the latest version of OrangeHRM from its official website using the following command:

wget https://excellmedia.dl.sourceforge.net/project/orangehrm/stable/4.5.15/orangehrm-4.5.15.zip

Next, extract the downloaded file and move it to the Apache document root directory:

unzip orangehrm-4.5.15.zip
sudo mv orangehrm-4.5.15 /var/www/html/orangehrm

Set the appropriate permissions for OrangeHRM by running:

sudo chown -R www-data: /var/www/html/orangehrm
sudo chmod -R 755 /var/www/html/orangehrm

Step 5: Configure OrangeHRM

To configure OrangeHRM, open your web browser and type in the following URL: http://localhost/orangehrm/. The installation wizard will open. Follow the on-screen instructions to complete the installation.

When prompted for database details, enter the following:

After completing the configuration, you will be redirected to the OrangeHRM login page. Log in using the default admin credentials:

Note: It's recommended to change the admin password after the first login.

Conclusion

Congratulations! You have successfully installed and configured OrangeHRM on your MXLinux. You can now use the system to manage HR-related tasks for your organization.

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!