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
- Download XAMPP from the official Apache Friends website.
- Install XAMPP in the default directory:
C:\xampp\. - Open the XAMPP Control Panel.
- Start Apache and MySQL.
- Open your browser and navigate to http://localhost/ to verify that XAMPP is running.
Step 2: Copy the HRMS Application Files
-
Extract the HRMS installation ZIP file.
-
Copy the application folder to:
C:\xampp\htdocs\hrms\ -
Ensure the directory contains the following files and folders:
index.phpapplicationsystemassets
Step 3: Create the Database
- Open http://localhost/phpmyadmin/.
- Click New in the left sidebar.
- Enter the database name:
hrms_db. - Select the collation
utf8mb4_general_ci. - Click Create.
Step 4: Import the Database
- Select the newly created
hrms_dbdatabase. - Open the Import tab.
- Choose the SQL database file supplied with your HRMS package, usually located inside the
databasefolder. - Click Import or Go.
- 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:
- Employee photos
- Document uploads
- Import files
- Application cache
- Application logs
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.

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.

The dashboard provides an overview of key HR activities, including:
- Total employees
- Present employees
- Today's worked hours
- Today's leave
- Employee overview chart
- Income and expense chart
- Calendar
- Notices
5. Initial HRMS Configuration
After your first login, configure the HRMS application in the following recommended order.
Step 1: Configure Application Settings

Navigate to Setting → Application Setting and configure:
- Application title
- Company address
- Email address and phone number
- Company logo and favicon
- Language
- Time zone
- Footer text
Step 2: Create Departments and Positions
Create your organizational structure:
- Add departments under Department.
- Add employee positions under Employee → Position.
This helps organize employee records according to your company's structure.
Step 3: Configure Leave Management
Under the Leave section, configure:
- Weekly holidays
- Public holidays
- Leave types
- Leave policies, where applicable
Step 4: Configure Payroll
Before processing salaries:
- Define salary components.
- Configure employee salary structures.
- Set up tax slabs if required.
- Review payroll-related settings.
Step 5: Configure Users and Roles

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.

Step 7: Configure Attendance
Set up your attendance process using:
- Manual check-in and check-out
- Bulk check-in
- Device Connection for supported biometric devices
6. Add Employee Data Using Bulk Import
HRMS provides a Bulk Import facility to simplify data entry and reduce manual work.

Follow these steps:
- Open Bulk Import from the left-side menu.
- Select the required import section.
- Download the available Excel or CSV template.
- Enter your data into the template.
- Upload the completed file.
- Review the validation results.
- Correct any errors identified during validation.
- 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

Manage employee profiles with information such as:
- Employee details and profiles
- Positions and departments
- Benefits
- Supervisors
- Emergency contacts
- Custom fields
The employee directory also supports search and data export in Copy, CSV, Excel, PDF and Print formats.
Attendance Management

Manage employee attendance through:
- Check-in and check-out
- Bulk attendance
- Attendance logs
- Employee and date filters

Leave Management

Manage leave-related operations, including:
- Leave types
- Leave applications
- Leave approvals
- Holiday calendars
Payroll Management

Manage payroll through:
- Salary components
- Employee salary structures
- Monthly salary generation
- Salary payment records
Recruitment Management

Manage your recruitment process through:
- Candidate management
- Shortlisting
- Interview management
- Candidate selection
Reports and Accounts

Access reporting and basic accounting features, including:
- Employee demographic reports
- Custom reports
- Chart of Accounts
- Vouchers
- Trial Balance
- Profit and Loss reports
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:
- Change the default administrator password.
- Remove unused demo accounts.
- Use a dedicated database user with a strong password.
- Enable HTTPS and redirect HTTP traffic to HTTPS.
- Set
display_errors = Offin the production PHP configuration. - Schedule regular database backups.
- Back up the uploads directory.
- Restrict access to phpMyAdmin or remove it from production if not required.
- Grant write permissions only to the required application directories.

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.