In this tutorial, we will guide you through the steps to install IceHrm on MXLinux Latest. IceHrm is an open-source HR software that is designed to streamline various HR tasks, such as employee management, leave management, time tracking, and more.
The first step is to update your system by running the following command in the terminal:
sudo apt update && sudo apt upgrade
This command will update the package list and upgrade all the installed packages to their latest versions.
After updating the system, we need to install some dependencies required to run IceHrm. Run the following command in the terminal to install these dependencies:
sudo apt install apache2 php7.4 php7.4-mysql php7.4-curl php7.4-gd php7.4-xml php7.4-mbstring php7.4-ldap php7.4-zip unzip wget
This command will install Apache2, PHP7.4, MySQL, and other required PHP modules.
Next, we need to download the latest version of IceHrm from the official website. Run the following command in the terminal to download the IceHrm package:
wget https://github.com/gamonoid/icehrm/releases/latest/download/icehrm.zip
This command will download the IceHrm package to your current directory.
After downloading the IceHrm package, we need to extract it to the Apache webroot directory. Run the following command in the terminal to extract the IceHrm package:
sudo unzip icehrm.zip -d /var/www/html/
This command will extract the IceHrm package to the /var/www/html/
directory.
After extracting the IceHrm package, we need to set the correct file permissions to the IceHrm directory. Run the following command in the terminal to set file permissions:
sudo chown -R www-data:www-data /var/www/html/icehrm
sudo chmod -R 755 /var/www/html/icehrm
This command will set the ownership and permissions for the IceHrm directory.
Finally, we need to configure IceHrm by creating a new MySQL database, user, and password. Run the following commands in the terminal to create a new MySQL database:
sudo mysql -u root -p
create database icehrmdb;
grant all privileges on icehrmdb.* to icehrmuser@localhost identified by 'your_password';
flush privileges;
exit;
Replace your_password
with your desired MySQL password.
After configuring the MySQL database, we need to configure Apache to serve IceHrm. Run the following command in the terminal to create a new Apache virtual host configuration file:
sudo nano /etc/apache2/sites-available/icehrm.conf
Paste the following configuration into the file:
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot /var/www/html/icehrm
ServerName example.com
ServerAlias www.example.com
<Directory /var/www/html/icehrm/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Replace example.com
with your domain name or server IP address.
Save and close the file.
Next, enable the virtual host and restart Apache by running the following commands:
sudo a2ensite icehrm.conf
sudo systemctl restart apache2
Now, open your web browser and navigate to http://your_server_ip/icehrm
. You will see the IceHrm installation page. Follow the instructions to complete the installation.
After the installation is complete, you can access IceHrm by navigating to http://your_server_ip/icehrm
in your web browser.
Congratulations! You have successfully installed IceHrm on MXLinux Latest. You can now use it to manage your HR tasks.
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!