Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Apache module loading problem after upgrade to 2.2.9
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
TranceTip
n00b
n00b


Joined: 08 Mar 2005
Posts: 46

PostPosted: Thu Jun 19, 2008 2:50 am    Post subject: [SOLVED]Apache module loading problem after upgrade to 2.2.9 Reply with quote

Hi,

I've upgraded vom Apache 2.0.58 to 2.2.9 and am now having the following problem:

Even though I set some Apache defines in /etc/conf.d/apache, the corresponding modules are not loaded (but they were included in APACHE2_MODULES in /etc/make.conf at compile time, of course, and they exist on disk).

For example, my httpd.conf includes

Code:
<IfDefine INFO>
LoadModule info_module modules/mod_info.so
</IfDefine>


Even though INFO is defined (-D INFO), the module is not loaded (seen with apache2 -D DUMP_MODULES).

Now, if I load the module explicitly again without any condition like this:

Code:
LoadModule info_module modules/mod_info.so
<IfDefine INFO>
LoadModule info_module modules/mod_info.so
</IfDefine>


Apache issues the following warning:

Code:
Thu Jun 19 09:47:33 2008] [warn] module info_module is already loaded, skipping


And now, the module is actually loaded (seen with apache2 -D DUMP_MODULES) and works. It seems like I have to load a module twice to make it working (same with PROXY modules, SSL, ...). This looks like a bug to me. Anyone else experiencing this? Would it be better to downgrade to Apache 2.2.8?


Last edited by TranceTip on Thu Jun 19, 2008 3:56 am; edited 4 times in total
Back to top
View user's profile Send private message
TranceTip
n00b
n00b


Joined: 08 Mar 2005
Posts: 46

PostPosted: Thu Jun 19, 2008 3:05 am    Post subject: Reply with quote

I just checked: with Apache 2.2.8 I'm facing the same problem as with 2.2.9.
Back to top
View user's profile Send private message
TranceTip
n00b
n00b


Joined: 08 Mar 2005
Posts: 46

PostPosted: Thu Jun 19, 2008 3:55 am    Post subject: Reply with quote

Sorry, for testing the loaded modules I forgot to add the -D flags (I thought the running instance would be used; instead, the config is loaded again and the flags must therefore be set on the command line). It should have been

Code:
apache2 -t -D DUMP_MODULES -D SSL -D DEFAULT_VHOST -D SSL_DEFAULT_VHOST -D PROXY -D PHP5 -D USERDIR -D JK


So I guess the problem is gone now. 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum