The LoadModule line for mod_wsgi.so must be seen by Apache before it sees any 
of the mod_wsgi directives that require it. It seems that you have some sort of 
ordering issue. Where are the mod_wsgi directives located and at what time are 
they being included if included from a separate snippet configuration file?

You can verify at the point that your are trying to use the mod_wsgi directives 
that the mod_wsgi module has been loaded by adding:

<IfModule !wsgi_module>
XXX
</IfModule>

If the module is not loaded it will parse XXX which will fail and give a 
distinct error related to that.

Graham

On 11/04/2014, at 8:43 AM, Marc LaFountain <[email protected]> wrote:

> Hi, folks. I'm extremely new to Apache, Python, and mod_wsgi. Apologies if 
> I'm missing the obvious. But, I've researched this as best I can and am still 
> stuck.
> 
> I've been trying to install and use mod_wsgi on CentOS 6.5 and am getting an 
> error when trying to add a VirtualHost to Apache.
> 
> The mod_wsgi install seemed to go fine and my Apache status says:
> 
> Server Version: Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips DAV/2 
> mod_wsgi/3.4 Python/2.6.6 mod_bwlimited/1.4
> 
> So, it looks to me like mod_wsgi is installed and running.
> 
> I have also added this line to the my pre-main include file for httpd.conf:
> 
> LoadModule wsgi_module modules/mod_wsgi.so
> 
> (I have looked and mod_wsgi is in apache/modules.)
> 
> And, I have restarted Apache several times.
> 
> The error comes when I try to add a VirtualHost to any of the include files 
> for https.conf.
> 
> I always get an error message that says:
> 
> "Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module 
> not included in the server configuration"
> 
> If I try to use a VirtualHost with a WSGIDaemonProcess reference, I get a 
> similar error message about WSGIDaemonProcess.
> 
> From online research, it sounds like I don't have mod_wsgi installed, or I 
> don't have the Apache config file loading it, or that I haven't restarted 
> Apache since doing those things. But, I really think I have taken all of 
> those steps.
> 
> What am I missing here? Again, apologies if I am missing something obvious. 
> Thanks!
> 
> Marc :-)
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to