I am having troubles getting xampp to work with mod_wsgi. It is just
that if I add the setting:

LoadModule wsgi_module modules/mod_wsgi.so

in my httpd.conf, Apache stops working (throws a blank page error).

Here are my steps:
--------------------------------------------------
Installing mod_wsgi:
---
$ ./configure
$ make
$ sudo make install
--------------------------------------------------

Then I copied mod_wsgi.so to my xampp path (as the installation was
done on the default apache on Mac.


$ sudo cp /usr/libexec/apache2/mod_wsgi.so /Applications/xampp/
xamppfiles/modules/

Created a directory python in document root and created a new python
file:

$ mkdir python
$ cd python
$ vi test.py

inside test.py:

def application(env, start_response):
    start_response("200 OK", [])
    output = "<html>Hello World! Request: %s</html>"
    output %= env['PATH_INFO']
    return [output]

-------------------------------------------------------------------------------------


----httpd.conf----
LoadModule wsgi_module modules/mod_wsgi.so

WSGIScriptAlias /test "/Applications/xampp/xamppfiles/htdocs/python/
test.py"

<Directory "/Applications/xampp/xamppfiles/htdocs/python">
    Order deny,allow
    Allow from all
</Directory>

-------------------------------------------------------------------------------------------

--mime.types---

text/html         html htm py

-------------------------------------------------------------------------------------------

Restarted Apache but it gives a no content error. removing this
LoadModule and other directives in httpd.conf makes Apache work fine.

I also tried to change .py extension in case there is a conflict
(to .wsgi) but it has the same story.

Thanks







-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to