IceHrm is an online Human Resource Management software that helps manage employee information, leave, attendance, recruitment, and payroll. In this tutorial, we will guide you on how to install the IceHrm software on Ubuntu Server Latest.
Before we begin with the installation process, you will need to have the following:
Begin by updating your system packages to ensure that your system is up-to-date.
sudo apt update
sudo apt upgrade
Next, install the necessary dependencies required to run IceHrm.
sudo apt install -y git zip unzip curl apache2 libapache2-mod-php php7.4-common php7.4-cli php7.4-curl php7.4-json php7.4-mbstring php7.4-xml php7.4-zip
IceHrm requires a MySQL database to store its data. Install MySQL on your system using the following command:
sudo apt install -y mysql-server
Next, run the following command to secure your MySQL installation:
sudo mysql_secure_installation
Answer the prompts as appropriate, and then create a new MySQL user and database for IceHrm.
mysql -u root -p
Next, create a new MySQL user with the following command:
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
Finally, create a new database for IceHrm with the following command:
CREATE DATABASE icehrm;
Now, download IceHrm software from the official website. To do this, run the following command:
curl -sS https://install.icehrm.com/ | sh
Next, set up Apache configuration to serve the IceHrm files. Navigate to the Apache default configuration directory using the following command:
cd /etc/apache2/sites-available
Create a new configuration file:
sudo nano icehrm.conf
Paste the following configuration into the file:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/icehrm/public/
<Directory /var/www/html/icehrm/public/>
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Now enable the newly created configuration:
sudo a2ensite icehrm.conf
Finally, restart Apache to apply the changes:
sudo systemctl restart apache2
Navigate to your web browser and type in your server's IP address to access the IceHrm web UI. Select the default language, and then click on the "Installation" button. Follow the prompts to complete the installation.
Congratulations! You have successfully installed IceHrm on Ubuntu Server Latest.
In this tutorial, we have shown you how to install IceHrm on Ubuntu Server Latest. With IceHrm, you can now efficiently manage your organization's human resource management 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!