In this article we explain in just a few steps which packages need to be installed and configured.
The general system requirements apply.
This article refers to RHEL in Version 7.x. In order to find out which version is used you can carry out the following command:
As system architecture you should use a x86 in 64bit:
x86_64 means 64bit,
i686 only 32bit.
There are other operating systems which are closely related to RHEL, for example Fedora, which is maintained by Red Hat, and CentOS. But only RHEL is supported officially.
Installation of the Packages
The following packages are to be installed on a constantly updated system:
- the Apache web server 2.4
- the script language PHP 7.4
- the database management system MariaDB 10.5 and
- the caching server memcached
However, in the latest version 7.x RHEL only has outdated packages, which do not comply with the system requirements. For this reason, it is required to install current packages via further repositories.
But be careful as third-repositories could endanger the stability of the operating system!
For a start, the first packages are installed from the default repositories:
The REMI Repository repository is recommended for PHP as it is very popular in the community and kept up to date on a regular basis. If you don't want to risk the Red Hat warranty, you can use EPEL (Extra Packages for Enterprise Linux) as an alternative, this is also pointed out in the Red Hat KB. In this article we show how it works via REMI Repository and install PHP 7.4:
Afterwards, the installation of the PHP packages is carried out:
RHEL provides only outdated distribution packages for MariaDB. Therefore we refer to the official third-repository of MariaDB:
This file has the following contents:
Afterwards, the packages are installed:
In order to start Apache Webserver and MariaDB during the boot process, the following commands are necessary:
Then both services are started:
The HTTP default port 80 is authorized via the firewall. The firewall has to be restarted after the adjustments have been carried out:
The installed packages for Apache web server, PHP and MariaDB already supply configuration files. It is recommended to save changed settings in separate files instead of adjusting the already existing configuration files. Otherwise, any differences to the existing files would be pointed out or even overwritten during each package upgrade. The settings of the default configuration are supplemented or overwritten by user-defined settings.
First of all, a new file is created and filled with the required settings:
This file has the following contents:
The value (in seconds) of
session.gc_maxlifetime should be the same or greater than the
Session Timeout in the system settings of i-doit.
date.timezone parameter should be adjusted to the local time zone (see List of supported time zones).
Afterwards, the Apache web server is restarted:
The default VHost is maintained and complemented. For this purpose, a new file is created and adjusted:
The supplementary file is stored in this file:
i-doit includes differing Apache settings in files with the name
.htaccess. The setting
AllowOverride All is required so that these settings are taken into account.
With the next step you restart the Apache web server:
SELinux has to grant read and write permissions for Apache in the future i-doit installation directory:
Only a few steps are necessary to guarantee that MariaDB provides a good performance and safe operation. However, you should pay meticulous attention to details and carry out these steps precisely. This starts with a secure installation and you should follow the recommendations accordingly. The
root user should receive a secure password:
Activate the MariaDB shell so that i-doit is enabled to apply the
root user during setup:
The following SQL statements are now carried out in the MariaDB shell:
Afterwards, MariaDB is stopped. Now it is important to move files which are not required, otherwise the result would be a significant loss of performance:
A new file is created for the deviating settings:
This file contains the new configuration settings. For an optimal performance you should adapt these settings to the (virtual) hardware:
Finally, MariaDB is started:
Now the operating system is prepared and i-doit can be installed.
Proceed with Setup …