OrangeHRM is a popular human resource management software that is used to manage employee information, leave requests, timesheets, and many other HR functions. In this tutorial, we will guide you through the process of installing OrangeHRM on the latest versions of OpenSUSE.
Before we start the installation process, make sure that you have:
OrangeHRM requires an Apache web server to run. To install Apache on your OpenSUSE server, open your terminal and run the following command:
sudo zypper install apache2
Enter your sudo password when prompted.
After the installation is complete, start the Apache service and enable it to start on boot:
sudo systemctl start apache2
sudo systemctl enable apache2
OrangeHRM uses a database management system to organize and store employee data. We will use either MySQL or MariaDB for this purpose. To install MariaDB, run the following command:
sudo zypper install mariadb mariadb-client
Once the installation is done, start the database server and enable it to start on boot:
sudo systemctl start mariadb
sudo systemctl enable mariadb
Now that the database service is running, it is time to secure it. Run the following command and follow the prompts to secure the MariaDB server:
sudo mysql_secure_installation
OrangeHRM is a PHP-based app and requires PHP to be installed on your server. To do this, run the following command:
sudo zypper install php7 php7-mysql apache2-mod_php7 php7-mbstring php7-dom
This command will install PHP7 along with a few necessary modules.
To download the latest version of OrangeHRM, go to the official website at https://www.orangehrm.com and click on the "Download" button.
Once the download is complete, extract the downloaded zip file to the directory where you want to install OrangeHRM:
sudo unzip orangehrm-4.x.x.zip -d /var/www/html/
Change the directory permissions to allow Apache to access them:
sudo chmod -R 755 /var/www/html/orangehrm
To set up the database for OrangeHRM, log in to the MariaDB server:
sudo mysql -u root -p
Create a new database:
CREATE DATABASE orangehrm;
Create a new user and grant it full access to the newly created database:
CREATE USER 'orangehrmuser'@'localhost' IDENTIFIED BY 'your_password_here';
GRANT ALL PRIVILEGES ON orangehrm.* TO 'orangehrmuser'@'localhost';
Now exit the MariaDB prompt by typing:
exit;
Open your browser and go to http://localhost/orangehrm. You should see the OrangeHRM installation page.
Follow the on-screen instructions to configure the database connection and create an admin account. Make sure you select "mysql" as the database type.
Once you have gone through all the steps, click on the "Finish" button. This will complete the OrangeHRM installation process.
Go to http://localhost/orangehrm and log in with the admin account you created during the installation process. If you can log in successfully, this means that the installation was successful.
Congratulations, you have successfully installed OrangeHRM on your OpenSUSE server!
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!