**I took the following steps but Apache Webserver did not run at all.
A:**
peace:/var/log/apache2 # zypper in yast2-http-server
Retrieving repository ‘openSUSE-Leap-42.1-Update’ metadata …[done]
Building repository ‘openSUSE-Leap-42.1-Update’ cache …[done]
Loading repository data…
Reading installed packages…
‘yast2-http-server’ is already installed.
No update candidate for ‘yast2-http-server-3.1.6-5.7.noarch’. The highest available version is already installed.
Resolving package dependencies…
Nothing to do.
B:
peace:/var/log/apache2 # zypper in -f apache2
Loading repository data…
Reading installed packages…
Forcing installation of ‘apache2-2.4.16-9.1.x86_64’ from repository ‘openSUSE-Leap-42.1-Update’.
Resolving package dependencies…
The following package is going to be reinstalled:
apache2
1 package to reinstall.
Overall download size: 1.0 MiB. Already cached: 0 B. No additional space will be used or freed after the operation.
Continue? [y/n/? shows all options] (y): y
Retrieving package apache2-2.4.16-9.1.x86_64 (1/1), 1.0 MiB ( 3.6 MiB unpacked)
Retrieving: apache2-2.4.16-9.1.x86_64.rpm …[done (528.4 KiB/s)]
Checking for file conflicts: …[done]
(1/1) Installing: apache2-2.4.16-9.1 …[done]
Additional rpm output:
/usr/sbin/suexec: cannot verify root:root 0755 - not listed in /etc/permissions
Updating /etc/sysconfig/apache2…
C:
peace:/var/log/apache2 # systemctl start apache2
Job for apache2.service failed. See “systemctl status apache2.service” and “journalctl -xn” for details.
D:
peace:/var/log/apache2 # journalctl -n 100
Feb 25 09:09:03 peace start_apache2[4982]: AH00526: Syntax error on line 15 of /etc/apache2/conf.d/nagios.conf:
Feb 25 09:09:03 peace start_apache2[4982]: Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration
Feb 25 09:09:03 peace start_apache2[4987]: AH00526: Syntax error on line 15 of /etc/apache2/conf.d/nagios.conf:
Feb 25 09:09:03 peace start_apache2[4987]: Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration
Fe
F:
peace:/var/log/apache2 # systemctl status apache2
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
Active: failed (Result: exit-code) since Thu 2016-02-25 09:14:41 AEDT; 5min ago
Process: 6389 ExecStop=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)
Process: 6384 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 6384 (code=exited, status=1/FAILURE)
Feb 25 09:14:41 peace start_apache2[6384]: AH00526: Syntax error on line 15 of /etc/apache2/conf.d/nagios.conf:
Feb 25 09:14:41 peace start_apache2[6384]: Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration
Feb 25 09:14:41 peace start_apache2[6389]: AH00526: Syntax error on line 15 of /etc/apache2/conf.d/nagios.conf:
Feb 25 09:14:41 peace start_apache2[6389]: Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration
peace:/var/log/apache2 #
G:
The content of the file /etc/apache2/conf.d/nagios.conf is as follows.
SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
Last Modified: 11-26-2005
This file contains examples of entries that need
to be incorporated into your Apache web server
configuration file. Customize the paths, etc. as
needed to fit your system.
ScriptAlias /nagios/cgi-bin “/usr/lib/nagios/cgi”
<Directory “/usr/lib/nagios/cgi”>
SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
Order deny,allow
Deny from all
Allow from 127.0.0.1
AuthName “Nagios Access”
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>
Alias /nagios “/usr/share/nagios”
<Directory “/usr/share/nagios”>
SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
Order deny,allow
Deny from all
Allow from 127.0.0.1
AuthName “Nagios Access”
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
<IfDefine KOHANA2>
DirectoryIndex index.html index.php
</IfDefine>
</Directory>