Bug 924591 - [yast2-http-server] Apache2 doesn't start with faulty config, prob from yast
[yast2-http-server] Apache2 doesn't start with faulty config, prob from yast
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: YaST2
201503*
armv7 Other
: P5 - None : Normal (vote)
: ---
Assigned To: YaST community YaST community
Jiri Srain
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-27 02:09 UTC by Volker Kuhlmann
Modified: 2022-03-14 02:29 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Kuhlmann 2015-03-27 02:09:50 UTC
Running yast http-server module, making basically no changes to get basic config. No vhosts, ssl, etc.

Btw a server name can't be entered, the value is going to /dev/null.

Starting apache gives:
Mar 27 14:37:35 cubie start_apache2[9361]: Module "authz_default" is not installed, ignoring.
Mar 27 14:37:35 cubie start_apache2[9361]: Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Mar 27 14:37:35 cubie start_apache2[9361]: AH00526: Syntax error on line 10 of /etc/apache2/mod_status.conf:
Mar 27 14:37:35 cubie start_apache2[9361]: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
Mar 27 14:37:36 cubie start_apache2[9378]: Module "authz_default" is not installed, ignoring.
Mar 27 14:37:36 cubie start_apache2[9378]: Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Mar 27 14:37:36 cubie start_apache2[9378]: AH00526: Syntax error on line 10 of /etc/apache2/mod_status.conf:
Mar 27 14:37:36 cubie start_apache2[9378]: Invalid command 'Require', perhaps misspelled or defined by a module not included in the server configuration
Mar 27 14:37:36 cubie systemd[1]: Failed to start The Apache Webserver.

In the yast http-server server-modules tab authz_default is listed with a description of "unknown", i.e. none. The module does not exist on disk!

Editing /etc/sysconfig/apache2 adding authz_core to APACHE_MODULES makes authz_core also be shown with a description of "unknown".

systemctl restart apache2
is now successful.

This bnc:835484#6 basically says yast http-server module is foobared, so it's probably best to uninstall it.
Comment 2 Volker Kuhlmann 2015-03-31 22:27:41 UTC
Same problem exists in oS 13.2 final.

/etc/sysconfig/apache2 contains:

## Type:	string
## Default:	"actions alias auth_basic authz_host authn_file authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"
...
APACHE_MODULES="...

There is no module authz_default! (I guess it should be authz_core.)

It appears that in some circumstances the string default can end up in APACHE_MODULES, with authz_core being missing, and the server won't start.

The module description in yast for both authn_core and authz_core is "unknown".
Comment 3 Volker Kuhlmann 2015-03-31 22:43:38 UTC
In factory, authn_core does not show up in the list of modules in yast. It's required for all authentication, and I don't believe I removed it manually anywhere.
yast2-http-server-3.1.6-2.2.noarch
apache2-2.4.12-2.1.armv7hl
Comment 4 Volker Kuhlmann 2015-04-01 06:28:08 UTC
OK root cause of the problem seems to be that apache modules authn_default, authz_default were renamed to authn_core, authz_core in apache 2.4 (or similar version).
Comment 6 Arvin Schnell 2015-06-30 13:17:36 UTC
Unfortunately the YaST team does not have the time to maintain the
yast2-http-server module. Contributions from the community are welcomed,
see http://yastgithubio.readthedocs.org/en/latest/yast_is_open/.
Comment 7 John Shand 2022-03-14 02:29:11 UTC
(In reply to Volker Kuhlmann from comment #0)
> Running yast http-server module, making basically no changes to get basic
> config. No vhosts, ssl, etc.
> 
> Btw a server name can't be entered, the value is going to /dev/null.
> 
> Starting apache gives:
> Mar 27 14:37:35 cubie start_apache2[9361]: Module "authz_default" is not
> installed, ignoring.
> Mar 27 14:37:35 cubie start_apache2[9361]: Check the APACHE_MODULES setting
> in /etc/sysconfig/apache2.
> Mar 27 14:37:35 cubie start_apache2[9361]: AH00526: Syntax error on line 10
> of /etc/apache2/mod_status.conf:
> Mar 27 14:37:35 cubie start_apache2[9361]: Invalid command 'Require',
> perhaps misspelled or defined by a module not included in the server
> configuration
> Mar 27 14:37:36 cubie start_apache2[9378]: Module "authz_default" is not
> installed, ignoring.
> Mar 27 14:37:36 cubie start_apache2[9378]: Check the APACHE_MODULES setting
> in /etc/sysconfig/apache2.
> Mar 27 14:37:36 cubie start_apache2[9378]: AH00526: Syntax error on line 10
> of /etc/apache2/mod_status.conf:
> Mar 27 14:37:36 cubie start_apache2[9378]: Invalid command 'Require',
> perhaps misspelled or defined by a module not included in the server
> configuration
> Mar 27 14:37:36 cubie systemd[1]: Failed to start The Apache Webserver.
> 
> In the yast http-server server-modules tab authz_default is listed with a
> description of "unknown", i.e. none. The module does not exist on disk!
> 
> Editing /etc/sysconfig/apache2 adding authz_core to APACHE_MODULES makes
> authz_core also be shown with a description of "unknown".
> 
> systemctl restart apache2
> is now successful.
> 
> This bnc:835484#6 basically says yast http-server module is foobared, so
> it's probably best to uninstall it.

this al happens with me and i'm using tumbleweed.  Here's the link to my error report, it will be similar:

https://bugzilla.opensuse.org/show_bug.cgi?id=1197058