Log in

How to Install HRMS Software (PHP) on Windows XAMPP and Ubuntu Linux

Published Nov 29, 2026

HRMS Software Installation Guide: Windows (XAMPP) & Ubuntu (Apache)

Complete Installation and Setup Guide

HRMS Software is a complete web-based Human Resource Management System built using PHP and MySQL. It provides a centralized platform to manage employees, attendance, leave, payroll, recruitment, reports and basic accounting operations.

This guide walks you through the complete installation process on Windows using XAMPP or on Ubuntu/Debian Linux using Apache. It also covers database configuration, first login, initial system setup, bulk data import, troubleshooting and deployment best practices.

1. System Requirements

Before installing HRMS Software, ensure your server meets the following requirements:

Component Requirement
Web Server Apache 2.4 with mod_rewrite enabled
PHP (Windows) PHP 7.4 – 8.1 (XAMPP)
PHP (Linux) PHP 8.1 – 8.3
PHP Extensions mysqli, mbstring, intl, gd, zip, curl, openssl
Database MySQL 5.7+ or MariaDB 10.4+
Browser Chrome, Edge, Firefox or another modern browser
Installation Package HRMS ZIP package and SQL database file

2. Installing HRMS on Windows using XAMPP

Step 1: Install XAMPP

  1. Download XAMPP from the official Apache Friends website.
  2. Install XAMPP in the default directory: C:\xampp\.
  3. Open the XAMPP Control Panel.
  4. Start Apache and MySQL.
  5. Open your browser and navigate to http://localhost/ to verify that XAMPP is running.

Step 2: Copy the HRMS Application Files

  1. Extract the HRMS installation ZIP file.

  2. Copy the application folder to:

    C:\xampp\htdocs\hrms\

  3. Ensure the directory contains the following files and folders:

    • index.php
    • application
    • system
    • assets

Step 3: Create the Database

  1. Open http://localhost/phpmyadmin/.
  2. Click New in the left sidebar.
  3. Enter the database name: hrms_db.
  4. Select the collation utf8mb4_general_ci.
  5. Click Create.

Step 4: Import the Database

  1. Select the newly created hrms_db database.
  2. Open the Import tab.
  3. Choose the SQL database file supplied with your HRMS package, usually located inside the database folder.
  4. Click Import or Go.
  5. Wait for the database import confirmation message.

Step 5: Configure Database Settings

Open the following file in a text editor:

C:\xampp\htdocs\hrms\application\config\database.php

Update the database configuration:

'hostname' => 'localhost',
'username' => 'hrms_user',
'password' => 'your-strong-password',
'database' => 'hrms_db',
'dbdriver' => 'mysqli',

For better security, create a dedicated MySQL user instead of using root, and restrict the user to the HRMS database.

Step 6: Configure the Base URL

Open:

C:\xampp\htdocs\hrms\application\config\config.php

Set the following values:

$config['base_url'] = 'http://localhost/hrms/';
$config['index_page'] = '';

Ensure that the .htaccess file is present in the application directory to support clean URLs.

Step 7: Configure PHP Settings

Open the PHP configuration file:

C:\xampp\php\php.ini

Enable the required PHP extensions and update the following settings:

date.timezone = "Asia/Kolkata"
upload_max_filesize = 20M
post_max_size = 20M
max_execution_time = 300
memory_limit = 256M

You can change the time zone according to your location.

Restart Apache from the XAMPP Control Panel to apply the changes.

Step 8: Configure Folder Permissions

Ensure the Apache service has write access to the folders used for:

On Windows, right-click the relevant folder, select Properties → Security → Edit, and grant Modify permissions to the account running Apache, typically SYSTEM or the configured service account.

3. Installing HRMS on Ubuntu or Debian Linux

Step 1: Install Apache, PHP and MySQL

Update your package list and install the required packages:

sudo apt update
sudo apt install -y apache2 mysql-server php php-mysql php-mbstring php-gd php-intl php-zip php-curl php-xml unzip

Enable the required Apache modules:

sudo a2enmod rewrite headers

Verify that Apache is running by opening:

http://your-server-ip/

Step 2: Create the Database and Database User

Access MySQL:

sudo mysql

Execute the following SQL statements:

CREATE DATABASE hrms_db
CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;

CREATE USER 'hrms_user'@'localhost'
IDENTIFIED BY 'YourStrongPassword';

GRANT ALL PRIVILEGES ON hrms_db.*
TO 'hrms_user'@'localhost';

FLUSH PRIVILEGES;
EXIT;

Replace YourStrongPassword with a strong, unique password.

Step 3: Upload and Extract the HRMS Files

Create the application directory:

sudo mkdir -p /var/www/hrms

Extract the installation package:

sudo unzip /tmp/hrms.zip -d /var/www/hrms

Set ownership:

sudo chown -R www-data:www-data /var/www/hrms

Ensure the document root points to the directory containing index.php. If the ZIP file creates an additional nested folder, move the application files to the correct directory.

Step 4: Import the Database

Import the supplied SQL file into the HRMS database:

sudo mysql hrms_db < /var/www/hrms/database/hrms.sql

Replace hrms.sql with the actual database file name if it differs.

Step 5: Configure Database and Application Settings

Open the database configuration file:

sudo nano /var/www/hrms/application/config/database.php

Update the database details:

'hostname' => 'localhost',
'username' => 'hrms_user',
'password' => 'YourStrongPassword',
'database' => 'hrms_db',
'dbdriver' => 'mysqli',

Next, open the application configuration file:

sudo nano /var/www/hrms/application/config/config.php

Configure the base URL:

$config['base_url'] = 'http://hrms.yourdomain.com/';
$config['index_page'] = '';

