Skip to main content

Bonjour euh je fait mes premiers pas dans Centreon.

j’ai installer Centreon 21.10 sur centOs7 mais j’ai des soucis avec mes configurations.

je ne sais pas si c’est possible de le demander ici mais je tente quand même.

Lorsque j’éssaie de rédémarrer mon server ce message s’affiche:


Job for httpd24-httpd.service failed because the control process exited with error code. See "systemctl status httpd24-httpd.service" and "journalctl -xe" for details.

 

merci de bien vouloir m’aider svp

Hello @Madi,

What is the content of the file /etc/httpd/conf.d/10-centreon.conf ?
Also, could you post the result of the following command ?

systemctl status httpd24-httpd -l

 

 


Bonjour j’espère que vous vous portez bien

 

● httpd24-httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd24-httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since ven. 2021-12-24 01:07:24 GMT; 2h 3min ago
  Process: 26440 ExecStart=/opt/rh/httpd24/root/usr/sbin/httpd-scl-wrapper $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 26440 (code=exited, status=1/FAILURE)
   Status: "Reading configuration..."

déc. 24 01:07:24 192.168.11.106 systemd.1]: Starting The Apache HTTP Server...
déc. 24 01:07:24 192.168.11.106 httpd-scl-wrappert26440]: AH00526: Syntax error on line 46 of /opt/rh/httpd24/root/etc/httpd/conf.d/10-centreon.conf:
déc. 24 01:07:24 192.168.11.106 httpd-scl-wrapperh26440]: SSLCertificateFile: file '/etc/pki/tls/certs/ca.crt' does not exist or is empty
déc. 24 01:07:24 192.168.11.106 systemd11]: httpd24-httpd.service: main process exited, code=exited, status=1/FAILURE
déc. 24 01:07:24 192.168.11.106 systemd.1]: Failed to start The Apache HTTP Server.
déc. 24 01:07:24 192.168.11.106 systemd21]: Unit httpd24-httpd.service entered failed state.
déc. 24 01:07:24 192.168.11.106 systemd91]: httpd24-httpd.service failed.
 


 

le contenu du fichier /opt/rh/httpd24/root/etc/httpd/conf.d/10-centreon.conf


# Section added by Centreon Install Setup
#
Header set X-Frame-Options: "sameorigin"
Header always edit Set-Cookie ^(.*)$ $1;HttpOnly
ServerSignature Off
ServerTokens Prod
TraceEnable Off


Header set X-Frame-Options: "sameorigin"
Header always edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure
ServerSignature Off
ServerTokens Prod
TraceEnable Off


Alias /centreon/api /usr/share/centreon
Alias /centreon /usr/share/centreon/www/

<LocationMatch ^/centreon/(?!api/latest/|api/beta/|api/vv0-9]+/|api/vv0-9]+\..0-9]+/)(.*\.php(/.*)?)$>
    ProxyPassMatch fcgi://127.0.0.1:9042/usr/share/centreon/www/$1
</LocationMatch>

<LocationMatch ^/centreon/api/(latest/|beta/|v/0-9]+/|v/0-9]+\.+0-9]+/)(.*)$>
    ProxyPassMatch fcgi://127.0.0.1:9042/usr/share/centreon/api/index.php/$1
</LocationMatch>

ProxyTimeout 300

<VirtualHost *:80>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

<VirtualHost *:443>
#####################
# SSL configuration #
#####################
    SSLEngine On
    SSLProtocol All -SSLv3 -SSLv2 -TLSv1 -TLSv1.1
    SSLCipherSuite ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-DSS-AES256-GCM-SHA384:DHE-DSS-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-GCM-SHA256:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ADH:!IDEA
    SSLHonorCipherOrder On
    SSLCompression Off
    SSLCertificateFile /etc/pki/tls/certs/ca.crt
    SSLCertificateKeyFile /etc/pki/tls/private/ca.key

    <IfModule mod_security2.c>
        # https://github.com/SpiderLabs/ModSecurity/issues/652
        SecRuleRemoveById 200003
    </IfModule>

    <Directory "/usr/share/centreon/www">
        DirectoryIndex index.php
        Options Indexes
        AllowOverride all
        Order allow,deny
        Allow from all
        Require all granted
        <IfModule mod_php5.c>
            php_admin_value engine Off
        </IfModule>

        FallbackResource /centreon/index.html

        AddType text/plain hbs
    </Directory>

    <Directory "/usr/share/centreon/api">
        Options Indexes
        AllowOverride all
        Order allow,deny
        Allow from all
        Require all granted
        <IfModule mod_php5.c>
            php_admin_value engine Off
        </IfModule>

        AddType text/plain hbs
    </Directory>
</VirtualHost>

RedirectMatch ^/$ /centreon
 


Seems like an SSL config error. Have you checked this procedure? https://docs.centreon.com/20.10/en/administration/secure-platform.html#enable-https-on-the-web-server


Oui en effet et j’ai pu régler mon problème.

Merci beaucoup


Reply