Of course, besides the package manager (apt), there are some differences between RHEL and Centreon:
Process start options
RHEL | Debian |
---|---|
/etc/sysconfig/{centreontrapd, gorgoned, snmpd, snmptrapd} | /etc/default/{centreontrapd, gorgoned, snmpd, snmptrapd} |
Apache logs
RHEL | Debian |
---|---|
/var/log/httpd/ (EL8) /var/log/httpd24/ (EL7) | /var/log/apache2/ |
Apache user
RHEL | Debian |
---|---|
apache | www-data |
Apache configuration
RHEL | Debian |
---|---|
/etc/httpd/conf.d/10-centreon.conf (EL8) /opt/rh/httpd24/root/etc/httpd/conf.d/10-centreon.conf (EL7) | /etc/apache2/sites-available/centreon.conf |
Securitization of Apache on Debian
Edit /etc/apache2/conf-enabled/security.conf file and add:
Header set X-Frame-Options: "sameorigin"
Header always edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure;SameSite=Strict
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
ServerSignature Off
ServerTokens Prod
TraceEnable Off
For RHEL 7/8, follow this chapter
PHP error logs
RHEL | Debian |
---|---|
/var/log/php-fpm/centreon-error.log | /var/log/apache2/error.log |