How to Install TimeOff.Management on Linux Mint
TimeOff.Management is a web-based application that allows organizations to manage employee time-offs and leave requests. This tutorial will guide you through the process of installing TimeOff.Management on Linux Mint latest version.
Prerequisites
Before proceeding with the installation, make sure you have the following:
- Linux Mint latest version
- Apache web server
- PHP 7.2.5 or higher
- MySQL database
Step 1: Download TimeOff.Management
First, download the latest version of TimeOff.Management from the official website at https://timeoff.management/download. You can either download the .zip or .tar.gz file. Save the file to your computer.
Step 2: Extract the TimeOff.Management Files
Next, extract the downloaded file to your preferred directory. You can use the following command to extract the file:
tar -xzvf timeoff.management-<version>.tar.gz
Or,
unzip timeoff.management-<version>.zip
Step 3: Move TimeOff.Management Files to the Web Directory
Now, move the extracted files to the web directory on your Linux Mint computer. This directory is usually located at /var/www/html/.
You can use the following command to move the files to the web directory:
sudo mv timeoff.management-<version>/* /var/www/html/
Note: Replace <version> with the actual version number of the downloaded file.
Step 4: Create the TimeOff.Management Database
Before you can use TimeOff.Management, you must create a MySQL database for it. Open the MySQL command-line interface by typing the following command:
mysql -u root -p
Enter your MySQL root password when prompted.
Next, create the database by running the following command:
CREATE DATABASE timeoff;
Replace timeoff with your preferred name for the database.
Step 5: Create the MySQL User
After creating the database, you need to create a MySQL user with privileges to access the database. Run the following command to create the user:
CREATE USER 'timeoffuser'@'localhost' IDENTIFIED BY 'password';
Replace timeoffuser with your preferred username, and password with your preferred password for the user.
Then, grant the user all privileges to the database:
GRANT ALL PRIVILEGES ON timeoff.* TO 'timeoffuser'@'localhost';
Step 6: Configure the TimeOff.Management Database
To configure the TimeOff.Management database, open the config.php file using a text editor:
sudo nano /var/www/html/config.php
Locate the following lines in the file:
$config['db']['host'] = 'localhost';
$config['db']['name'] = '';
$config['db']['user'] = '';
$config['db']['password'] = '';
Modify the lines as follows:
$config['db']['host'] = 'localhost';
$config['db']['name'] = 'timeoff';
$config['db']['user'] = 'timeoffuser';
$config['db']['password'] = 'password';
Replace timeoff with the name of the database you created earlier, timeoffuser with the username you created earlier, and password with the password you created earlier.
Step 7: Set Permissions
You need to set the folder permissions for the TimeOff.Management files. Use the following command to do this:
sudo chown -R www-data:www-data /var/www/html/
sudo chmod -R 755 /var/www/html/
Step 8: Access TimeOff.Management
Finally, open a web browser and type in the address bar: http://localhost/ or http://your_IP_address/.
You should see the TimeOff.Management login screen. Log in with the default credentials:
Email: [email protected]
Password: password
You will be prompted to change the default password once you log in.
Congratulations! You have successfully installed TimeOff.Management on your Linux Mint computer.