How to Install IceHrm on Elementary OS Latest
IceHrm is a Human Resource Management System that allows businesses to manage their employees' data, attendance, and more. In this tutorial, we will be guiding you on how to install IceHrm on your Elementary OS Latest.
Prerequisites
Before we start installing IceHrm, make sure that your system meets the following requirements:
- You must have at least 2 GB of RAM
- You must have a MySQL root password
- You must have a webserver installed (e.g Apache, Nginx)
- You must have PHP 7.1.x or higher with the following modules installed (php-curl, php-mbstring, php-xml, php-gd, php-mysql)
Step 1: Download IceHrm
First, open your web browser and go to the following link: https://icehrm.com/download
Choose the "zip" format, and click on "Download Now" to download IceHrm.
Once the download is complete, extract the zip file to a directory of your choice.
Step 2: Configure MySQL
In this step, we will create a new MySQL database and grant permission to a new user that we will create. Open your terminal and type the following command:
$ mysql -u root -p
Enter your MySQL root password when prompted.
Next, create a new database:
mysql> CREATE DATABASE icehrm;
Create a new user with a password:
mysql> CREATE USER 'icehrmuser'@'localhost' IDENTIFIED BY 'your_password';
Grant permission to the user on the database:
mysql> GRANT ALL PRIVILEGES ON icehrm.* TO 'icehrmuser'@'localhost';
Exit from MySQL using the following command:
mysql> exit;
Step 3: Configure Apache
In this step, we will configure Apache to serve IceHrm.
Open the Apache configuration file:
$ sudo nano /etc/apache2/sites-available/000-default.conf
Add the following lines at the end of the "<VirtualHost *:80>" block:
Alias /icehrm /path/to/icehrm
<Directory /path/to/icehrm>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>
Save and exit the nano editor by pressing "Ctrl + X", then "Y", and then "Enter".
Restart the Apache server:
$ sudo service apache2 restart
Step 4: Install IceHrm
Open your web browser and navigate to http://your-server-ip/icehrm or http://localhost/icehrm
Choose your preferred installation method, and follow the steps shown.
If you choose the "Manual" installation method, you will have to create a configuration file before installing. For this step, open your terminal and navigate to the directory where you extracted IceHrm, then run the following command:
$ sudo cp config.sample.php config.php
Now open the "config.php" file and provide the following details:
- MySQL Host: localhost
- MySQL Username: icehrmuser
- MySQL Password: your_password
- MySQL Database: icehrm
Once you have completed filling out the details, save and close the file.
Step 5: Configure IceHrm
After the installation is complete, log in to IceHrm using the username and password you set during the installation.
You can now configure IceHrm based on your business needs.
Congratulations! You have successfully installed IceHrm on your Elementary OS Latest.