Replace hrms.yourdomain.com with your actual domain or server URL.

Step 6: Configure Apache Virtual Host

Create a new Apache virtual host configuration file:

sudo nano /etc/apache2/sites-available/hrms.conf

Add the following configuration:

<VirtualHost *:80>
    ServerName hrms.yourdomain.com
    DocumentRoot /var/www/hrms

    <Directory /var/www/hrms>
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/hrms_error.log
    CustomLog ${APACHE_LOG_DIR}/hrms_access.log combined
</VirtualHost>

Enable the site and validate the configuration:

sudo a2ensite hrms.conf
sudo apache2ctl configtest
sudo systemctl reload apache2

If you are using a different domain or URL structure, update the ServerName and base URL accordingly.

Step 7: Configure Permissions and PHP Settings

Grant write permissions to the application folders that require them:

sudo chmod -R 775 /var/www/hrms/assets/uploads
sudo chmod -R 775 /var/www/hrms/application/cache
sudo chmod -R 775 /var/www/hrms/application/logs

Ensure the web server has appropriate access to these directories.

Update your PHP configuration file, usually located at:

/etc/php/8.x/apache2/php.ini

Configure the following settings:

date.timezone = "Asia/Kolkata"
upload_max_filesize = 20M
post_max_size = 20M
max_execution_time = 300
memory_limit = 256M

Restart Apache:

sudo systemctl restart apache2

4. First Login to HRMS

Once the installation is complete, open your HRMS URL in a browser.

hrms-login.png

Log in using the administrator credentials supplied with your HRMS package.

Important: Change the default administrator password immediately after your first login.

After successfully logging in, you will be redirected to the HRMS dashboard.

hrms-dashboard.png

The dashboard provides an overview of key HR activities, including:

5. Initial HRMS Configuration

After your first login, configure the HRMS application in the following recommended order.

Step 1: Configure Application Settings

Settings

Navigate to Setting → Application Setting and configure:

Step 2: Create Departments and Positions

Create your organizational structure:

This helps organize employee records according to your company's structure.

Step 3: Configure Leave Management

Under the Leave section, configure:

Step 4: Configure Payroll

Before processing salaries:

  1. Define salary components.
  2. Configure employee salary structures.
  3. Set up tax slabs if required.
  4. Review payroll-related settings.

Step 5: Configure Users and Roles

hrms-users.png

Navigate to Setting → Roles & Permissions to create user roles.

Then navigate to Setting → Users to create user accounts and assign the appropriate roles and permissions.

Step 6: Add Employee Records

Add employees individually through the employee management section or use Bulk Import to upload employee data in batches.

Employee-Managment

Step 7: Configure Attendance

Set up your attendance process using:

6. Add Employee Data Using Bulk Import

HRMS provides a Bulk Import facility to simplify data entry and reduce manual work.

bulk-import.png

Follow these steps:

  1. Open Bulk Import from the left-side menu.
  2. Select the required import section.
  3. Download the available Excel or CSV template.
  4. Enter your data into the template.
  5. Upload the completed file.
  6. Review the validation results.
  7. Correct any errors identified during validation.
  8. Download the error list if required, make corrections and re-upload the affected records.

Bulk Import helps you onboard employees and other records faster without entering every record manually.

7. HRMS Features and Modules

HRMS provides multiple modules to manage day-to-day HR and administrative operations from a centralized platform.

Employee Management

Employee-Managment

Manage employee profiles with information such as:

The employee directory also supports search and data export in Copy, CSV, Excel, PDF and Print formats.

Attendance Management

hrms-attendance.png

Manage employee attendance through:

hrms-attendance_log.png

Leave Management

hrms-leave.png

Manage leave-related operations, including:

Payroll Management

hrms-payroll.png

Manage payroll through:

Recruitment Management

recruitment-mgmt.png

Manage your recruitment process through:

Reports and Accounts

reporting and basic accounting features

Access reporting and basic accounting features, including:

8. Verify the HRMS Installation

After completing the installation and initial configuration, verify that the system is functioning correctly.

Verification Expected Result
Login page Loads correctly with styling and logo
Dashboard Loads without PHP warnings or errors
Department creation New department is created successfully
Employee creation Employee is created and appears in the list
Employee photo upload Photo is uploaded and displayed
Payroll processing Test salary generates a payment record
Database backup Backup file is generated through Setting → Backup and Download

9. Common Installation Problems and Solutions

Problem Possible Solution
404 error on pages except the home page Enable mod_rewrite, configure AllowOverride All and verify the .htaccess file
Unable to connect to database Check database credentials and confirm that the database user has the required permissions
Blank page or HTTP 500 error Check PHP extensions, application logs and Apache error logs
Login redirects repeatedly to the sign-in page Check session/cache folder permissions and verify the base URL
Uploads fail Check upload folder permissions and increase upload_max_filesize and post_max_size
Incorrect dates or times Configure PHP date.timezone and the application time zone
CSS or JavaScript not loading Verify the base URL, asset paths and Apache rewrite configuration

10. Security Checklist Before Going Live

Before deploying HRMS on a production server, follow these security recommendations:

hrms-backup.png

Conclusion

HRMS Software provides a centralized solution for managing employee records, attendance, leave, payroll, recruitment, reports and basic accounting operations. By following this installation guide, you can deploy HRMS on Windows using XAMPP or on Ubuntu/Debian Linux using Apache, configure the system and begin managing your HR operations.

For installation assistance or technical support, Contact Us.

Installation guide for HRMS Software – Windows XAMPP and Ubuntu Linux.

HRMS Software

Full PHP source code for human resource management and payroll. Instant ZIP download after payment.

View product details