Discussion:
Apache no-start error
(too old to reply)
bad sector
2014-02-01 05:22:21 UTC
Permalink
Apache start failure seem to point to this line in a conf file as
containing an error

"Include /etc/apache2/default-server.conf"

which exists, so I'm at a loss understanding its problem

any ideas







here are the commands & results


linux: # /usr/sbin/rcapache2 start
redirecting to systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service'
and 'journalctl -xn' for details.

--- OR ---

linux: # systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service'
and 'journalctl -xn' for details.
linux:/home/u3 #

same results:

linux:# systemctl status apache2.service
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled)
Active: failed (Result: exit-code) since Tue 2014-01-28 17:15:18
EST; 20s ago
Process: 31968 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD
-DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)
Process: 31947 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD
-DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 31947 (code=exited, status=1/FAILURE)


Jan 28 17:15:18 linux.site start_apache2[31947]: Module "authz_default"
is not installed, ignoring.
Jan 28 17:15:18 linux.site start_apache2[31947]: Check the
APACHE_MODULES setting in /etc/sysconfig/apache2.
Jan 28 17:15:18 linux.site start_apache2[31947]: httpd2-prefork: Syntax
error on line 179 of /etc/apache2/httpd.conf: S...
Jan 28 17:15:18 linux.site systemd[1]: apache2.service: main process
exited, code=exited, status=1/FAILURE
Jan 28 17:15:18 linux.site start_apache2[31968]: Module "authz_default"
is not installed, ignoring.
Jan 28 17:15:18 linux.site start_apache2[31968]: Check the
APACHE_MODULES setting in /etc/sysconfig/apache2.
Jan 28 17:15:18 linux.site start_apache2[31968]: httpd2-prefork: Syntax
error on line 179 of /etc/apache2/httpd.conf: S...
Jan 28 17:15:18 linux.site systemd[1]: apache2.service: control process
exited, code=exited status=1
Jan 28 17:15:18 linux.site systemd[1]: Failed to start The Apache Webserver.
Jan 28 17:15:18 linux.site systemd[1]: Unit apache2.service entered
failed state.
Hint: Some lines were ellipsized, use -l to show in full.





/etc/apache2/httpd.conf
=======================

