7023524: apache2 does not start after in place upgrade from SLES 11 SP4 to SLES 12 SP3

First issue:

webserver:/etc/apache2 # systemctl statusapache2.service

? apache2.service – The Apache Webserver

Loaded: loaded(/usr/lib/systemd/system/apache2.service; disabled; vendor preset:disabled)

Active: failed (Result: exit-code) since Thu2018-11-15 13:02:16 CET; 22s ago

Process: 3990 ExecStop=/usr/sbin/start_apache2 -DSYSTEMD-DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)

Process: 3981 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD-DFOREGROUND -k start (code=exited, status=1/FAILURE)

Main PID: 3981 (code=exited, status=1/FAILURE)

Nov 15 13:02:16 webserver systemd[1]: Starting The ApacheWebserver…

Nov 15 13:02:16 webserver start_apache2[3981]: httpd-prefork:Syntax error on line 204 of /etc/apache2/httpd.conf: Syntax erroron line 106 of /etc/apache2/default-server.c…f required)

Nov 15 13:02:16 webserver systemd[1]: apache2.service: Main processexited, code=exited, status=1/FAILURE

Nov 15 13:02:16 webserver start_apache2[3990]: httpd-prefork:Syntax error on line 204 of /etc/apache2/httpd.conf: Syntax erroron line 106 of /etc/apache2/default-server.c…f required)

Nov 15 13:02:16 webserver systemd[1]: apache2.service: Controlprocess exited, code=exited status=1

Nov 15 13:02:16 webserver systemd[1]: Failed to start The ApacheWebserver.

Nov 15 13:02:16 webserver systemd[1]: apache2.service: Unit enteredfailed state.

Nov 15 13:02:16 webserver systemd[1]: apache2.service: Failed withresult ‘exit-code’.

Hint: Some lines were ellipsized, use -l to show in full.

Which can be solved by editing /etc/apache2/default-server.conf andchange the line saying:

Include/etc/apache2/conf.d/apache2-manual?conf to IncludeOptional/etc/apache2/conf.d/apache2-manual?conf

See /etc/apache2/default-server.conf.rpmnewto compare with.


Second Issue:

When starting apache2 after the above change, the following issue maybe seen:

webserver:/etc/apache2 # systemctl statusapache2.service

? apache2.service – The Apache Webserver

Loaded: loaded(/usr/lib/systemd/system/apache2.service; disabled; vendor preset:disabled)

Active: failed (Result: exit-code) since Thu2018-11-15 13:03:50 CET; 2s ago

Process: 4017 ExecStop=/usr/sbin/start_apache2 -DSYSTEMD-DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)

Process: 4007 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD-DFOREGROUND -k start (code=exited, status=1/FAILURE)

Main PID: 4007 (code=exited, status=1/FAILURE)

Nov 15 13:03:50 webserver systemd[1]: Starting The ApacheWebserver…

Nov 15 13:03:50 webserver start_apache2[4007]: AH00526: Syntaxerror on line 28 of /etc/apache2/default-server.conf:

Nov 15 13:03:50 webserver start_apache2[4007]: Invalid command’Order’, perhaps misspelled or defined by a module not included inthe server configuration

Nov 15 13:03:50 webserver systemd[1]: apache2.service: Main processexited, code=exited, status=1/FAILURE

Nov 15 13:03:50 webserver start_apache2[4017]: AH00526: Syntaxerror on line 28 of /etc/apache2/default-server.conf:

Nov 15 13:03:50 webserver start_apache2[4017]: Invalid command’Order’, perhaps misspelled or defined by a module not included inthe server configuration

Nov 15 13:03:50 webserver systemd[1]: apache2.service: Controlprocess exited, code=exited status=1

Nov 15 13:03:50 webserver systemd[1]: Failed to start The ApacheWebserver.

Nov 15 13:03:50 webserver systemd[1]: apache2.service: Unit enteredfailed state.

Nov 15 13:03:50 webserver systemd[1]: apache2.service: Failed withresult ‘exit-code’.


The Second issue is described in https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12/saying:

8.3.4 Apache 2.4

With Apache 2.4, some changes have been introduced that affectApache’s access control scheme. Previously, the directives “Allow”,”Deny”, and “Order” have determined if access to a resource hasbeen granted with Apache 2.2.
With 2.4, these directives have been replaced by the “Require”directive.
For backwards compatibility of 2.2 configurations, the SUSELinux Enterprise Server 12 apache2 package understands bothschemes, Deny/Allow (apache 2.2) and Require (apache 2.4).

For more information on how to easily switch between the twoschemes, see the file /usr/share/doc/packages/apache2/README-access_compat.txt.

From /usr/share/doc/packages/apache2/README-access_compat.txtit says that running “a2enmodaccess_compat” is the solution.

After running a2enmod access_compatapache does start.

webserver:/etc/apache2 # systemctl statusapache2.service

? apache2.service – The Apache Webserver

Loaded: loaded(/usr/lib/systemd/system/apache2.service; disabled; vendor preset:disabled)

Active: active (running) since Thu 2018-11-15 13:04:21CET; 1s ago

Process: 4017 ExecStop=/usr/sbin/start_apache2 -DSYSTEMD-DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)

Main PID: 4041 (httpd-prefork)

Status: “Processing requests…”

Tasks: 6

CGroup: /system.slice/apache2.service

+-4041/usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid-C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include/etc/apache2/sysconfig.d//global.conf -…

+-4050/usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid-C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include/etc/apache2/sysconfig.d//global.conf -…

+-4051/usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid-C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include/etc/apache2/sysconfig.d//global.conf -…

+-4052/usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid-C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include/etc/apache2/sysconfig.d//global.conf -…

+-4053/usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid-C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include/etc/apache2/sysconfig.d//global.conf -…

+-4054/usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid-C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include/etc/apache2/sysconfig.d//global.conf -…

Nov 15 13:04:21 webserver systemd[1]: Starting The ApacheWebserver…

Nov 15 13:04:21 webserver systemd[1]: Started The ApacheWebserver.

Related:

  • No Related Posts

Leave a Reply