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 #