Difference between revisions of "Process:Installation guide"

From MintHCM Wiki

m
Line 2: Line 2:
 
|Process-name=Installation guide
 
|Process-name=Installation guide
 
|Process-type=Technical Process
 
|Process-type=Technical Process
|Short Description=Installation guide for MintHCM
+
|Short Description=The MintHCM Installing Guide is a technical document that provides detailed instructions on how to install and configure the software.
 +
 
 +
The guide covers everything from system requirements to database configuration and user setup.
 +
It is a comprehensive technical resource that provides you with the information you need to set up and configure the software effectively.
 
}}
 
}}
 
==Requirements==
 
==Requirements==
MintHCM requirements are '''PHP 7.1''' and '''MySQL 5.6-5.7''' or '''MariaDB 10'''. All web browsers with Chromium, Firefox, and Edge are supported by MintHCM.
+
To run MintHCM, your system must have '''PHP 7.1 and MySQL 5.6-5.7 or MariaDB 10 installed'''. Other versions are not supported!
Unfortunately, we do not support IE, but you can still test and use it by yourself.
+
 
 +
MintHCM is compatible with Chromium, Firefox, and Edge web browsers. Unfortunately, we do not support IE, but you can still test and use it by yourself.
  
 
==Preparing for installation==
 
==Preparing for installation==
  
To install MintHCM you will need Linux or Windows platform, a web server with PHP installed and a database.
+
To install MintHCM you will need Linux or Windows platform, a web server with PHP installed and a database.  
  
The first step towards installation is downloading MintHCM to your server and preparing files to be installed. To do so, follow the steps:
+
The first step towards installation is downloading MintHCM to your server and preparing files to be installed. To do so, follow the steps:  
  
 
# Download MintHCM zip file from https://minthcm.org/download/
 
# Download MintHCM zip file from https://minthcm.org/download/
# Copy the zip file to your server and unzip it in the directory of your choice  
+
# Copy the zip file to your server  
 +
# Unzip it in the directory of your choice  
 
# Change files permissions in that directory accordingly with your platform demands
 
# Change files permissions in that directory accordingly with your platform demands
 
   
 
   
Line 24: Line 29:
 
sudo chmod -R 755 *
 
sudo chmod -R 755 *
 
</syntaxhighlight>
 
</syntaxhighlight>
where www-data are default user and group for Ubuntu Linux/Apache. However, it might have been changed on your server. Use the actual system user and group.
+
where www-data are default user and group for Ubuntu Linux/Apache. However, it might have been changed on your server. '''Use the actual system user and group.'''
  
 
==Installation of MintHCM==
 
==Installation of MintHCM==
Line 30: Line 35:
 
Once you have your files prepared, you can start actual installation. To do so, follow the steps below:
 
Once you have your files prepared, you can start actual installation. To do so, follow the steps below:
  
1. Put the following URL into your web browser:
+
1. Open your web browser and '''enter the following URL''' to start the installation wizard.
  
  http://<yourServer>/<yourMintHCMdirectory>/install.php
+
  https://my-server-or-domain.com/my-minthcm-directory
  
 
The installation wizard will start now.  
 
The installation wizard will start now.  
  
2. On the first screen you have to accept the licence agreement. After that you can click the next button.  
+
2. On the first screen you have to '''accept the licence agreement.''' After that you can click the next button.  
  
 
[[File:MintHCM - Installation - Start.png|900px|thumb|center|MintHCM - Installation - Start]]
 
[[File:MintHCM - Installation - Start.png|900px|thumb|center|MintHCM - Installation - Start]]
Line 44: Line 49:
 
[[File:MintHCM - Installation - System Environment.png|900px|thumb|center|MintHCM - Installation - System Environment]]
 
[[File:MintHCM - Installation - System Environment.png|900px|thumb|center|MintHCM - Installation - System Environment]]
  
