You were right. I had to build mod_wsgi with XAMPPs Apache: ./configure --with-apxs=/Applications/XAMPP/xamppfiles/bin/apxs --with- python=/System/Library/Frameworks/Python.framework/Versions/2.6/bin/ python2.6
Hope this helps someone else. Thanks a lot Sir. On Aug 28, 11:05 am, AJ <amanjsi...@gmail.com> wrote: > Sir Graham (I gave you my personal knightship !!!) > > To begin with...I really like your module... > > Now to your question, I think I should use Apple's apache. I was just > trying to get xampp working because I did not want a web server > running on my mac all the time. This is my personal computer also. I > have a dev server at home but I was trying to set up some kind of > server on my mac in case I am away. Since all the code would be > managed via Git, I would have the code with me on mac also and in case > I Am away from home, I can still work (hopefully). > > But I agree, I should try working with Apple's Apache. > > --AJ > > On Aug 28, 12:26 am, Graham Dumpleton <graham.dumple...@gmail.com> > wrote: > > > > > On Saturday, August 28, 2010, AJ <amanjsi...@gmail.com> wrote: > > > I have mod_wsgi.so with following permissions: > > > > -rwxr-xr-x 1 root admin 573040 Aug 25 23:42 mod_wsgi.so > > > > The error I get is: > > > > Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error. > > > Which is likely because you compiled mod_wsgi for Apple Apache and > > then copied module into a different Apache installation. The mod_wsgi > > code should be compiled against the Apache it is being used with. If > > you don't and the configuration is not the same, anything could > > happen, usually crashes like you are seeing, > > > I ask you again, why aren't you just using Apple Apache installation? > > > Graham > > > > Thanks. > > > > On Aug 26, 10:19 pm, Graham Dumpleton <graham.dumple...@gmail.com> > > > wrote: > > >> What exactly do you mean by 'throws a blank page error'? If it is > > >> blank, how do you know it is an error page. If it actually does say > > >> error, what are the error messages on the page. > > > >> Have you looked in the Apache error logs for error messages? Post what > > >> you find. > > > >> Also run: > > > >> apachectl -t > > > >> using the 'apachectl' from XAMPP and post output. > > > >> Also try using the known hello world program exactly as shown in: > > > >> http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide > > > >> Finally, why are you using XAMPP anyway, there is nothing wrong with > > >> Apache that MacOS X supplies? > > > >> Graham > > > >> On 27 August 2010 11:57, AJ <amanjsi...@gmail.com> wrote: > > > >> > Bump! > > > >> > On Aug 26, 10:50 am, AJ <amanjsi...@gmail.com> wrote: > > >> >> 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 modw...@googlegroups.com. > > >> > To unsubscribe from this group, send email to > > >> > modwsgi+unsubscr...@googlegroups.com. > > >> > For more options, visit this group > > >> > athttp://groups.google.com/group/modwsgi?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "modwsgi" group. > > > To post to this group, send email to modw...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > modwsgi+unsubscr...@googlegroups.com. > > > For more options, visit this group > > > athttp://groups.google.com/group/modwsgi?hl=en. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to modw...@googlegroups.com. To unsubscribe from this group, send email to modwsgi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.