On 31/10/2020 21.06, Andrei Borzenkov wrote:
31.10.2020 21:49, Carlos E. R. пишет:
On 31/10/2020 14.18, Andrei Borzenkov wrote:
31.10.2020 13:35, Carlos E. R. пишет:
On 31/10/2020 07.44, Andrei Borzenkov wrote:
31.10.2020 00:45, Carlos E. R. пишет:
Hi,
My apache2 does not start (Leap 15.2). I get:
Telcontar:~ # systemctl status apache2
● apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2020-10-30 22:25:47 CET; 4s ago Process: 29503 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE) Main PID: 29503 (code=exited, status=1/FAILURE)
Oct 30 22:25:47 Telcontar systemd[1]: Starting The Apache Webserver... Oct 30 22:25:47 Telcontar start_apache2[29503]: httpd-prefork: Syntax error on line 210 of /etc/apache2/httpd.conf: Syntax error on line 119 of /etc/apache2/default-server.conf: Syntax error on line 15 of /etc/apache2/conf.d/cacti.conf: Expected </DirectoryMatch> but saw </Directory>
...
elcontar:~ # grep -ri DirectoryMatch /etc/apache2 /etc/apache2/conf.d/cacti.conf: <DirectoryMatch ^/srv/www/cacti/(docs|images|include|install)> /etc/apache2/vhosts.d/conf.d/cacti.conf: <DirectoryMatch ^/srv/www/cacti/(docs|images|include|install)> Telcontar:~ #
I did not touch those files:
Telcontar:~ # rpm -qV cacti Telcontar:~ #
I do not know why apache emits this strange line number, but default cacti config contains error:
<DirectoryMatch ^__CACTIDIR__/(docs|images|include|install)> Require all granted <Files config.php> Require all denied </Files> </Directory>
<DirectoryMatch> must be closed by </DirectoryMatch>, not </Directory>.
Open bug report against cacti.
It already exist for leap 15.2: https://bugzilla.opensuse.org/show_bug.cgi?id=1175314 adding comment to it. Was reported on august, at the time my apache also failed to start. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)