What is really important here is an instruction how to set up a [[Crontab]], that allows MintHCM to perform actions in the background of your server.  
+
It's important to set up a '''Crontab''' to allow MintHCM to run background tasks on your server.  
You should do this only after the installation is concluded.
+
Edit your web server user's crontab file after the installation is completed.
  
To do so, you have to edit your web server user's crontab file. You can open it with a command:
+
To do so, you have to '''edit your web server user's crontab file'''. You can open it with a command:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo crontab -e -u www-data (or another actual user)
 
sudo crontab -e -u www-data (or another actual user)
 
</syntaxhighlight>
 
</syntaxhighlight>
Now you have to add the following line to the crontab file:
+
Now you have to '''add the following line''' to the crontab file:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
*    *    *    *    *    cd /var/www/MintHCM/MintHCM; php -f cron.php > /dev/null 2>&1
 
*    *    *    *    *    cd /var/www/MintHCM/MintHCM; php -f cron.php > /dev/null 2>&1
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Information about Crontab edition may be also found in [[Schedulers]] in [[Process:Administration_Guide|Administration panel]] of MintHCM after installation.
+
Information about Crontab edition may be also found in Schedulers in [[Process:Administration_Guide|Administration panel]] of MintHCM after installation.
  
 
Note that Windows or other systems have different background processes mechanisms.  
 
Note that Windows or other systems have different background processes mechanisms.  
  
4. On the next screen you have to provide basic database configuration and administrator user data.
+
4. Enter basic database configuration and administrator user data on the next screen.
  
If your database is on the same server that MintHCM instance, you may put 'localhost' in Host Name field. If it is somewhere else, put there a proper host of your database.  
+
If the database and MintHCM '''are on the same server, enter 'localhost'''' in the Host Name field.  
 
+
If the database is on a '''different server, enter the hostname or IP address''' of the database server in the Host Name field.
[[File:MintHCM - Installation - Database configuration.png|900px|thumb|center|MintHCM - Installation - Database configuration]]
 
  
 +
[[File:minthcm detabase configuration.png|900px|thumb|center|MintHCM - Installation - Database configuration]]
  
 
MintHCM Database User is by default set to root. If you want to choose another user, change it here.  
 
MintHCM Database User is by default set to root. If you want to choose another user, change it here.  
Line 71: Line 76:
 
5. Set up your administrator user name and password, so you can log in MintHCM later.
 
5. Set up your administrator user name and password, so you can log in MintHCM later.
  
In these screen you can also configure basic [[global settings]] of your MintHCM instance, such as email server settings, branding (including logo of your company), system settings (i.e. time and data format) and security options. All of those settings may be configured after the installation as well.
+
Here, you can '''configure basic global settings''' such as email server settings, branding (including logo of your company), system settings (i.e. time and data format) and security options.  
 
+
All of those settings may be configured after the installation as well.  
6. If everything was alright with data provided, installation will begin. It may take a while.  
 
  
 +
6. If everything was alright with data provided, installation will begin. '''It may take a while.
 +
'''
 
[[File:MintHCM - Installation - Installation in progress.png|900px|thumb|center|MintHCM - Installation - Installation in progress]]
 
[[File:MintHCM - Installation - Installation in progress.png|900px|thumb|center|MintHCM - Installation - Installation in progress]]
  
7. After installation is completed, you will see the last screen. Among others, it provides information of total time of installation and memory use.
+
7. After installation is completed, you will see the last screen. Among others, it provides information of total time of installation and memory use.  
  
 
[[File:MintHCM - Installation - Finish.png|900px|thumb|center|MintHCM - Installation - Finish]]
 
[[File:MintHCM - Installation - Finish.png|900px|thumb|center|MintHCM - Installation - Finish]]
  
After you click the finish button, installation will be finished, and you can log in your MintHCM instance as admin with username and password set up during installation.
+
After clicking the finish button, t'''he installation is complete''' and you can log in to your MintHCM instance as an administrator with the username and password you set up earlier.
  
 
==Troubleshooting==
 
