OrangeHRM is a popular open-source human resource management software that helps you manage employee data, attendance, performance, and much more. This guide will show you how to install OrangeHRM on a NetBSD machine.
tar -xzvf orangehrm-4.5.10.tar.gz
pkg_add apache php
pkg_add mysql-server
/usr/pkg/bin/mysqld_safe &
mysql -u root -p
CREATE DATABASE oranghrm;
CREATE USER 'oranghrmuser'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON oranghrm.* TO 'oranghrmuser'@'localhost';
FLUSH PRIVILEGES;
exit;
Open the Apache configuration file (/usr/pkg/etc/httpd/httpd.conf) using your preferred text editor.
Add the following lines at the end of the file:
<Directory "/path/to/orangehrm">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Alias /oranghrm /path/to/orangehrm
mv orangehrm-4.5.10 /var/www/htdocs/orangehrm
Open the OrangeHRM configuration file (/var/www/htdocs/orangehrm/lib/confs/Conf.php) using your preferred text editor.
Update the database configuration settings with the following values:
define('DB_NAME', 'oranghrm');
define('DB_USER', 'oranghrmuser');
define('DB_PASSWORD', 'your_password');
define('DB_HOST', 'localhost');
define('DB_TYPE', 'mysql');
define('DB_PORT', '3306');
Save and close the file.
Ensure that the apache web server is running.
/usr/pkg/sbin/apachectl start
Congratulations! You have successfully installed OrangeHRM on your NetBSD machine.
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!