In this tutorial, we will guide you through the process of installing IceHrm, an open-source HR management software, on NetBSD.
Before starting with the installation process, make sure that your system meets the following requirements:
First, you need to install the required dependencies for IceHrm by running the following command:
pkgin update && pkgin -y install apache php mysql-server php-mysqli php-curl php-mbstring php-gd php-json php-xmlrpc
This command will update the package index and install all the required dependencies to run IceHrm.
Next, you need to download and extract the latest version of IceHrm to your server. You can download the latest version from the official IceHrm website using the following command:
wget https://icehrm.com/downloads/get/50
After downloading, extract the package using the following command:
tar -xzvf icehrm.tar.gz
This command will extract the IceHrm package to the current directory.
Now, you need to create a new database for IceHrm. You can create a new database using the following command:
mysql -u root -p
This will open the MySQL command prompt. Here, you need to create a new database using the following command:
CREATE DATABASE icehrm;
After creating the database, create a new user and grant them all privileges for the database using the following commands:
CREATE USER 'icehrm'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON icehrm.* TO 'icehrm'@'localhost';
FLUSH PRIVILEGES;
Make sure to replace password
with a strong password for the new user.
Next, you need to configure Apache to serve IceHrm. Open the Apache configuration file using the following command:
vi /usr/pkg/etc/httpd/httpd.conf
Add the following lines to the end of the file:
DocumentRoot /path/to/icehrm
<Directory /path/to/icehrm>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Make sure to replace /path/to/icehrm
with the path to the IceHrm directory on your server.
Save the file and exit the editor.
Next, you need to configure IceHrm by editing the config.php
file. Navigate to the IceHrm directory and open the file using the following command:
cd /path/to/icehrm
vi config.php
Here, you need to update the following lines:
define("DB_USER", "icehrm");
define("DB_PASSWORD", "password");
define("DB_NAME", "icehrm");
Make sure to replace password
with the password you set for the new user.
Save the file and exit the editor.
Finally, you need to start Apache and MySQL using the following commands:
/usr/pkg/etc/rc.d/apache start
/usr/pkg/etc/rc.d/mysql-server start
Now, you can access IceHrm by opening a web browser and navigating to http://your-server-ip/
or http://your-domain/
, depending on your server setup. You should see the IceHrm login page.
Congratulations! You have successfully installed IceHrm on NetBSD. You can now start using IceHrm to manage your HR 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!