pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pksrc/apache24 - No MPM loaded



Hi,

For the record, on my machine, apache-2.4.3nb1 from following command works
fine with "LoadModule mpm_event_module lib/httpd/mod_mpm_event.so" in
httpd.conf.

$ make PKG_OPTIONS.apache="apache-mpm-event apache-mpm-prefork 
apache-mpm-worker" install

And (inline comment)

From: Maurizio Caloro <mauric%gmx.ch@localhost>, Date: Wed, 05 Dec 2012 
06:55:21 +0100

> D530# cat /etc/mk.conf
> X11_TYPE=modular
> ALLOW_VULNERABLE_PACKAGES=yes
> ACCEPTABLE_LICENSES+= adobe-acrobat-license
> ACCEPTABLE_LICENSES+= citrix_ica-license
> ACCEPTABLE_LICENSES+= mplayer-codec-license
> ACCEPTABLE_LICENSES+= openmotif-license
> ACCEPTABLE_LICENSES+= libdvdcss-license
> ## export ICAROOT="/usr/pkg/lib/ICAClient"
> PKG_OPTIONS.apache+=apache-mpm-event
> PKG_OPTIONS.apache+=apache-mpm-worker
> PKG_OPTIONS.apache+=apache-mpm-prefork
> 
> D530# httpd -v
> Server version: Apache/2.4.3 (Unix)
> Server built:   Dec  5 2012 06:43:27
> 
> D530# make show-options
> [Snip]
> These options are currently enabled:
>         apache-mpm-event
>         apache-mpm-prefork
>         apache-mpm-worker
> 
> You can select which build options to use by setting PKG_DEFAULT_OPTIONS
> or PKG_OPTIONS.apache.
> 
> Am 05.12.2012 02:09, schrieb matthew sporleder:
>> Okay, it would appear that your apache24 package has no working mpm compiled!
>>
>> Can you rebuild it with prefork?
>>
>> On Tue, Dec 4, 2012 at 11:05 AM, Maurizio Caloro <mauric%gmx.ch@localhost> 
>> wrote:
>>> Hello and Thanks for Help
>>> regards
>>> Mauri
>>>
>>> # httpd -V
>>> AH00534: httpd: Configuration error: No MPM loaded.
>>>
>>> # httpd -v
>>> Server version: Apache/2.4.3 (Unix)
>>> Server built:   Dec  4 2012 16:50:20
>>>
>>> # httpd -l
>>> Compiled in modules:
>>>   core.c
>>>   mod_so.c
>>>   http_core.
>>>
>>> # cat /etc/mk.conf
>>> X11_TYPE=modular
>>> ALLOW_VULNERABLE_PACKAGES=yes
>>> ACCEPTABLE_LICENSES+= adobe-acrobat-license
>>> ACCEPTABLE_LICENSES+= citrix_ica-license
>>> ACCEPTABLE_LICENSES+= mplayer-codec-license
>>> ACCEPTABLE_LICENSES+= openmotif-license
>>> ACCEPTABLE_LICENSES+= libdvdcss-license
>>> PKG_OPTIONS.apache+=apache-mpm-event
>>>
>>> Cat httd.conf
>>> [Snip]
>>> #
>>> # Dynamic Shared Object (DSO) Support
>>> #
>>> # To be able to use the functionality of a module which was built as a DSO 
>>> you
>>> # have to place corresponding `LoadModule' lines at this location so the
>>> # directives contained in it are actually available _before_ they are used.
>>> # Please read the file http://httpd.apache.org/docs/dso.html for more
>>> # details about the DSO mechanism and run `httpd -l' for the list of already
>>> # built-in (statically linked and thus always available) modules in your 
>>> httpd
>>> # binary.
>>> #
>>> # Note: The order in which modules are loaded is important.  Don't change
>>> # the order below without expert advice.
>>> #
>>> # Example:
>>> # LoadModule foo_module lib/httpd/mod_foo.so
>>> # LoadModule mpm_event /usr/pkg/lib/httpd/mod_mpm_event.so
>>> # LoadModule mod_mpm_prefork /usr/pkg/lib/httpd/mod_mpm_prefork.so
>>> # LoadModule mod_mpm_worker  /usr/pkg/lib/httpd/mod_mpm_worker.so
>>>
>>> <IfDefine SSL>
>>>
>>> If Enabling LoadModule i have Error message if try to lunch httpd

It seems that your httpd.conf is not from apache24.
At least apache24's default httpd.conf has these lines or similar.
You should update httpd.conf with apache24's one?

>>> # httpd
>>> httpd: Syntax error on line 205 of /usr/pkg/etc/httpd/httpd.conf: Can't 
>>> locate API module structure `mpm_event' in file 
>>> /usr/pkg/lib/httpd/mod_mpm_event.so: Undefined symbol "mpm_event"
>>>
>>> # uname -rsa
>>> NetBSD D530.NetScreen 5.1.2 NetBSD 5.1.2 (GENERIC) #0: Thu Feb  2 17:22:10 
>>> UTC 2012  
>>> builds%b6.netbsd.org@localhost:/home/builds/ab/netbsd-5-1-2-RELEASE/i386/201202021012Z-obj/home/builds/ab/netbsd-5-1-2-RELEASE/src/sys/arch/i386/compile/GENERIC
>>>  i386
>>>
>>>
>>> -------- Original-Nachricht --------
>>>> Datum: Mon, 3 Dec 2012 19:44:36 -0500
>>>> Von: matthew sporleder <msporleder%gmail.com@localhost>
>>>>
>>>> Can we see the output of httpd -V ?
>>> # httpd -V
>>> AH00534: httpd: Configuration error: No MPM loaded.
>>>
>>>> Also, make show-options from pkgsrc/apache24 (assuming that is what
>>>> you built/installed)

--
Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3




Home | Main Index | Thread Index | Old Index