168 ### 'Main' server configuration
#############################################
169 #
170 # The directives in this section set up the values used by the
'main'
171 # server, which responds to any requests that aren't handled by a
172 # <VirtualHost> definition. These values also provide defaults for
173 # any <VirtualHost> containers you may define later in the file.
174 #
175 # All of these directives may appear inside <VirtualHost>
containers,
176 # in which case these default settings will be overridden for the
177 # virtual host being defined.
178 #
179 Include /etc/apache2/default-server.conf
180
181
182 # Another way to include your own files
183 #
184 # The file below is generated from /etc/sysconfig/apache2,
185 # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
186 # APACHE_CONF_INCLUDE_DIRS
187 Include /etc/apache2/sysconfig.d/include.conf
188
189
190 ### Virtual server configuration
############################################
Luuk
2014-02-01 17:52:52 UTC
Permalink
Post by bad sector
Apache start failure seem to point to this line in a conf file as
containing an error
"Include /etc/apache2/default-server.conf"
which exists, so I'm at a loss understanding its problem
any ideas
here are the commands & results
linux: # /usr/sbin/rcapache2 start
redirecting to systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service'
and 'journalctl -xn' for details.
--- OR ---
linux: # systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service'
and 'journalctl -xn' for details.
linux:/home/u3 #
linux:# systemctl status apache2.service
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled)
Active: failed (Result: exit-code) since Tue 2014-01-28 17:15:18
EST; 20s ago
Process: 31968 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD
-DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)
Process: 31947 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD
-DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 31947 (code=exited, status=1/FAILURE)
Jan 28 17:15:18 linux.site start_apache2[31947]: Module "authz_default"
is not installed, ignoring.
Jan 28 17:15:18 linux.site start_apache2[31947]: Check the
APACHE_MODULES setting in /etc/sysconfig/apache2.
Jan 28 17:15:18 linux.site start_apache2[31947]: httpd2-prefork: Syntax
error on line 179 of /etc/apache2/httpd.conf: S...
Jan 28 17:15:18 linux.site systemd[1]: apache2.service: main process
exited, code=exited, status=1/FAILURE
Jan 28 17:15:18 linux.site start_apache2[31968]: Module "authz_default"
is not installed, ignoring.
Jan 28 17:15:18 linux.site start_apache2[31968]: Check the
APACHE_MODULES setting in /etc/sysconfig/apache2.
Jan 28 17:15:18 linux.site start_apache2[31968]: httpd2-prefork: Syntax
error on line 179 of /etc/apache2/httpd.conf: S...
Jan 28 17:15:18 linux.site systemd[1]: apache2.service: control process
exited, code=exited status=1
Jan 28 17:15:18 linux.site systemd[1]: Failed to start The Apache Webserver.
Jan 28 17:15:18 linux.site systemd[1]: Unit apache2.service entered
failed state.
Hint: Some lines were ellipsized, use -l to show in full.
/etc/apache2/httpd.conf
=======================
168 ### 'Main' server configuration
#############################################
169 #
170 # The directives in this section set up the values used by
the 'main'
171 # server, which responds to any requests that aren't handled
by a
172 # <VirtualHost> definition. These values also provide
defaults for
173 # any <VirtualHost> containers you may define later in the file.
174 #
175 # All of these directives may appear inside <VirtualHost>
containers,
176 # in which case these default settings will be overridden for
the
177 # virtual host being defined.
178 #
179 Include /etc/apache2/default-server.conf
180
181
182 # Another way to include your own files
183 #
184 # The file below is generated from /etc/sysconfig/apache2,
185 # include arbitrary files as named in
APACHE_CONF_INCLUDE_FILES and
186 # APACHE_CONF_INCLUDE_DIRS
187 Include /etc/apache2/sysconfig.d/include.conf
188
189
190 ### Virtual server configuration
############################################
What does 'apache2ctl -t ' say?
bad sector
2014-02-03 14:38:59 UTC
Permalink
Post by Luuk
Post by bad sector
Apache start failure seem to point to this line in a conf file as
containing an error
"Include /etc/apache2/default-server.conf"
which exists, so I'm at a loss understanding its problem
any ideas
here are the commands & results
linux: # /usr/sbin/rcapache2 start
redirecting to systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service'
and 'journalctl -xn' for details.
--- OR ---
linux: # systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service'
and 'journalctl -xn' for details.
linux:/home/u3 #
linux:# systemctl status apache2.service
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled)
Active: failed (Result: exit-code) since Tue 2014-01-28 17:15:18
EST; 20s ago
Process: 31968 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD
-DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)
Process: 31947 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD
-DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 31947 (code=exited, status=1/FAILURE)
Jan 28 17:15:18 linux.site start_apache2[31947]: Module "authz_default"
is not installed, ignoring.
Jan 28 17:15:18 linux.site start_apache2[31947]: Check the
APACHE_MODULES setting in /etc/sysconfig/apache2.
Jan 28 17:15:18 linux.site start_apache2[31947]: httpd2-prefork: Syntax
error on line 179 of /etc/apache2/httpd.conf: S...
Jan 28 17:15:18 linux.site systemd[1]: apache2.service: main process
exited, code=exited, status=1/FAILURE
Jan 28 17:15:18 linux.site start_apache2[31968]: Module "authz_default"
is not installed, ignoring.
Jan 28 17:15:18 linux.site start_apache2[31968]: Check the
APACHE_MODULES setting in /etc/sysconfig/apache2.
Jan 28 17:15:18 linux.site start_apache2[31968]: httpd2-prefork: Syntax
error on line 179 of /etc/apache2/httpd.conf: S...
Jan 28 17:15:18 linux.site systemd[1]: apache2.service: control process
exited, code=exited status=1
Jan 28 17:15:18 linux.site systemd[1]: Failed to start The Apache Webserver.
Jan 28 17:15:18 linux.site systemd[1]: Unit apache2.service entered
failed state.
Hint: Some lines were ellipsized, use -l to show in full.
/etc/apache2/httpd.conf
=======================
168 ### 'Main' server configuration
#############################################
169 #
170 # The directives in this section set up the values used by
the 'main'
171 # server, which responds to any requests that aren't handled
by a
172 # <VirtualHost> definition. These values also provide
defaults for
173 # any <VirtualHost> containers you may define later in the file.
174 #
175 # All of these directives may appear inside <VirtualHost>
containers,
176 # in which case these default settings will be overridden for
the
177 # virtual host being defined.
178 #
179 Include /etc/apache2/default-server.conf
180
181
182 # Another way to include your own files
183 #
184 # The file below is generated from /etc/sysconfig/apache2,
185 # include arbitrary files as named in
APACHE_CONF_INCLUDE_FILES and
186 # APACHE_CONF_INCLUDE_DIRS
187 Include /etc/apache2/sysconfig.d/include.conf
188
189
190 ### Virtual server configuration
############################################
What does 'apache2ctl -t ' say?
thanks for the response, I couldn't come back sooner :-)

it's a Suse-13.1/64 system btw, just being installed. I use it only as a
local server to test web pages

# apache2ctl -t

httpd2: Syntax error on line 179 of /etc/apache2/httpd.conf:
Syntax error on line 121 of /etc/apache2/defaultserver.conf:
Syntax error on line 1 of /etc/apache2/conf.d/mod_evasive.conf:
Cannot load /usr/lib64/apache2/mod_evasive20.so into server:
/usr/lib64/apache2/mod_evasive20.so:
cannot open shared object file: No such file or directory


/etc/apache2/httpd.conf:
========================
169 ### 'Main' server configuration
177 # in which case these default settings will be overridden for
178 # virtual host being defined.
179 #
180 Include /etc/apache2/default-server.conf


/etc/apache2/defaultserver.conf:
================================
119 # certain virtual host, but not here.
120 #
121 Include /etc/apache2/conf.d/*.conf


/etc/apache2/conf.d/mod_evasive.conf:
=====================================
No such file
Luuk
2014-02-08 12:03:12 UTC
Permalink
Post by bad sector
Post by Luuk
Post by bad sector
Apache start failure seem to point to this line in a conf file as
containing an error
"Include /etc/apache2/default-server.conf"
which exists, so I'm at a loss understanding its problem
any ideas
here are the commands & results
linux: # /usr/sbin/rcapache2 start
redirecting to systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service'
and 'journalctl -xn' for details.
--- OR ---
linux: # systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service'
and 'journalctl -xn' for details.
linux:/home/u3 #
linux:# systemctl status apache2.service
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled)
Active: failed (Result: exit-code) since Tue 2014-01-28 17:15:18
EST; 20s ago
Process: 31968 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD
-DFOREGROUND -k graceful-stop (code=exited, status=1/FAILURE)
Process: 31947 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD
-DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 31947 (code=exited, status=1/FAILURE)
Jan 28 17:15:18 linux.site start_apache2[31947]: Module "authz_default"
is not installed, ignoring.
Jan 28 17:15:18 linux.site start_apache2[31947]: Check the
APACHE_MODULES setting in /etc/sysconfig/apache2.
Jan 28 17:15:18 linux.site start_apache2[31947]: httpd2-prefork: Syntax
error on line 179 of /etc/apache2/httpd.conf: S...
Jan 28 17:15:18 linux.site systemd[1]: apache2.service: main process
exited, code=exited, status=1/FAILURE
Jan 28 17:15:18 linux.site start_apache2[31968]: Module "authz_default"
is not installed, ignoring.
Jan 28 17:15:18 linux.site start_apache2[31968]: Check the
APACHE_MODULES setting in /etc/sysconfig/apache2.
Jan 28 17:15:18 linux.site start_apache2[31968]: httpd2-prefork: Syntax
error on line 179 of /etc/apache2/httpd.conf: S...
Jan 28 17:15:18 linux.site systemd[1]: apache2.service: control process
exited, code=exited status=1
Jan 28 17:15:18 linux.site systemd[1]: Failed to start The Apache Webserver.
Jan 28 17:15:18 linux.site systemd[1]: Unit apache2.service entered
failed state.
Hint: Some lines were ellipsized, use -l to show in full.
/etc/apache2/httpd.conf
=======================
168 ### 'Main' server configuration
#############################################
169 #
170 # The directives in this section set up the values used by
the 'main'
171 # server, which responds to any requests that aren't handled
by a
172 # <VirtualHost> definition. These values also provide
defaults for
173 # any <VirtualHost> containers you may define later in the file.
174 #
175 # All of these directives may appear inside <VirtualHost>
containers,
176 # in which case these default settings will be overridden for
the
177 # virtual host being defined.
178 #
179 Include /etc/apache2/default-server.conf
180
181
182 # Another way to include your own files
183 #
184 # The file below is generated from /etc/sysconfig/apache2,
185 # include arbitrary files as named in
APACHE_CONF_INCLUDE_FILES and
186 # APACHE_CONF_INCLUDE_DIRS
187 Include /etc/apache2/sysconfig.d/include.conf
188
189
190 ### Virtual server configuration
############################################
What does 'apache2ctl -t ' say?
thanks for the response, I couldn't come back sooner :-)
it's a Suse-13.1/64 system btw, just being installed. I use it only as a
local server to test web pages
# apache2ctl -t
cannot open shared object file: No such file or directory
========================
169 ### 'Main' server configuration
177 # in which case these default settings will be overridden for
178 # virtual host being defined.
179 #
180 Include /etc/apache2/default-server.conf
================================
119 # certain virtual host, but not here.
120 #
121 Include /etc/apache2/conf.d/*.conf
=====================================
No such file
Is your apache-server chrooted?

http://www.modsecurity.org/documentation/apache-internal-chroot.html
bad sector
2014-02-08 18:11:12 UTC
Permalink
Post by Luuk
Is your apache-server chrooted?
I never lauched it
Post by Luuk
http://www.modsecurity.org/documentation/apache-internal-chroot.html
It's a brand new suse-13.1 installation and all my installations as well
as any updates are always done strictly off-line. Moreover since I only
use it as a local server apache runs only periodically, briefly and
off-line. Some kind of problem pops up almost each time changes are
incorporated, it's a royal PIA for people like me who don't get into
configuration that much. Usually there's some hint in logs but this time
var/logs/apache2 is completely empty.
Luuk
2014-02-08 20:04:41 UTC
Permalink
Post by bad sector
Post by Luuk
Is your apache-server chrooted?
I never lauched it
Post by Luuk
http://www.modsecurity.org/documentation/apache-internal-chroot.html
It's a brand new suse-13.1 installation and all my installations as well
as any updates are always done strictly off-line. Moreover since I only
use it as a local server apache runs only periodically, briefly and
off-line. Some kind of problem pops up almost each time changes are
incorporated, it's a royal PIA for people like me who don't get into
configuration that much. Usually there's some hint in logs but this time
var/logs/apache2 is completely empty.
maybe it's this bug:
https://bugzilla.novell.com/show_bug.cgi?id=838282

Because of these errrors:
Syntax error on line 1 of /etc/apache2/conf.d/mod_evasive.conf:
Cannot load /usr/lib64/apache2/mod_evasive20.so into server:
/usr/lib64/apache2/mod_evasive20.so:
I suggest to check if mod_evasive is installed:
rpm -V apache2-mod_evasive
bad sector
2014-02-08 22:14:01 UTC
Permalink
Post by Luuk
Post by bad sector
Post by Luuk
Is your apache-server chrooted?
I never lauched it
Post by Luuk
http://www.modsecurity.org/documentation/apache-internal-chroot.html
It's a brand new suse-13.1 installation and all my installations as well
as any updates are always done strictly off-line. Moreover since I only
use it as a local server apache runs only periodically, briefly and
off-line. Some kind of problem pops up almost each time changes are
incorporated, it's a royal PIA for people like me who don't get into
configuration that much. Usually there's some hint in logs but this time
var/logs/apache2 is completely empty.
https://bugzilla.novell.com/show_bug.cgi?id=838282
rpm -V apache2-mod_evasive
it was not installed so I installed it

complains about evasive_20 while the one that
exist now is evasive_24.so
renamed 20 to 24
...THAT problem went away (for now)
...don't know if that'll now cause other problems



imagemap (not installed) called in /etc/sysconfig/apache2
removed
...THAT problem went away (for now)
...why call it if it isn't installed or
even available for installation?


AH00526: Syntax error on line 15 of
/etc/apache2/conf.d/smpppd-web-apache2.conf:
Invalid command 'SetEnv', perhaps misspelled or defined by a module not
included in the server configuration

commented out
<IfModule mod_perl.c>
#SetEnv HTML_TEMPLATE_ROOT /srv/www/smpppd-web
AddHandler perl-script .pl
PerlResponseHandler ModPerl::Registry
</IfModule>

...THAT problem went away (for now)
...don't know if that'll now cause other problems


Atthis point apache starts but now I get none of my
perl scripted pages because of the conf file I modify
is using Options *incorrectly* (must now list all + or -)

<Directory "/srv/www/htdocs/user">
Options Indexes ExecCGI +Includes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

changed to 'Options +Includes'

...THAT problem went away (for now)
...don't know if that'll now cause other problems


anyway, thanks! It's working for what I want from it :-)

I don't see why these options lines have to be so convoluted, they
should simply say what *is wanted* and not what we want added or
subtracted especially in terms of what may or may not have been
ordered before or elsewhere. That's what the previous versions allowed I
guess.

Continue reading on narkive:
Loading...