Sticky

Differences between RHEL and Debian installation

  • 12 July 2022
  • 6 replies
  • 111 views

Userlevel 5
Badge +12

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

 


6 replies

Userlevel 1
Badge +7

# Enable HttpOnly / Secure flags and hide the Apache server signature

File: /etc/apache2/conf-enabled/security.conf

          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

Userlevel 1
Badge +7

 

 

Userlevel 5
Badge +12

Hi @coco163 these options should be the same for EL 7/8, isn’t it?

Userlevel 1
Badge +7

Not the same file

/etc/httpd/conf.d/10-centreon.conf

Userlevel 5
Badge +12

But I already mention it that Apache conf file are different

Userlevel 1
Badge +7

Certes, mais pas pour ce fichier

Reply