How to Install IceHrm on Fedora Server Latest

IceHrm is a free and open-source HRM software that is designed for small and medium-sized businesses. It provides various modules for managing employee information, attendance, leave, and other HR-related tasks. In this tutorial, we will guide you on how to install IceHrm on Fedora Server Latest.

Prerequisites

Before starting with the installation process, ensure that your system has the following prerequisites:

Step 1: Update Packages

First, you need to update your system packages to their latest versions. You can do this by running the following command in your terminal:

sudo dnf update

Step 2: Install Required Packages

Next, you need to install some required packages for the IceHrm to work properly. You can do this by running the following command:

sudo dnf install git php-gd php-curl php-dom php-sqlite3 php-mcrypt sqlite

Step 3: Install Composer

Composer is a dependency manager for PHP. You need to install Composer to download and install the IceHrm dependencies.

Run the following commands to install Composer on your system:

sudo dnf install php-cli
sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Step 4: Clone IceHrm Repository

You need to clone the IceHrm repository from GitHub to your system. You can do this by running the following command:

git clone https://github.com/gamonoid/icehrm.git
cd icehrm

Step 5: Install IceHrm Dependencies

Once you have cloned the IceHrm repository, you now need to install the IceHrm dependencies.

Run the following command in your terminal to install the IceHrm dependencies:

composer install

Step 6: Configure Database

Next, you need to create a database and configure it in the config.php file. You can do this by running the following command:

cp config.php.sample config.php
nano config.php

In the config.php file, update the database configurations according to your database settings. You can change the following configurations:

define("DB_HOST", "localhost");
define("DB_NAME", "icehrm");
define("DB_USER", "root");
define("DB_PASSWORD", "");

Step 7: Configure Webserver

Next, you need to configure your webserver (Apache or Nginx) to serve IceHrm.

Apache

If you are using Apache, you need to create a virtual host file for IceHrm.

Run the following command to create a virtual host file:

sudo nano /etc/httpd/conf.d/icehrm.conf

Add the following configuration in the file:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html/icehrm/public
    ServerName example.com

    <Directory /var/www/html/icehrm/public>
        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 own domain name or IP address.

Nginx

If you are using Nginx, you need to create a server block configuration file for IceHrm.

Run the following command to create an Nginx configuration file:

sudo nano /etc/nginx/sites-available/icehrm.conf

Add the following configuration in the file:

server {
    listen 80;
    server_name example.com;

    root /var/www/html/icehrm/public;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        try_files $uri /index.php =404;
        fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}

Replace example.com with your own domain name or IP address.

Step 8: Set Permissions

You now need to set the correct permissions for the IceHrm directory.

Run the following command to set the correct permissions:

sudo chown -R apache:apache /var/www/html/icehrm
sudo chmod -R 755 /var/www/html/icehrm

Step 9: Access IceHrm

Restart your webserver to apply the changes:

Apache

sudo systemctl restart httpd

Nginx

sudo systemctl restart nginx

Once your webserver is restarted, you can access your IceHrm installation by visiting your domain name or IP address in your web browser.

http://example.com

Conclusion

Congratulations! You have successfully installed IceHrm on Fedora Server Latest. You can now start managing your HR tasks using IceHrm.

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!