openSUSE Forums > Network/Internet » Apache2 /etc/apache2/mod_log_config error on line #11

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 2 of 3 1 2 3
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 11-May-2009, 05:53
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 31
SuseNeo hasn't been rated much yet
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

I used YAST to uninstall all the apache2 apps and then reinstalled them. When I went to System Services (Runlevel):Services and tried to ennable apache2, I got this message:
Quote:
/etc/init.d/apache 2 start returned 1 (unspecified error).
I then tried
Quote:
zypper ln -f apache2
This seemed to successfully download and install apache2-2.2.8-28.4.i586.
Then I got this:
Quote:
linux-pczd:~ # rcapache2 start
Module "include" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Module "log_config" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Module "status" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Starting httpd2 (prefork) Syntax error on line 11 of /etc/apache2/mod_log_config.conf:
Invalid command 'LogFormat', perhaps misspelled or defined by a module not included in the server configuration

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
And I'm still getting the same error when I try to enable apache2 at System Services (Runlevel).

And, yes, the APACHE_MODULES setting is one long line--at any rate when I adjust the width of gedit, the entry adjusts smoothly and doesn't show any hard returns. And there's only one un-commented line.

Thanks.
Reply With Quote
  #12 (permalink)  
Old 11-May-2009, 05:58
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,232
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

Those syntax errors "include", "log_config", etc, probably come from this area of /etc/apache2/httpd.conf:

Code:
# generated from APACHE_MODULES in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/loadmodule.conf

# IP addresses / ports to listen on
Include /etc/apache2/listen.conf

# predefined logging formats
Include /etc/apache2/mod_log_config.conf
loadmodule.conf is the one that's generated from /etc/sysconfig/apache2. Something must have gone wrong to cause a syntax error in loadmodule.conf. Have a look at it and see if you can correlate it to an error in /etc/sysconfig/apache2.
Reply With Quote
  #13 (permalink)  
Old 11-May-2009, 06:15
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 31
SuseNeo hasn't been rated much yet
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

Those three mods (include, log_config, status) are not included in the loadmodule.conf file.

Is there some other place besides APACHE_MODULES to look in apache2 to see if there's an error?

(Btw, when I used Yast to set up HTTP Server I got some kind of warning about Network Manager. Now when I go to HTTP Server I get a notice that certain files (apache2, default-server.conf, vhosts.d/yast2_vhosts.conf) have been "changed manually" and that "Yast might lose some of the changes." ??)
Reply With Quote
  #14 (permalink)  
Old 11-May-2009, 06:36
Knurpht's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: groningen, netherlands
Posts: 1,804
Knurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enoughKnurpht 's reputation will be famous soon enough
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

Did you configure apache from YAST? Seems like you installed and just tried to start the service. It needs configuring as well. Might be just some PATH statement you're missing.
Yast2 - Network Services - HTTP server
__________________
- AMD Athlon X2 6.0 GHz, 8 GB DDR2-800, 30 GB SSD, 1.5 TB, EVGA 9800GT, openSUSE 11.2 KDE4 4.3.3
- ASUS K70IO laptop, GT120M-1GB, 4 GB, 64 GB SSD, opensuse Factory, KDE4 4.3.3

R.E.S.T.E.C.P.
Reply With Quote
  #15 (permalink)  
Old 11-May-2009, 06:39
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,232
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

No, you misunderstand. The main config file httpd.conf includes loadmodule.conf, and then afterwards log_config.conf. If there is a syntax error in loadmodule.conf, that causes the parsing to get confused and affect the next few lines. That's why I asked you to look at (the generated) loadmodule.conf to see if there is anything visibly amiss. It should contain only lines of the form

Code:
LoadModule action_module
and so forth, and comment lines. If there is any garbage in there, it would be due to problems with sysconfig/apache2.
Reply With Quote
  #16 (permalink)  
Old 11-May-2009, 06:58
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 31
SuseNeo hasn't been rated much yet
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

