[modwsgi] Re: Is this correct way for using mod_wsgi

2009-04-16 Thread Graham Dumpleton
2009/4/17 Johny : > > Dear Graham, > Thanks for the reply.I installed mod_wsgi with MPM worker  and it > works now.But I could not see the differences, regarding memory using, > when MPM worker is used in comparison with MPM prefork.Must I change > mod_wsgi setting anyhow? I use  daemon mode with

[modwsgi] Re: Intermittent NoReverseMatch errors

2009-04-16 Thread Ariel Mauricio Nunez Gomez
> I'm > going to try your suggestion (single threaded, multiprocess) and see > what happens. > Remember process are expensive, so start with a low number and increase as needed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[modwsgi] Re: Is this correct way for using mod_wsgi

2009-04-16 Thread Johny
Dear Graham, Thanks for the reply.I installed mod_wsgi with MPM worker and it works now.But I could not see the differences, regarding memory using, when MPM worker is used in comparison with MPM prefork.Must I change mod_wsgi setting anyhow? I use daemon mode with processes=3 threads=1 Thank yo

[modwsgi] Re: Intermittent NoReverseMatch errors

2009-04-16 Thread Peter Baumgartner
On Wed, Apr 15, 2009 at 3:03 PM, Ariel Mauricio Nunez Gomez wrote: > Bah, I didn't realize it was an old thread, the OP must have solved his > issue by now. Interesting. Yes, we are using GeoDjango. I haven't solved the issue, but haven't had much time to troubleshoot lately and get back. I'm go

[modwsgi] Re: Symbol not found: _PyExc_KeyError

2009-04-16 Thread Graham Dumpleton
If still no joy, can you replace the 'configure' script for mod_wsgi with: http://modwsgi.googlecode.com/svn/branches/mod_wsgi-2.X/configure This addresses a problem with MacPorts Python 2.6, but maybe the problem actually lies more with Python 2.6 itself rather than the MacPorts version. For

[modwsgi] Re: Intermittent NoReverseMatch errors

2009-04-16 Thread Graham Dumpleton
When you say 'Also, I get no errors if I remove the maximum-requests', is that on all configurations? When you run your tests, are requests always sequential? Ie., no concurrent requests. Does it make a difference if you specify: WSGIApplicationGroup %{GLOBAL} Finally, what other third party

[modwsgi] Re: Symbol not found: _PyExc_KeyError

2009-04-16 Thread Graham Dumpleton
2009/4/16 frank h. : > > Graham, > thanks for your help, here comes the output > > $ grep LD Makefile > LDFLAGS =  -F/Library/Frameworks -framework Python -u _PyMac_Error   - > arch ppc > LDLIBS =  -ldl >        $(APXS) -c $(CPPFLAGS) $(CFLAGS) mod_wsgi.c $(LDFLAGS) $(LDLIBS) > > $ otool -L /opt/a

[modwsgi] Re: Intermittent NoReverseMatch errors

2009-04-16 Thread Alex Robbins
The urls that not working aren't using anything except the plain django 1.0.2. (No GeoDjango). So it could be django. How would increasing the max requests make it more thread-safe? On Apr 15, 4:03 pm, Ariel Mauricio Nunez Gomez wrote: > Bah, I didn't realize it was an old thread, the OP must ha

[modwsgi] Re: win32 modwsgi error: ImportError: DLL load failed

2009-04-16 Thread Graham Dumpleton
2009/4/16 Chunlin Zhang : > > On Thu, Apr 16, 2009 at 6:40 PM, Graham Dumpleton > wrote: >> >> >> Daemon mode is not available on Windows. Just drop the >> WSGIDaemonProcess and WSGIProcessGroup directives. > > Will it be supported in the future? No. Windows doesn't support fork() and how mod_ws

[modwsgi] Re: Symbol not found: _PyExc_KeyError

2009-04-16 Thread frank h.
Graham, thanks for your help, here comes the output $ grep LD Makefile LDFLAGS = -F/Library/Frameworks -framework Python -u _PyMac_Error - arch ppc LDLIBS = -ldl $(APXS) -c $(CPPFLAGS) $(CFLAGS) mod_wsgi.c $(LDFLAGS) $(LDLIBS) $ otool -L /opt/apache2/modules/mod_wsgi.so /opt/apache2/

[modwsgi] Re: win32 modwsgi error: ImportError: DLL load failed

2009-04-16 Thread Chunlin Zhang
On Thu, Apr 16, 2009 at 6:40 PM, Graham Dumpleton wrote: > > > Daemon mode is not available on Windows. Just drop the > WSGIDaemonProcess and WSGIProcessGroup directives. Will it be supported in the future? > > Graham > >> Thanks! >> >> On Thu, Apr 16, 2009 at 11:31 AM, Chunlin Zhang >> wrote

[modwsgi] Re: Is this correct way for using mod_wsgi

2009-04-16 Thread Graham Dumpleton
2009/4/16 Johny : > > > Graham, > Thank you for your reply. > So I tried to rebuild the mod_wsgi but it finds the old Apache > ( prefork version) 2.0.59 > > root@ /mod_wsgi-2.4# ./configure > checking for apxs2... no > checking for apxs... /usr/sbin/apxs > checking Apache version... 2.0.59 > check

[modwsgi] Re: Is this correct way for using mod_wsgi

