How to Install IceHrm on OpenBSD
IceHrm is a popular open-source human resource management software that allows businesses to manage their HR operations more effectively. Here is a step-by-step guide on how to install IceHrm on OpenBSD:
Prerequisites
Before you can start the installation process, you need to make sure you have the following prerequisites:
- A server running OpenBSD
- A non-root user with sudo privileges
Installation
- First, update your package manager by running the following command:
sudo pkg_add -u
- Next, install the required packages using the following command:
sudo pkg_add php-7.4.23p0 php-mbstring-7.4.23p0 php-mysqli-7.4.23p0 php-pdo_mysql-7.4.23p0 php-curl-7.4.23p0 php-gd-7.4.23p0 php-zip-7.4.23p0 unzip-6.0p12 nano-5.8
- Now, you need to move to the web server's root directory by running the following command:
cd /htdocs/
- Download the latest version of IceHrm using the following command:
sudo wget https://github.com/gamonoid/icehrm/archive/master.zip
- Extract the downloaded file using the following command:
sudo unzip master.zip
- Rename the extracted directory using the following command:
sudo mv icehrm-master icehrm
- Next, you need to set the appropriate permissions using the following command:
sudo chown -R _www:_www /htdocs/icehrm
- Now, you need to set up a database for IceHrm. You can do this by logging into your MySQL console using the following command:
mysql -u root -p
- Once you are logged into your MySQL console, create a new database and user for IceHrm using the following commands:
CREATE DATABASE icehrm_db;
CREATE USER 'icehrm_user'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON icehrm_db.* TO 'icehrm_user'@'localhost';
Replace 'your_password' with a strong password of your choice.
- Next, you need to import the database schema into your newly created database. To do this, navigate to the install directory of IceHrm using the following command:
cd /htdocs/icehrm/install
- Now, open the config.php file using the following command:
nano config.php
- Update the database settings in the config.php file with the following information:
define('DB_NAME', 'icehrm_db');
define('DB_USER', 'icehrm_user');
define('DB_PASSWORD', 'your_password');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
Save and close the config.php file.
Finally, open your web browser and navigate to http://your_server_ip/icehrm to access the IceHrm web interface.
Congratulations! You have successfully installed IceHrm on OpenBSD. You can now start using IceHrm to manage your HR operations more effectively.