Ken,
The only thing that appears "wrong" is the absence of the desired mods. (I assume that the paths on each line belong there, even tho you didn't mention them explicitly.)
Quote:
#
# Files in this directory are created at apache start time by /usr/sbin/rcapache2
# Do not edit them!
#

# as listed in APACHE_MODULES (/etc/sysconfig/apache2)

LoadModule suexec_module /usr/lib/apache2-prefork/mod_suexec.so
LoadModule authz_host_module /usr/lib/apache2-prefork/mod_authz_host.so
LoadModule actions_module /usr/lib/apache2-prefork/mod_actions.so
LoadModule alias_module /usr/lib/apache2-prefork/mod_alias.so
LoadModule auth_basic_module /usr/lib/apache2-prefork/mod_auth_basic.so
LoadModule authz_groupfile_module /usr/lib/apache2-prefork/mod_authz_groupfile.so
LoadModule authn_file_module /usr/lib/apache2-prefork/mod_authn_file.so
LoadModule authz_user_module /usr/lib/apache2-prefork/mod_authz_user.so
LoadModule authn_dbm_module /usr/lib/apache2-prefork/mod_authn_dbm.so
LoadModule autoindex_module /usr/lib/apache2-prefork/mod_autoindex.so
LoadModule cgi_module /usr/lib/apache2-prefork/mod_cgi.so
LoadModule dir_module /usr/lib/apache2-prefork/mod_dir.so
LoadModule env_module /usr/lib/apache2-prefork/mod_env.so
LoadModule expires_module /usr/lib/apache2-prefork/mod_expires.so
LoadModule mime_module /usr/lib/apache2-prefork/mod_mime.so
LoadModule negotiation_module /usr/lib/apache2-prefork/mod_negotiation.so
LoadModule setenvif_module /usr/lib/apache2-prefork/mod_setenvif.so
LoadModule userdir_module /usr/lib/apache2-prefork/mod_userdir.so
LoadModule asis_module /usr/lib/apache2-prefork/mod_asis.so
LoadModule imagemap_module /usr/lib/apache2-prefork/mod_imagemap.so
LoadModule ssl_module /usr/lib/apache2-prefork/mod_ssl.so
LoadModule php5_module /usr/lib/apache2/mod_php5.so
LoadModule authz_default_module /usr/lib/apache2-prefork/mod_authz_default.so
#


Thanks.
Reply With Quote
  #17 (permalink)  
Old 11-May-2009, 07:32
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,232
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

What's the modification time on loadmodule.conf? Is it around the time you started the apache2 service? I suspect it's not parsing sysconfig/apache2 at all, and not generating that file, which is why your modules are missing. Do this:

Code:
rpm -V apache2
That will check if there are any discrepancies between the contents of the package and what is on disk. (One or two changes are expected.) I'm thinking maybe some of your package files got corrupted and were not reinstalled.
Reply With Quote
  #18 (permalink)  
Old 11-May-2009, 07:45
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 31
SuseNeo hasn't been rated much yet
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

Ken,
I rebooted the computer and re-ran "rcapache2 start." Got the same errors about mods not being installed.

The modification time on loadmodule.conf looked right (8:30 EDT, 11 May).

The rpm -V gave this result;

Quote:
linux-pczd:~ # rpm -V apache2
S.5....T c /etc/apache2/default-server.conf
S.5....T c /etc/sysconfig/SuSEfirewall2.d/services/apache2
Thanks.
Reply With Quote
  #19 (permalink)  
Old 11-May-2009, 07:52
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,232
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

That's fine, those two changes are expected.

Are you on 32-bit arch? I hope you are not mixing 64 and 32 bit packages.

Somehow /etc/sysconfig/apache2 isn't having any effect, as you say your modules don't show up in loadmodule.conf. Rename or delete sysconfig/apache2 and then use YaST to reconfigure the set of modules. Before you do that, try:

Code:
diff /var/adm/fillup-templates/sysconfig.apache2 /etc/sysconfig/apache2
There should be only one line of significant difference.
Reply With Quote
  #20 (permalink)  
Old 11-May-2009, 08:04
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 31
SuseNeo hasn't been rated much yet
Default Re: Apache2 /etc/apache2/mod_log_config error on line #11

Ken,

No 64-bit programs that I'm aware of.

Here's the result from the diff command:
Quote:
linux-pczd:~ # diff /var/adm/fillup-templates/sysconfig.apache2 /etc/sysconfig/apache2
3d2
<
85c84
< APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"
---
> APACHE_MODULES="suexec authz_host actions alias auth_basic authz_groupfile authn_file authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif status userdir asis imagemap ssl php5 authz_default"
115c114
< APACHE_SERVER_FLAGS=""
---
> APACHE_SERVER_FLAGS="SSL"
281d279
Would I use the HTTP Server interface to reconfigure the modules?

Thanks
Reply With Quote
Reply
Page 2 of 3 1 2 3

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2