On 30/10/2020 23.04, Dave Howorth wrote:
On Fri, 30 Oct 2020 22:45:38 +0100 "Carlos E. R." <> wrote:
Hi,
My apache2 does not start (Leap 15.2). I get:
In fact, it has been failing since August, but today I need Apache to run. <3.3> 2020-08-11T02:05:56.722994+02:00 Telcontar systemd 1 - - Failed to start The Apache Webserver. <3.4> 2020-08-11T02:05:56.725633+02:00 Telcontar systemd 1 - - apache2.service: Failed with result 'exit-code'.
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> Oct 30 22:25:47 Telcontar systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE Oct 30 22:25:47 Telcontar systemd[1]: Failed to start The Apache Webserver. Oct 30 22:25:47 Telcontar systemd[1]: apache2.service: Unit entered failed state. Oct 30 22:25:47 Telcontar systemd[1]: apache2.service: Failed with result 'exit-code'.
I understand it flags an error in file "/etc/apache2/conf.d/cacti.conf", which is a distribution file.
It flagged an error on line 15 of cacti.conf, whatever that is.
What you posted doesn't have 15 lines so isn't the whole file and may or may not contain the error.
Previous lines are all comments. Telcontar:~ # zypper install cacti ... Checking for file conflicts: ..............................................................................................................................................................................[done] (1/1) Installing: cacti-1.2.14-lp151.3.15.1.noarch ........................................................................................................................................................[done] Telcontar:~ # cat /etc/apache2/conf.d/cacti.conf # Example configuration for a cacti repository # # ::As default server:: # Put the string CACTI in /etc/sysconfig/apache2 APACHE_SERVER_FLAGS # to enable the URL http://localhost/cacti # # ::As Virtual Host:: # If you want to use cacti in one Virtual Host, add # Include /etc/apache2/vhosts.d/conf.d/cacti.conf # to the vhost in the vhost.conf file # Put the string CACTIVHOST in /etc/sysconfig/apache2 # APACHE_SERVER_FLAGS to enable the URL http://vhost/cacti # <IfDefine CACTI> <IfModule mod_alias.c> Alias /cacti /srv/www/cacti </IfModule>
You didn't supply a link to the source of the file so I can't check what you wrote.
What source file? I don't have any source file, I just installed the binary rpm months or years ago, I forget why. Then one day this August it failed. It was: Telcontar:~ # rpm -q cacti cacti-1.2.14-lp151.3.15.1.noarch Telcontar:~ #
(if you already posted a bug, what is the number?)
What's the point? 15.1 is almost EOL.
i.e. why did you post this message?
Because maybe someone knows what to change.
<IfDefine CACTI> <================= This is line 15. <IfModule mod_alias.c> Alias /cacti /srv/www/cacti </IfModule>
<Directory /srv/www/cacti>
For the moment, I'm uninstalling cacti. Apache runs again.
-- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)