==Troubleshooting==
  
During the installation process some errors may occur.
+
Here you can find instructions on troubleshooting common errors that may occur during the installation process of MintHCM software. It includes solutions for errors such as permission errors, invalid database host/username/password, and missing config.php file.
 +
 
 +
If you can't find your problem below, '''check out our support forum''' here: https://minthcm.org/support/
 +
You may also describe your problem and '''get help by sending an email''' to contact@minthcm.org
  
 
===Permissions error===
 
===Permissions error===
Line 91: Line 100:
 
[[File:MintHCM - Installation  - Permissions error.png|900px|thumb|center|Permissions error]]
 
[[File:MintHCM - Installation  - Permissions error.png|900px|thumb|center|Permissions error]]
  
This may occur, when files permissions were not change before the installation. Check your file permissions in MintHCM installation files directory, if necessary run commends provided below and start installation again.  
+
This may occur, when files permissions were not change before the installation. '''Check your file permissions''' in MintHCM installation files directory, if necessary run commends provided below and start installation again.  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo chown -R www-data:www-data *
 
sudo chown -R www-data:www-data *
Line 110: Line 119:
 
[[File:MintHCM - Installation - Database configuration error.png|900px|thumb|center|Database configuration error]]
 
[[File:MintHCM - Installation - Database configuration error.png|900px|thumb|center|Database configuration error]]
  
This error is most probably caused by invalid data provided by user, such as database host name or password. To solve this, double check your host, user name, password, etc. Also, check if your MintHCM Database user matches the actual user you can and want to use in this instance of MintHCM.
+
This error is most probably caused by invalid data provided by user, such as database host name or password. To solve this, '''double check your host, user name, password, etc.''' Also, check if your MintHCM Database user matches the actual user you can and want to use in this instance of MintHCM.
  
 
===Config.php file is missing===
 
===Config.php file is missing===
Line 116: Line 125:
 
[[File:MintHCM - Installation - Config.php error.png|900px|thumb|center|MintHCM - Installation - Config.php error]]
 
[[File:MintHCM - Installation - Config.php error.png|900px|thumb|center|MintHCM - Installation - Config.php error]]
  
This error may also be caused by file permission restrictions. You can check them and eventually restart installation. Or you can create config.php file manually.
+
This error may also be caused by file permission restrictions. '''Check the file permissions''' in the MintHCM installation files directory and '''restart the installation if necessary'''. You can also create config.php file manually.  
  
To do so, just create config.php file in your MintHCM instance directory, paste the code form the installer and save the file. After that, you can go to your instance (i.e. through URL http://<yourServer>/<yourMintHCMdirectory>). The instance should be running and you should see basic configuration options after logging in.
+
To do so, just create config.php file in your MintHCM instance directory, paste the code form the installer and save the file. After that, you can go to your instance (i.e. through URL https://my-server-or-domain.com/my-minthcm-directory). The instance should be running and you should see basic configuration options after logging in.
 
{{Process-links}}
 
{{Process-links}}

Revision as of 14:47, 19 January 2023

Info
Process Name Installation guide
Process Type ⧼ev-Technical Process⧽
Related Processes
Related Modules
MintHCM Installation Guide

Short Description

The MintHCM Installing Guide is a technical document that provides detailed instructions on how to install and configure the software.

The guide covers everything from system requirements to database configuration and user setup. It is a comprehensive technical resource that provides you with the information you need to set up and configure the software effectively.


Requirements

To run MintHCM, your system must have PHP 7.1 and MySQL 5.6-5.7 or MariaDB 10 installed. Other versions are not supported!

MintHCM is compatible with Chromium, Firefox, and Edge web browsers. Unfortunately, we do not support IE, but you can still test and use it by yourself.

Preparing for installation

To install MintHCM you will need Linux or Windows platform, a web server with PHP installed and a database.

The first step towards installation is downloading MintHCM to your server and preparing files to be installed. To do so, follow the steps:

  1. Download MintHCM zip file from https://minthcm.org/download/
  2. Copy the zip file to your server
  3. Unzip it in the directory of your choice
  4. Change files permissions in that directory accordingly with your platform demands

For Ubuntu Linux/Apache it will be:

cd ../<yourMintHCMdirectory>
sudo chown -R www-data:www-data *
sudo chmod -R 755 *

where www-data are default user and group for Ubuntu Linux/Apache. However, it might have been changed on your server. Use the actual system user and group.

Installation of MintHCM

Once you have your files prepared, you can start actual installation. To do so, follow the steps below:

1. Open your web browser and enter the following URL to start the installation wizard.

https://my-server-or-domain.com/my-minthcm-directory

The installation wizard will start now.

2. On the first screen you have to accept the licence agreement. After that you can click the next button.

MintHCM - Installation - Start

3. In a moment another screen with system environment information will appear.

MintHCM - Installation - System Environment

It's important to set up a Crontab to allow MintHCM to run background tasks on your server. Edit your web server user's crontab file after the installation is completed.

To do so, you have to edit your web server user's crontab file. You can open it with a command:

sudo crontab -e -u www-data (or another actual user)

Now you have to add the following line to the crontab file:

*    *    *    *    *     cd /var/www/MintHCM/MintHCM; php -f cron.php > /dev/null 2>&1

Information about Crontab edition may be also found in Schedulers in Administration panel of MintHCM after installation.

Note that Windows or other systems have different background processes mechanisms.

4. Enter basic database configuration and administrator user data on the next screen.

If the database and MintHCM are on the same server, enter 'localhost' in the Host Name field. If the database is on a different server, enter the hostname or IP address of the database server in the Host Name field.

MintHCM - Installation - Database configuration

MintHCM Database User is by default set to root. If you want to choose another user, change it here.

5. Set up your administrator user name and password, so you can log in MintHCM later.

Here, you can configure basic global settings such as email server settings, branding (including logo of your company), system settings (i.e. time and data format) and security options. All of those settings may be configured after the installation as well.

6. If everything was alright with data provided, installation will begin. It may take a while.

MintHCM - Installation - Installation in progress

7. After installation is completed, you will see the last screen. Among others, it provides information of total time of installation and memory use.

MintHCM - Installation - Finish

After clicking the finish button, the installation is complete and you can log in to your MintHCM instance as an administrator with the username and password you set up earlier.

Troubleshooting

Here you can find instructions on troubleshooting common errors that may occur during the installation process of MintHCM software. It includes solutions for errors such as permission errors, invalid database host/username/password, and missing config.php file.

If you can't find your problem below, check out our support forum here: https://minthcm.org/support/ You may also describe your problem and get help by sending an email to contact@minthcm.org

Permissions error

Permissions error

This may occur, when files permissions were not change before the installation. Check your file permissions in MintHCM installation files directory, if necessary run commends provided below and start installation again.

sudo chown -R www-data:www-data *
sudo chmod -R 755 *

or if this will not work, try:

sudo chown -R www-data:www-data .
sudo chmod -R 755 .

Database could not be established

"The provided database host, username, and/or password is invalid, and a connection to the database could not be established. Please enter a valid host, username and password"

Database configuration error

This error is most probably caused by invalid data provided by user, such as database host name or password. To solve this, double check your host, user name, password, etc. Also, check if your MintHCM Database user matches the actual user you can and want to use in this instance of MintHCM.

Config.php file is missing

MintHCM - Installation - Config.php error

This error may also be caused by file permission restrictions. Check the file permissions in the MintHCM installation files directory and restart the installation if necessary. You can also create config.php file manually.

To do so, just create config.php file in your MintHCM instance directory, paste the code form the installer and save the file. After that, you can go to your instance (i.e. through URL https://my-server-or-domain.com/my-minthcm-directory). The instance should be running and you should see basic configuration options after logging in.

Mentioned in other articles