* 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>
line 119 of default-server.conf contains IncludeOptional /etc/apache2/conf.d/*.conf so it is possible that error is triggered by some other file in this directory that is included before cacti.conf.
What ordering does it use?
Cacti is the first one listed by "ls":
Telcontar:~ # l /etc/apache2/conf.d/*.conf -rw-r--r-- 1 root root 2105 Aug 4 17:23 /etc/apache2/conf.d/cacti.conf -rw-r--r-- 1 root root 361 May 19 14:06 /etc/apache2/conf.d/gitweb.conf -rw-r--r-- 1 root root 1940 Apr 11 2017 /etc/apache2/conf.d/local.conf -rw-r--r-- 1 root root 793 Aug 26 18:06 /etc/apache2/conf.d/manual.conf -rw-r--r-- 1 root root 354 Sep 2 16:20 /etc/apache2/conf.d/php7.conf Telcontar:~ #
but you are calling the command with a sort enabled via an alias what displays when you use: ls -fla /etc/apache2/conf.d/*.conf "context" is everything. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org