2009-04-16 Thread Johny
Graham, Thank you for your reply. So I tried to rebuild the mod_wsgi but it finds the old Apache ( prefork version) 2.0.59 root@ /mod_wsgi-2.4# ./configure checking for apxs2... no checking for apxs... /usr/sbin/apxs checking Apache version... 2.0.59 checking for python... /usr/bin/python config

[modwsgi] Re: Symbol not found: _PyExc_KeyError

2009-04-16 Thread Graham Dumpleton
Can you also post what the values of LDFLAGS and LDLIBS in the generated Makefile in mod_wsgi source directory are after having run configure. Graham 2009/4/16 Graham Dumpleton : > What do you get when you run: > >  otool -L mod_wsgi.so > > Graham > > 2009/4/16 frank h. : >> >> Hi >> I am trying

[modwsgi] Re: Is this correct way for using mod_wsgi

2009-04-16 Thread Graham Dumpleton
2009/4/16 Johny : > > I have installed   Apache/2.0.59  with MPM prefork with mod_wsgi and > it works. > > But I wanted to installed MPM worker so I compiled and installed > Apache/2.0.63 with MPM worker to a different directory but have not > installed again mod_wsgi .Instead I copied  the instal

[modwsgi] Is this correct way for using mod_wsgi

2009-04-16 Thread Johny
I have installed Apache/2.0.59 with MPM prefork with mod_wsgi and it works. But I wanted to installed MPM worker so I compiled and installed Apache/2.0.63 with MPM worker to a different directory but have not installed again mod_wsgi .Instead I copied the installed mod_wsgi to the modules di

[modwsgi] Re: Symbol not found: _PyExc_KeyError

2009-04-16 Thread Graham Dumpleton
What do you get when you run: otool -L mod_wsgi.so Graham 2009/4/16 frank h. : > > Hi > I am trying to install mod_wsgi 2.4 on my PPC Mac OS X 10.4 Server > machine. > There is an apache2 living under /opt, furnished by Apple > > since Apache is > $ file /opt/apache2/bin/httpd > /opt/apache2/

[modwsgi] Re: win32 modwsgi error: ImportError: DLL load failed

2009-04-16 Thread Graham Dumpleton
2009/4/16 Chunlin Zhang : > > Another issue: > After I add "WSGIDaemonProcess moin user=someuser group=somegroup > home=/home/someuser processes=5 threads=10 maximum-requests=1000 > umask=0007" to my http.conf,I could not start the apache service,got > the err message:"The Apache service named  re

[modwsgi] Symbol not found: _PyExc_KeyError

2009-04-16 Thread frank h.
Hi I am trying to install mod_wsgi 2.4 on my PPC Mac OS X 10.4 Server machine. There is an apache2 living under /opt, furnished by Apple since Apache is $ file /opt/apache2/bin/httpd /opt/apache2/bin/httpd: Mach-O executable ppc I compiled my own Python 2.6.2 like this: curl -O http://python.or

[modwsgi] Re: win32 modwsgi error: ImportError: DLL load failed

2009-04-16 Thread Chunlin Zhang
Another issue: After I add "WSGIDaemonProcess moin user=someuser group=somegroup home=/home/someuser processes=5 threads=10 maximum-requests=1000 umask=0007" to my http.conf,I could not start the apache service,got the err message:"The Apache service named reported the following error: >>> Invali

[modwsgi] Re: Django virtualenv mod_wsgi, can't import django.*

2009-04-16 Thread Alen Ribic
> So, try the 'run/wsgi' value first, with no leading slash. I am running on a RedHat flavored distro, so: WSGISocketPrefix run/wsgi worked 100%. Thank you again. -Alen On Apr 16, 10:25 am, Graham Dumpleton wrote: > 2009/4/16 Alen Ribic : > > > > > Ok that fixed the socket connection perm

[modwsgi] Re: Django virtualenv mod_wsgi, can't import django.*

2009-04-16 Thread Graham Dumpleton
2009/4/16 Alen Ribic : > > Ok that fixed the socket connection permission issue. > I confirm that all is working now. > > The WSGISocketPrefix directive worked. > > I just set mine to: > > WSGISocketPrefix /tmp/wsgi Preferably do not put it in /tmp, especially if this is a shared system. Part of

[modwsgi] Re: Django virtualenv mod_wsgi, can't import django.*

2009-04-16 Thread Alen Ribic
Ok that fixed the socket connection permission issue. I confirm that all is working now. The WSGISocketPrefix directive worked. I just set mine to: WSGISocketPrefix /tmp/wsgi No mo permission issues as /tmp on my server is readable and writeable by all users. Thank you very much for all your

[modwsgi] Re: Django virtualenv mod_wsgi, can't import django.*

2009-04-16 Thread Graham Dumpleton
2009/4/16 Alen Ribic : > >> What you probably want is: >> >>   WSGIDaemonProcess mysite user=intrack group=intrack >> python-path=/home/intrack/intrack_pythonenv/lib/python2.5/site-packages >> processes=2 threads=25 >> >>   WSGIProcessGroup mysite >> >>   WSGIScriptAlias / /var/www/wsgi_scripts/In

[modwsgi] Re: Django virtualenv mod_wsgi, can't import django.*

2009-04-16 Thread Alen Ribic
> What you probably want is: > > WSGIDaemonProcess mysite user=intrack group=intrack > python-path=/home/intrack/intrack_pythonenv/lib/python2.5/site-packages > processes=2 threads=25 > > WSGIProcessGroup mysite > > WSGIScriptAlias / /var/www/wsgi_scripts/InTrack.wsgi > Thank you kindly, th