Gentoo Archives: gentoo-user

From: Bill Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] apache and the -D parameter
Date: Mon, 20 Apr 2015 13:54:38
Message-Id: 5535050C.10807@iinet.net.au
In Reply to: Re: [gentoo-user] apache and the -D parameter by "J. Roeleveld"
1 On 20/04/15 21:21, J. Roeleveld wrote:
2 > On Monday, April 20, 2015 06:56:49 PM Bill Kenworthy wrote:
3 >> Hi,
4 >> I am trying to set up mod_wsgi and apache in an LXC container. apache
5 >> is ignoring all -D parameters on startup even though I can see them in
6 >> the startup script debug and they are being passed to apache according
7 >> to "ps aux".
8 >>
9 >> apache -M does not show the modules in the loaded list. If I remove the
10 >> "IfDefine" around the load command it works fine.
11 >>
12 >> I am thinking that its something about the container .... but what?
13 >>
14 >> BillK
15 >
16 > What's the full "ifDefine" line?
17 >
18 > What is your full APACHE2_OPTS line where you put the -D ?
19 >
20 > --
21 > Joost
22 >
23
24 standard gentoo VM on gentoo, with lxc-gentoo and stable apache and
25 mod_wsgi inside - its a new install for playing with radicale and wsgi
26
27 /etc/conf.d/apache2:
28 APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D
29 WSGI -D LANGUAGE -D SSL"
30
31 ps aux: several entries of
32 root 7549 0.0 0.0 145116 7916 ? Ss 05:05 0:00
33 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST
34 -D WSGI -D LANGUAGE -D SSL -d /usr/lib64/apache2 -f
35 /etc/apache2/httpd.conf -E /var/log/apache2/startuperror.log -k start
36
37 /etc/apache2/http.conf ** note I have to comment out the alias because
38 the module isnt found unless I comment out the IfDefine
39
40 <IfDefine WSGI>
41 LoadModule wsgi_module modules/mod_wsgi.so
42 </IfDefine>
43 WSGIScriptAlias / /var/www/localhost/htdocs/hello.wsgi
44
45
46 Note that there are no modules from IfDefine here - these are all
47 outside the blocks. If I comment the IfDefines out it loads the module
48 and it all works fine.
49
50 radicale radicale # apache2 -M
51 Loaded Modules:
52 core_module (static)
53 mpm_prefork_module (static)
54 http_module (static)
55 so_module (static)
56 actions_module (shared)
57 alias_module (shared)
58 auth_basic_module (shared)
59 authn_alias_module (shared)
60 authn_anon_module (shared)
61 authn_dbd_module (shared)
62 authn_dbm_module (shared)
63 authn_default_module (shared)
64 authn_file_module (shared)
65 authz_dbm_module (shared)
66 authz_default_module (shared)
67 authz_groupfile_module (shared)
68 authz_host_module (shared)
69 authz_owner_module (shared)
70 authz_user_module (shared)
71 autoindex_module (shared)
72 cgid_module (shared)
73 dbd_module (shared)
74 deflate_module (shared)
75 dir_module (shared)
76 env_module (shared)
77 expires_module (shared)
78 ext_filter_module (shared)
79 filter_module (shared)
80 headers_module (shared)
81 ident_module (shared)
82 imagemap_module (shared)
83 include_module (shared)
84 log_config_module (shared)
85 logio_module (shared)
86 mime_module (shared)
87 mime_magic_module (shared)
88 negotiation_module (shared)
89 rewrite_module (shared)
90 setenvif_module (shared)
91 speling_module (shared)
92 unique_id_module (shared)
93 usertrack_module (shared)
94 vhost_alias_module (shared)
95 Syntax OK
96 radicale radicale #

Replies

Subject Author
Re: [gentoo-user] apache and the -D parameter Michael Orlitzky <mjo@g.o>