* [gentoo-user] apache and the -D parameter
@ 2015-04-20 10:56 Bill Kenworthy
2015-04-20 13:21 ` J. Roeleveld
0 siblings, 1 reply; 6+ messages in thread
From: Bill Kenworthy @ 2015-04-20 10:56 UTC (permalink / raw
To: gentoo-user
Hi,
I am trying to set up mod_wsgi and apache in an LXC container. apache
is ignoring all -D parameters on startup even though I can see them in
the startup script debug and they are being passed to apache according
to "ps aux".
apache -M does not show the modules in the loaded list. If I remove the
"IfDefine" around the load command it works fine.
I am thinking that its something about the container .... but what?
BillK
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] apache and the -D parameter
2015-04-20 10:56 [gentoo-user] apache and the -D parameter Bill Kenworthy
@ 2015-04-20 13:21 ` J. Roeleveld
2015-04-20 13:54 ` Bill Kenworthy
0 siblings, 1 reply; 6+ messages in thread
From: J. Roeleveld @ 2015-04-20 13:21 UTC (permalink / raw
To: gentoo-user
On Monday, April 20, 2015 06:56:49 PM Bill Kenworthy wrote:
> Hi,
> I am trying to set up mod_wsgi and apache in an LXC container. apache
> is ignoring all -D parameters on startup even though I can see them in
> the startup script debug and they are being passed to apache according
> to "ps aux".
>
> apache -M does not show the modules in the loaded list. If I remove the
> "IfDefine" around the load command it works fine.
>
> I am thinking that its something about the container .... but what?
>
> BillK
What's the full "ifDefine" line?
What is your full APACHE2_OPTS line where you put the -D ?
--
Joost
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] apache and the -D parameter
2015-04-20 13:21 ` J. Roeleveld
@ 2015-04-20 13:54 ` Bill Kenworthy
2015-04-20 20:15 ` Michael Orlitzky
0 siblings, 1 reply; 6+ messages in thread
From: Bill Kenworthy @ 2015-04-20 13:54 UTC (permalink / raw
To: gentoo-user
On 20/04/15 21:21, J. Roeleveld wrote:
> On Monday, April 20, 2015 06:56:49 PM Bill Kenworthy wrote:
>> Hi,
>> I am trying to set up mod_wsgi and apache in an LXC container. apache
>> is ignoring all -D parameters on startup even though I can see them in
>> the startup script debug and they are being passed to apache according
>> to "ps aux".
>>
>> apache -M does not show the modules in the loaded list. If I remove the
>> "IfDefine" around the load command it works fine.
>>
>> I am thinking that its something about the container .... but what?
>>
>> BillK
>
> What's the full "ifDefine" line?
>
> What is your full APACHE2_OPTS line where you put the -D ?
>
> --
> Joost
>
standard gentoo VM on gentoo, with lxc-gentoo and stable apache and
mod_wsgi inside - its a new install for playing with radicale and wsgi
/etc/conf.d/apache2:
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D
WSGI -D LANGUAGE -D SSL"
ps aux: several entries of
root 7549 0.0 0.0 145116 7916 ? Ss 05:05 0:00
/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST
-D WSGI -D LANGUAGE -D SSL -d /usr/lib64/apache2 -f
/etc/apache2/httpd.conf -E /var/log/apache2/startuperror.log -k start
/etc/apache2/http.conf ** note I have to comment out the alias because
the module isnt found unless I comment out the IfDefine
<IfDefine WSGI>
LoadModule wsgi_module modules/mod_wsgi.so
</IfDefine>
WSGIScriptAlias / /var/www/localhost/htdocs/hello.wsgi
Note that there are no modules from IfDefine here - these are all
outside the blocks. If I comment the IfDefines out it loads the module
and it all works fine.
radicale radicale # apache2 -M
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_alias_module (shared)
authn_anon_module (shared)
authn_dbd_module (shared)
authn_dbm_module (shared)
authn_default_module (shared)
authn_file_module (shared)
authz_dbm_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_owner_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgid_module (shared)
dbd_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
expires_module (shared)
ext_filter_module (shared)
filter_module (shared)
headers_module (shared)
ident_module (shared)
imagemap_module (shared)
include_module (shared)
log_config_module (shared)
logio_module (shared)
mime_module (shared)
mime_magic_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
speling_module (shared)
unique_id_module (shared)
usertrack_module (shared)
vhost_alias_module (shared)
Syntax OK
radicale radicale #
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] apache and the -D parameter
2015-04-20 13:54 ` Bill Kenworthy
@ 2015-04-20 20:15 ` Michael Orlitzky
2015-04-20 23:18 ` Bill Kenworthy
0 siblings, 1 reply; 6+ messages in thread
From: Michael Orlitzky @ 2015-04-20 20:15 UTC (permalink / raw
To: gentoo-user
On 04/20/2015 09:54 AM, Bill Kenworthy wrote:
>
> ps aux: several entries of
> root 7549 0.0 0.0 145116 7916 ? Ss 05:05 0:00
> /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST
> -D WSGI -D LANGUAGE -D SSL -d /usr/lib64/apache2 -f
> /etc/apache2/httpd.conf -E /var/log/apache2/startuperror.log -k start
>
Since these are showing the -D arguments being passed to the full path,
/usr/sbin/apache2, maybe you can try running,
# /usr/sbin/apache2 -M
instead of just "apache2 -M"? Kind of a long shot, but I can't see
anything else wrong.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] apache and the -D parameter
2015-04-20 20:15 ` Michael Orlitzky
@ 2015-04-20 23:18 ` Bill Kenworthy
2015-04-21 11:54 ` Michael Orlitzky
0 siblings, 1 reply; 6+ messages in thread
From: Bill Kenworthy @ 2015-04-20 23:18 UTC (permalink / raw
To: gentoo-user
On 21/04/15 04:15, Michael Orlitzky wrote:
> On 04/20/2015 09:54 AM, Bill Kenworthy wrote:
>>
>> ps aux: several entries of
>> root 7549 0.0 0.0 145116 7916 ? Ss 05:05 0:00
>> /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST
>> -D WSGI -D LANGUAGE -D SSL -d /usr/lib64/apache2 -f
>> /etc/apache2/httpd.conf -E /var/log/apache2/startuperror.log -k start
>>
>
>
> Since these are showing the -D arguments being passed to the full path,
> /usr/sbin/apache2, maybe you can try running,
>
> # /usr/sbin/apache2 -M
>
> instead of just "apache2 -M"? Kind of a long shot, but I can't see
> anything else wrong.
>
>
as expected, no difference :(
strace doesnt show anything useful - its reading the config files
including 70-mod_wsgi.conf but doesnt show anything else.
BillK
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] apache and the -D parameter
2015-04-20 23:18 ` Bill Kenworthy
@ 2015-04-21 11:54 ` Michael Orlitzky
0 siblings, 0 replies; 6+ messages in thread
From: Michael Orlitzky @ 2015-04-21 11:54 UTC (permalink / raw
To: gentoo-user
On 04/20/2015 07:18 PM, Bill Kenworthy wrote:
>
> as expected, no difference :(
>
> strace doesnt show anything useful - its reading the config files
> including 70-mod_wsgi.conf but doesnt show anything else.
>
> BillK
>
The only other thing I can think of would be to delete and re-type the
"-D" line in /etc/conf.d/apache2 and the <IfDefine> line in the apache
config. Maybe there's a non-printing space or something else evil in there.
The unstable apache-2.4 lets you "Define" variables within the config
files and not just on the command-line. If this is important, that might
get you up and running at the expense of satisfying your curiosity. Some
day we might replace all the -D stuff with "Define" anyway
(https://bugs.gentoo.org/show_bug.cgi?id=532710).
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-04-21 11:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20 10:56 [gentoo-user] apache and the -D parameter Bill Kenworthy
2015-04-20 13:21 ` J. Roeleveld
2015-04-20 13:54 ` Bill Kenworthy
2015-04-20 20:15 ` Michael Orlitzky
2015-04-20 23:18 ` Bill Kenworthy
2015-04-21 11:54 ` Michael Orlitzky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox