[opensuse] who is supposed to define SYSCONFIG when starting apache2?
This morning I was renewing some certificates on a customer webserver running Leap421. As usual this requires a restart - which suddenly failed due to configuration issues. It seems some modules were not loaded - proxy, proxy_http, filter - weird, the config hasn't been changed for months. After some debugging I found this in /etc/apache2/httpd.conf: # generated from default value of APACHE_MODULES # in /etc/sysconfig/apache2 <IfDefine !SYSCONFIG> Include /etc/apache2/loadmodule.conf </IfDefine> And the previous line: # generated from APACHE_MODULES in /etc/sysconfig/apache2 Include /etc/apache2/sysconfig.d/loadmodule.conf is just gone. I know Leap421 is no longer under maintenance, but this is a bit silly. Wasn't this tested at all? BTW, it seems to be the same in Leap423. -- Per Jessen, Zürich (24.8°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
This morning I was renewing some certificates on a customer webserver running Leap421. As usual this requires a restart - which suddenly failed due to configuration issues. It seems some modules were not loaded - proxy, proxy_http, filter - weird, the config hasn't been changed for months. After some debugging I found this in /etc/apache2/httpd.conf:
# generated from default value of APACHE_MODULES # in /etc/sysconfig/apache2 <IfDefine !SYSCONFIG> Include /etc/apache2/loadmodule.conf </IfDefine>
And the previous line:
# generated from APACHE_MODULES in /etc/sysconfig/apache2 Include /etc/apache2/sysconfig.d/loadmodule.conf
is just gone.
Okay, I get to answer $SUBJ myself - SYSCONFIG is being defined in start_apache2. So far so good. I still don't see where /etc/apache2/sysconfig.d/loadmodule.conf is loaded? Does that happen via the command line with "-C Include /etc/apache2/sysconfig.d/" ? as for my initial problem, somehow modules were not being loaded, that's a fact. "proxypass" and "filter" for instance. It turns out it was really due to a poor SSL config, but how that could mean some modules weren't loaded, I don't understand. Oh well. -- Per Jessen, Zürich (26.1°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 22.06.2017 10:41, Per Jessen wrote:
Per Jessen wrote: Okay, I get to answer $SUBJ myself - SYSCONFIG is being defined in start_apache2. So far so good. I still don't see where /etc/apache2/sysconfig.d/loadmodule.conf is loaded? Does that happen via the command line with "-C Include /etc/apache2/sysconfig.d/" ?
Yes Btw.: Reading the Opensuse Apache manual may help to understand how to configure apache in suse environments: https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.ref...
Florian Gleixner wrote:
On 22.06.2017 10:41, Per Jessen wrote:
Per Jessen wrote: Okay, I get to answer $SUBJ myself - SYSCONFIG is being defined in start_apache2. So far so good. I still don't see where /etc/apache2/sysconfig.d/loadmodule.conf is loaded? Does that happen via the command line with "-C Include /etc/apache2/sysconfig.d/" ?
Yes
Btw.: Reading the Opensuse Apache manual may help to understand how to configure apache in suse environments:
Oh, I've been doing that for ten years or more, but that trick with "-C Include /etc/apache2/sysconfig.d/" on the command line is new. -- Per Jessen, Zürich (30.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Florian Gleixner
-
Per Jessen