[modwsgi] Re: mod_wsgi configuration problems

2011-01-26 Thread octopusgrabbus
I've issued this command: dbadmin@steamboy:~$ sudo apt-get install libapache2-mod-wsgi Reading package lists... Done Building dependency tree Reading state information... Done libapache2-mod-wsgi is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Then,

[modwsgi] Re: mod_wsgi configuration problems

2011-01-26 Thread octopusgrabbus
mod_wsgi does appear to be installed /usr/lib/apache2/modules/mod_wsgi.so - mod_wsgi.so-2.6 On Jan 26, 9:17 am, octopusgrabbus octopusgrab...@gmail.com wrote: I've issued this command: dbadmin@steamboy:~$ sudo apt-get install libapache2-mod-wsgi Reading package lists... Done Building

[modwsgi] Re: mod_wsgi configuration problems

2011-01-26 Thread octopusgrabbus
mod_wsgi now loaded. from apache2ctl -M wsgi_module (shared) Here is an excerpt of the apache error log [Wed Jan 26 09:57:55 2011] [error] [client 127.0.0.1] Traceback (most recent cal l last): [Wed Jan 26 09:57:55 2011] [error] [client 127.0.0.1] File /home/ amr/django/d jango.wsgi, line 9,

Re: [modwsgi] Re: mod_wsgi configuration problems

2011-01-26 Thread Graham Dumpleton
On 27 January 2011 02:02, octopusgrabbus octopusgrab...@gmail.com wrote: mod_wsgi now loaded. from apache2ctl -M  wsgi_module (shared) Here is an excerpt of the apache error log [Wed Jan 26 09:57:55 2011] [error] [client 127.0.0.1] Traceback (most recent cal l last): [Wed Jan 26 09:57:55

[modwsgi] Re: mod_wsgi configuration problems

2011-01-26 Thread octopusgrabbus
Thanks. I'll re-install Django then. On Jan 26, 2:56 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On 27 January 2011 02:02, octopusgrabbus octopusgrab...@gmail.com wrote: mod_wsgi now loaded. from apache2ctl -M  wsgi_module (shared) Here is an excerpt of the apache error log

Re: [modwsgi] Re: mod_wsgi configuration problems

2011-01-26 Thread Graham Dumpleton
I would actually suggest you verify what Python installation mod_wsgi is using. http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Installation_In_Use Then on command line Python go: import sys print sys.prefix print sys.path import django print django.__file__

[modwsgi] Re: mod_wsgi with pinax

2010-11-11 Thread sh4d0w
Just wanted to let you know we finnaly got it sorted it. Turns out it was the vhost config and the wsgi script that was causing the issues. Thanks for your time and effort. Regards, Richard On Nov 7, 8:11 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: Use code in:

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
Just wanted to add that i've added the WSGISocketPrefix /var/run/wsgi in httpd.conf. On Nov 7, 4:26 pm, sh4d0w ad...@servqc.net wrote: Using mod_wsgi 3.3 with python 2.6 on centos 5 O.K not sure where to ask this but if anyone can give any input i'd much appreciate it. trying to setup pinax

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
So i did exactly as you said did a full stop and start of the apache web server. Then revisted the domain in question. I instantly got a 500 error then refreshed and now it's just stuck in the loading loop and will most likely end up giving me the same error message as above. It times out after

Re: [modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread Graham Dumpleton
On 8 November 2010 08:35, sh4d0w ad...@servqc.net wrote: So i did exactly as you said did a full stop and start of the apache web server. Then revisted the domain in question.  I instantly got a 500 error A 500 error is usually a different issue as that daemon socket error gives a different

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
Sorry i missed the one question in the prior most yes .. it does this every time .. only for this pinax app. The initial error message was this: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server

Re: [modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread Graham Dumpleton
If: 8.[Sun Nov 07 16:11:27 2010] [error] [client 24.37.183.231] Premature end of script headers: django.wsgi is in a virtual host error log, what messages are in the main Apache error log at the same time? That message may be because of crash caused by a request, but may also be because of a

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
Thats the thing apache doesn't log anything in relation to this in the main log. Here is my apache log from the stop and start on. [Sun Nov 07 16:33:16 2010] [debug] prefork.c(1013): AcceptMutex: sysvsem (default: sysvsem) [Sun Nov 07 16:33:16 2010] [info] mod_wsgi (pid=15590): Attach interpreter

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
After looking over my post i noticed the time stamps for the httpd log don't really match up with the ones on the vhost so i looked over the main log again and I don't see anything related to the error in the vhost log at all. As far as the 500 message goes it does not post anything to the vhost

Re: [modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread Graham Dumpleton
One of the other things I am not seeing in your logs is the line like: [Tue Oct 26 15:53:46 2010] [info] [client 127.0.0.1] mod_wsgi (pid=3372, process='tests', application=''): Loading WSGI script '/Users/grahamd/Testing/tests/echo.wsgi'. which corresponds to when the first request arrives

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
i did cat /usr/local/apache/logs/error_log | grep Loading and it returned one line: [Sun Nov 07 16:33:16 2010] [info] Loading certificate private key of SSL-aware server Im not get anything like this in my logs my log level is set to debug. On Nov 7, 5:39 pm, Graham Dumpleton

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
i do have this: [Sun Nov 07 17:47:41 2010] [debug] mod_wsgi.c(9958): mod_wsgi (pid=15424): Socket for 'ourianet' is '/var/run/wsgi.15424.1.23.sock'. [Sun Nov 07 17:47:41 2010] [info] mod_wsgi (pid=20458): Starting process 'ourianet' with uid=99, gid=99 and threads=1. [Sun Nov 07 17:47:41 2010]

Re: [modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread Graham Dumpleton
The loading script message would be in virtual host log if you are using ErrorLog directive in VirtualHost. Graham On 8 November 2010 09:46, sh4d0w ad...@servqc.net wrote: i did cat /usr/local/apache/logs/error_log | grep Loading and it returned one line: [Sun Nov 07 16:33:16 2010] [info]

Re: [modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread Graham Dumpleton
Are you loading/using mod_ssl in same Apache? Is Pinax defined in a SSL (port 443) virtual host as well as non SSL (port 80) virtual host? Graham On 8 November 2010 09:48, sh4d0w ad...@servqc.net wrote: i do have this: [Sun Nov 07 17:47:41 2010] [debug] mod_wsgi.c(9958): mod_wsgi

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
i got: ssl_module (static) loaded for ssl in the same apache yes. the config for ssl looks like: IfDefine SSL # Defined in /var/cpanel/cpanel.config: apache_ssl_port Listen 0.0.0.0:443 AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl /IfDefine and the

Re: [modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread Graham Dumpleton
Forgot to ask what Apache version you are using? Graham On 8 November 2010 10:02, sh4d0w ad...@servqc.net wrote: i got:  ssl_module (static) loaded for ssl in the same apache yes. the config for ssl looks like: IfDefine SSL    # Defined in /var/cpanel/cpanel.config: apache_ssl_port    

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
apache version is 2.2 and django is 1, 2, 3, 'final', 0 On Nov 7, 6:06 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: Forgot to ask what Apache version you are using? Graham On 8 November 2010 10:02, sh4d0w ad...@servqc.net wrote: i got:  ssl_module (static) loaded for ssl

Re: [modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread Graham Dumpleton
On 8 November 2010 10:08, sh4d0w ad...@servqc.net wrote: apache version is 2.2 Sorry, need the actual patch revision. $ /usr/sbin/httpd -V | grep version Server version: Apache/2.2.14 (Unix) The mod_ssl may have no bearing on things, but it has caused some weird issues with daemon mode in the

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
Server version: Apache/2.2.16 (Unix) On Nov 7, 6:10 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On 8 November 2010 10:08, sh4d0w ad...@servqc.net wrote: apache version is 2.2 Sorry, need the actual patch revision. $ /usr/sbin/httpd -V | grep version Server version:

[modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread sh4d0w
reloaded the site on two seperate browsers and after about 30 minutes I got: [Sun Nov 07 18:09:44 2010] [info] mod_wsgi (pid=22213): Attach interpreter ''. [Sun Nov 07 18:35:23 2010] [error] [client 24.37.183.231] Script timed out before returning headers: django.wsgi [Sun Nov 07 18:35:31 2010]

Re: [modwsgi] Re: mod_wsgi with pinax

2010-11-07 Thread Graham Dumpleton
Use code in: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Tracking_Request_and_Response to track in Apache error logs when the WSGI application entry point is actually being called. This will confirm it is even getting to that point or whether import of WSGI script itself is

[modwsgi] Re: Mod_WSGI with X86_64 CentOS (?)

2010-10-20 Thread crumble
You compiled you python statically. I think it is preferred to use dynamic libraries as stated in documentation with `--enable-shared`. Anyway there are python26 and python26-devel available in centOS 5.5 which I use to compile mod_wsgi on CentOS for python2.6. On 20 oct, 01:54, Kaen

Re: [modwsgi] Re: mod_wsgi with python stackless

2010-10-19 Thread Graham Dumpleton
I have updated: http://code.google.com/p/modwsgi/wiki/InstallationIssues#Multiple_Python_Versions with additional information about why/when WSGIPythonHome should be set for this sort of situation. This is actually the primary reason for using WSGIPythonHome. Use of this directive for

Re: [modwsgi] Re: mod_wsgi with python stackless

2010-10-19 Thread Graham Dumpleton
On 20 October 2010 00:04, crumble herve.coatan...@gmail.com wrote: Ok for another project that uses lxml I add to add the following Directive in my apache conf file: WSGIApplicationGroup %{GLOBAL} I tried it in my stackless configuration an now I can do `import stackless` Which may imply

[modwsgi] Re: mod_wsgi with python stackless

2010-10-11 Thread crumble
Yes I did a ./configure --with-python=/opt/stackless-2.7-maint/bin/ python and during compilation include dirs and library dirs were in / opt/stackless-2.7-maint. Moreover, I only have that 2.7 python version installed on my system. On 9 oct, 16:25, Carl Nobile carl.nob...@gmail.com wrote: I

Re: [modwsgi] Re: mod_wsgi with python stackless

2010-10-09 Thread Carl Nobile
I just had a thought, did you compile mod_wsgi with stackless? You cannot just change the python version that mod_wsgi uses after it has been compiled. You must use the exact version of python that mod_wsgi was built with when you run your apps. ~Carl On Fri, Oct 8, 2010 at 6:27 AM, crumble

[modwsgi] Re: mod_wsgi with python stackless

2010-10-08 Thread crumble
As a matter of fact I need channels, tasks and pickling of tasks. My goal is to run nagare (http://www.nagare.org) applications, right now I run them with apache using mod_fastcgi and flup. I managed to change www-data path (I modified /etc/apache/envvars) now my wsgi script displays:

[modwsgi] Re: mod_wsgi with python stackless

2010-10-07 Thread crumble
As I understand it, /opt/stackless-2.7-maint is my BASELINE environment not just a package, the python I run is, /opt/ stackless-2.7-maint/bin/python. It is no symlink or venv python. I thought in that case WSGIPythonHome would be /opt/stackless-2.7- maint, any idea what the Python BASELINE

Re: [modwsgi] Re: mod_wsgi with python stackless

2010-10-07 Thread Carl Nobile
It's always easier to work with the version that come with your platform, and in production environments that's what we do. There will not be enough different between 2.6 and 2.7 to make much difference. Is there a reason you need to have a virtual env? To get the python executable on the command

[modwsgi] Re: mod_wsgi with python stackless

2010-10-07 Thread crumble
I have no need for 2.7, what i need is stackless python actually. But I assumed having a version number different from system one would shed the light on linking errors I would miss otherwise. Right now I'm trying to change www-data user's PATH so that apache will find the right python

Re: [modwsgi] Re: mod_wsgi with python stackless

2010-10-07 Thread Carl Nobile
Will your code need to be spawning a lot of threads on its own? Would a process model do just as well. Guido has not, at least to my knowledge, approved any way of getting around the GIL issues which would make me very hesitant to use a fork of Python. I didn't understand what stackless python was

[modwsgi] Re: mod_wsgi and calling subprocess.Popen

2010-09-19 Thread yurkao
Rob, not sure if i've understood you corectly, but this is not webserver log. this is a sample job user wants to perform periodicaly. Its output should be redirected to some __output__ file, independent from webserver\apache\django log file. consider user has a library (module) with some method.

Re: [modwsgi] Re: mod_wsgi and calling subprocess.Popen

2010-09-19 Thread Graham Dumpleton
Why not write a self contained shell script which does everything you want? Then invoke that using os.system() or similar. Certainly a lot easier as you don't have to fiddle with executing all the separate parts from Python. Graham On 20 September 2010 11:26, yurkao yur...@gmail.com wrote:

[modwsgi] Re: mod_wsgi and calling subprocess.Popen

2010-09-19 Thread yurkao
1) that was just an example. The reality may be much more complex. 2) sometimes it cannot be combined into shell script; Interracting with DB between above calls ( ps_aux and cat_maps ) , accessing SVN other web site, local data etc,i've just simplified the cased. On 20 сен, 03:28, Graham

[modwsgi] Re: mod_wsgi and calling subprocess.Popen

2010-09-19 Thread yurkao
1) that was just an example. The reality may be much more complex. 2) sometimes it cannot be combined into shell script; Interracting with DB between above calls ( ps_aux and cat_maps ) , accessing SVN other web site, local data etc,i've just simplified the cased. On 20 сен, 03:28, Graham

[modwsgi] Re: mod_wsgi with XAMPP on Mac OSX Snow Leopard

2010-08-28 Thread AJ
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.

[modwsgi] Re: mod_wsgi with XAMPP on Mac OSX Snow Leopard

2010-08-28 Thread AJ
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

[modwsgi] Re: mod_wsgi with XAMPP on Mac OSX Snow Leopard

2010-08-26 Thread AJ
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:

[modwsgi] Re: mod_wsgi + apache not multithreaded, why?

2010-07-27 Thread lega
This is one of the browser page back on line, from different - in parallel. Thank you. On 27 июл, 19:01, lega lega...@gmail.com wrote: Result: PID: 3509 UID: 33 GID: 33 DOCUMENT_ROOT: '/htdocs' GATEWAY_INTERFACE: 'CGI/1.1' HTTP_ACCEPT: 'application/xml,application/xhtml+xml,text/

[modwsgi] Re: mod_wsgi with mod_userdir

2010-07-19 Thread kirelagin
On 19 июл, 15:03, Graham Dumpleton graham.dumple...@gmail.com wrote: What I instead suggest is using something like:   WSGIScriptAliasMatch ^(/([^~].*)?)$ /some/path/app.wsgi$1 I haven't test this, but the idea is to match everything except paths starting with '/~'. Can you revert mod_wsgi

[modwsgi] Re: mod_wsgi in embedded mode (worker MPM) - graceful restart?

2010-07-06 Thread Andreas Pelme
On 6 Juli, 00:56, Graham Dumpleton graham.dumple...@gmail.com wrote: I would though question why you are using embedded mode in the first place and not using daemon mode. Daemon mode would be the preferred way to use mod_wsgi unless you have some good reasons for using embedded mode. If you

Re: [modwsgi] Re: mod_wsgi in embedded mode (worker MPM) - graceful restart?

2010-07-06 Thread Graham Dumpleton
On 7 July 2010 02:11, Andreas Pelme andreas.pe...@gmail.com wrote: On 6 Juli, 00:56, Graham Dumpleton graham.dumple...@gmail.com wrote: I would though question why you are using embedded mode in the first place and not using daemon mode. Daemon mode would be the preferred way to use mod_wsgi

[modwsgi] Re: mod_wsgi config issues.

2010-06-19 Thread Graham Dumpleton
Is there something about 'use the mailing list in future' from prior emails that you don't understand? On 20 June 2010 14:29, Shivek Khurana shiv...@gmail.com wrote: Sir, I've successfully configured wsgi with due respect to documentation and it works fine. I have a small problem I've been

[modwsgi] Re: mod_wsgi config issues.

2010-06-19 Thread Graham Dumpleton
On 20 June 2010 14:40, Graham Dumpleton graham.dumple...@gmail.com wrote: Is there something about 'use the mailing list in future' from prior emails that you don't understand? On 20 June 2010 14:29, Shivek Khurana shiv...@gmail.com wrote: Sir, I've successfully configured wsgi with due

[modwsgi] Re: mod_wsgi config issues.

2010-06-19 Thread Graham Dumpleton
On 20 June 2010 15:06, Shivek Khurana shiv...@gmail.com wrote: I checked the error logs and its that (13) permissions denied error. And python threading ignored error (which you said is harmless at a google group.) And can you please post some link to soilid documentation about permissions.

[modwsgi] Re: mod_wsgi config issues.

2010-06-17 Thread Graham Dumpleton
On 18 June 2010 14:29, Shivek Khurana shiv...@gmail.com wrote: Dear Sir, I've configured mod_wsgi from source with python3.1. Python3-dev and apache2-dev packages are properly installed as well. I see wsgi.load in mods-enabled. But what to do next ?? I'm not using any framework as its a

[modwsgi] Re: mod_wsgi + --enable-shared

2010-06-04 Thread viper
Got it working. Thx. The Python build error: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC Was resolved by completely deleting the previous Python 2.6.5 install: rm -rf /usr/local/bin rm -rf /usr/local/includes rm -rf

Re: [modwsgi] Re: mod_wsgi + --enable-shared

2010-06-04 Thread Graham Dumpleton
On 4 June 2010 17:49, viper jscne...@gmail.com wrote: Got it working.  Thx. The Python build error: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC Was resolved by completely deleting the previous Python 2.6.5 install: rm

[modwsgi] Re: mod_wsgi + --enable-shared

2010-06-04 Thread viper
You need to use the same LD_RUN_PATH trick when compiling Python Graham, you're a great help. That worked perfectly. Thank you. -- 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

[modwsgi] Re: mod_wsgi + --enable-shared

2010-06-03 Thread viper
When building mod_wsgi # ./configure --with-python=/usr/local/bin/python2.6 # make I get the following error: --- /usr/bin/apxs2 -c -I/usr/local/include/python2.6 -DNDEBUG mod_wsgi.c -L/usr/local/lib -L/usr/local/lib/python2.6/config

[modwsgi] Re: mod_wsgi + --enable-shared

2010-06-03 Thread viper
This is the error in the make: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC So, I did this: # export CFLAGS=-fPIC And tried again. Same error. -- You received this message because you are subscribed to the Google Groups

[modwsgi] Re: mod_wsgi + --enable-shared

2010-06-03 Thread viper
Added -fPIC to the CPPFLAGS var within the MakeFile for mod_wsgi and re-ran make. ## MakeFile ... CPPFLAGS = -I/usr/local/include/python2.6 -DNDEBUG -fPIC --- ... # make /usr/bin/apxs2 -c -I/usr/local/include/python2.6 -DNDEBUG -fPIC mod_wsgi.c -L/usr/local/lib

[modwsgi] Re: mod_wsgi + --enable-shared

2010-06-03 Thread viper
Here's my gcc info: # gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/ README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/ usr --enable-shared

[modwsgi] Re: mod_wsgi + --enable-shared

2010-06-03 Thread viper
Why cant you simply use the Python 2.6.2 which comes with the operating system? Hi Graham, I did try default mod_wsgi (2.2) and the default python (2.6.2) install and it all worked great (using the apt-get). There is nothing specific that worries me about the older mod_wsgi or Py262 -- however,

Re: [modwsgi] Re: mod_wsgi + --enable-shared

2010-06-03 Thread Graham Dumpleton
On 4 June 2010 09:18, viper jscne...@gmail.com wrote: Why cant you simply use the Python 2.6.2 which comes with the operating system? Hi Graham, I did try default mod_wsgi (2.2) and the default python (2.6.2) install and it all worked great (using the apt-get).  There is nothing specific

[modwsgi] Re: mod_wsgi + --enable-shared

2010-06-03 Thread viper
Thanks Graham, I'll give all that a shot tonight and post here the results. I'm certain your advice will prove helpful. -- 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

Re: [modwsgi] Re: mod_wsgi -- apache2 and ipv6

2010-06-02 Thread Deron Meranda
On Wed, Jun 2, 2010 at 2:03 AM, Graham Dumpleton graham.dumple...@gmail.com wrote: On 2 June 2010 15:10, viper jscne...@gmail.com wrote: Hi Deron -- Thanks for the reply.  See my reply to Graham. Btw: Love the photography ! I would though have to question why you would paint a computer

Re: [modwsgi] Re: mod_wsgi -- apache2 and ipv6

2010-06-02 Thread albruno
please all excuse my off topic conversation :) Deron, loved the pc.. pretty cool.. the ladybug mouse was it for me you need to do something before that concept is borrowed and appears on store shelves... On Wed, Jun 2, 2010 at 3:49 AM, Deron Meranda deron.mera...@gmail.comwrote: On

Re: [modwsgi] Re: mod_wsgi

2010-06-02 Thread Bernd Zeimetz
On 06/01/2010 01:55 AM, Graham Dumpleton wrote: If not, is there a very *lightweight* version that works with Py3.1.2 that you know of? Or does mod_wsgi provide it's own embedded framework which I can use? The only lightweight framework that I know of that advertises itself as working

Re: [modwsgi] Re: mod_wsgi

2010-06-02 Thread Graham Dumpleton
On 2 June 2010 20:22, Bernd Zeimetz be...@bzed.de wrote: On 06/01/2010 01:55 AM, Graham Dumpleton wrote: If not, is there a very *lightweight* version that works with Py3.1.2 that you know of?  Or does mod_wsgi provide it's own embedded framework which I can use? The only lightweight

[modwsgi] Re: mod_wsgi

2010-06-01 Thread Graham Dumpleton
On 1 June 2010 15:58, Jason Caldwell jason.caldw...@me.com wrote: Got it installed... was a good guess apt-get install libapach2-mod-wsgi... looking over your link now.  Would really like to test and compare performance between fcgi and wsgi.  Just trying to make sense of it all {wink}.

[modwsgi] Re: mod_wsgi

2010-06-01 Thread Graham Dumpleton
On 1 June 2010 16:16, Jason Caldwell jason.caldw...@me.com wrote: HOLY SHIT! Good, just use the mailing list next time. :-) You absolutely rock!  Got it working w/ your sample code myapp.wsgi -- ab is off the charts: Server Software:        Apache/2.2.11 Server Hostname:        localhost

[modwsgi] Re: mod_wsgi

2010-06-01 Thread gert
I hate frameworks too, and i do like py3 So i make websites like this http://code.google.com/p/appwsgi/ Just run the server script http://appwsgi.googlecode.com/files/server.py ,thats it browser will open automaticly. wsgi platforms make your life easier, don't have to worry about performance or

[modwsgi] Re: mod_wsgi -- apache2 and ipv6

2010-06-01 Thread viper
Thanks Graham -- Ran it against a static page -- same performance. Did a traceroute and the hops are pretty slow, and there are many of them. This is certainly the issue, don't know why I didn't think of that earlier (being a network engineer and all.) On Jun 1, 8:43 pm, Graham Dumpleton

[modwsgi] Re: mod_wsgi -- apache2 and ipv6

2010-06-01 Thread viper
Hi Deron -- Thanks for the reply. See my reply to Graham. Btw: Love the photography ! On Jun 1, 9:52 pm, Deron Meranda deron.mera...@gmail.com wrote: On Tue, Jun 1, 2010 at 11:35 PM, viper jscne...@gmail.com wrote: I'm running mod_wsgi under my virtual server provider (VSP), [...]

[modwsgi] Re: mod_wsgi

2010-05-31 Thread Graham Dumpleton
Note, have cc'd this back to mod_wsgi list. If possible post followups there. See: http://groups.google.com/group/modwsgi On 1 June 2010 05:13, Jason Caldwell jason.caldw...@me.com wrote: Hi Graham -- As mentioned in a previous email -- love mod_python.  However, as you mentioned -- it's

[modwsgi] Re: mod_wsgi

2010-05-31 Thread Graham Dumpleton
On 1 June 2010 15:50, Jason Caldwell jason.caldw...@me.com wrote: On your comments; I abandoned Py3 in favor of Py2.  Braincramped -- I followed this guys article using FastCGI: http://blogs.sun.com/oswald/entry/good_idea_python_with_fastcgi Getting some amazing performance out of it too.  

[modwsgi] Re: mod_wsgi and custom encodings

2010-05-26 Thread Stephen Hansen
On May 25, 9:18 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: The list of encodings is calculated when Python is initialised. This is only partially true. The initial list is indeed calculated, but then you can register new encodings at any point you would like later. That's what I'm

Re: [modwsgi] Re: mod_wsgi and custom encodings

2010-05-26 Thread Graham Dumpleton
On 27 May 2010 05:33, Stephen Hansen apt.shan...@gmail.com wrote: On May 25, 9:18 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: The list of encodings is calculated when Python is initialised. This is only partially true. The initial list is indeed calculated, but then you can

[modwsgi] Re: mod_wsgi and custom encodings

2010-05-26 Thread Stephen Hansen
On May 26, 4:14 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: It wasn't stated clearly in your post that you were explicitly registering the codec. If you are indeed registering the codec explicitly, then that potentially gets around the Python initialisation needing to be associated

Re: [modwsgi] Re: mod_wsgi and custom encodings

2010-05-26 Thread Graham Dumpleton
On 27 May 2010 11:18, Stephen Hansen apt.shan...@gmail.com wrote: On May 26, 4:14 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: It wasn't stated clearly in your post that you were explicitly registering the codec. If you are indeed registering the codec explicitly, then that

Re: [modwsgi] Re: mod_wsgi and custom encodings

2010-05-25 Thread Graham Dumpleton
On 26 May 2010 02:33, Stephen Hansen apt.shan...@gmail.com wrote: On May 24, 8:12 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: Where did you install the Python code file corresponding to the encoding? Does that file have access permissions such that the Apache service, which is

[modwsgi] Re: mod_wsgi 3.1 and write file permissions

2010-05-23 Thread jinzo
Hello, thanks for your response. I solved the problem with manually overriding the mode it gets passed to open() (it was not previously). With regards Črnko On 20 maj, 00:38, Graham Dumpleton graham.dumple...@gmail.com wrote: On 20 May 2010 00:18, jinzo matjaz.cr...@gmail.com wrote: Hello,

Re: [modwsgi] Re: mod_wsgi 3.1 and write file permissions

2010-05-19 Thread Graham Dumpleton
On 20 May 2010 00:18, jinzo matjaz.cr...@gmail.com wrote: Hello, First, let me appologise for double post, but mr. Neto asked me to post again. Regarding ~/.profile - I have checked it (and every other file alike), and I didn't find anything that would set the umask/etc. I have also tried

[modwsgi] Re: mod_wsgi with Apache MPM and Pylons

2010-05-04 Thread Tarun Pasrija
Thanks Graham. I am onto doing internal debugging already. I wanted to confirm if this is not a known issue already with mod_wsgi or if I missed some configuration in Apache enabling multithreading. A good suggestion to use Daemon process. I would quickly try it out and would try to give further

Re: [modwsgi] Re: mod_wsgi with Apache MPM and Pylons

2010-05-04 Thread Graham Dumpleton
On 4 May 2010 20:41, Tarun Pasrija tarun.pasr...@gmail.com wrote: Thanks Graham. I am onto doing internal debugging already. I wanted to confirm if this is not a known issue already with mod_wsgi or if I missed some configuration in Apache enabling multithreading. A good suggestion to use

[modwsgi] Re: mod_wsgi chrooted environment python

2010-05-03 Thread Davo
Thanks for the reply I finally gave up the idea of having a chrooted environment I went with the solution to restrict the other directories instead. I also tried to strace python to see what files/libs are opened so I can give access too but it ended up to be some files in /etc /usr and /lib ...

Re: [modwsgi] Re: mod_wsgi chrooted environment python

2010-05-03 Thread Graham Dumpleton
On 4 May 2010 09:14, Davo david.arakel...@gmail.com wrote: Thanks for the reply I finally gave up the idea of having a chrooted environment I went with the solution to restrict the other directories instead. I also tried to strace python to see what files/libs are opened so I can give access

[modwsgi] Re: mod_wsgi and external application on Apache running under Windows

2010-04-16 Thread Enrico Carlesso
Ok, it comes out, in very simple words, that I cannot do it. At least not in easydefault way. Maybe for this issue using twisted.web (or something like) is the best solution. On Apr 15, 10:58 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: When running twisted you are likely running it as

[modwsgi] Re: mod_wsgi and external application on Apache running under Windows

2010-04-15 Thread Enrico Carlesso
With twisted.web works fine... On Apr 15, 9:21 am, Enrico Carlesso enricocarle...@gmail.com wrote: Hi all guys. I've got a problem. I need to launch winvnc.exe (part of UltraVNC) from a mod_wsgi script (working with django, but from wsgi does not work either). The clue is that it seems

Re: [modwsgi] Re: mod_wsgi and external application on Apache running under Windows

2010-04-15 Thread Graham Dumpleton
When running twisted you are likely running it as yourself from a shell accessed via Windows GUI. When Apache is run it is run as a service, which doesn't have access to the Windows GUI environment. This issue has been discussed before on the list but I don't remember what the outcome is. Read:

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
I installed httpd-devel using rpm and again it's gives me that earlier error.. now removed httpd-devel, as the wiki says I think ./configure looks apxs in wrong location and I can't find the apxs in my system too.The apache (httpd) installation is in /etc/httpd On Apr 14, 11:47 am, Graham

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Install http-devel again here's the error.. ./configure --with-python=/usr/local/bin/python checking for apxs2... no checking for apxs... /usr/sbin/apxs checking Apache version... apxs:Warning: /usr/bin/httpd not found or not executable apxs:Warning: Continuing anyway... apxs:Warning: No shared

Re: [modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread Graham Dumpleton
You installed the wrong Apache development version. You installed it for Apache 1.3. The version you install must match that for Apache you have installed, which appears to be 2.2.4. Graham On 14 April 2010 16:32, MMRUser oshadha.ro...@gmail.com wrote: Install http-devel again here's the

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
New error make /usr/sbin/apxs -c -I/usr/local/include/python2.6 -DNDEBUG mod_wsgi.c -L/usr/local/lib -L/usr/local/lib/python2.6/config -lpython2.6 - lpthread -ldl -lutil -lm /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Found the answer wiki, so I need to re-compile Python2.6 for 64 bit. can someone please tell me the syntax.. ./configure --enable-shared CXFLAGS -m64 or ./configure --enable-shared CFLAGS -m64 On Apr 14, 1:33 pm, MMRUser oshadha.ro...@gmail.com wrote: New error make /usr/sbin/apxs -c

Re: [modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread Graham Dumpleton
On 14 April 2010 18:37, MMRUser oshadha.ro...@gmail.com wrote: Found the answer wiki, so I need to re-compile Python2.6 for 64 bit. can someone please tell me the syntax.. ./configure --enable-shared CXFLAGS -m64 or ./configure --enable-shared CFLAGS -m64 As far as I know you just need:

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Finally I managed to installed it but still I'm getting an error when I try to start the server..that shared library thing on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/ modules/mod_wsgi.so into server: libpython2.6.so.1.0: cannot open shared object file: No such file

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Within which file this LD_RUN_PATH=/usr/local/lib available.. ? On Apr 14, 4:19 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: The directory /usr/local/lib isn't in standard search path. Easiest way to work around that is to go into mod_wsgi source code and do:   make clean  

Re: [modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread Graham Dumpleton
On 14 April 2010 20:34, MMRUser oshadha.ro...@gmail.com wrote: Within which file this LD_RUN_PATH=/usr/local/lib available.. ? It is not a command, you are setting the environment variable. I just did it as part of the one command line so only applied to the invocation of make. The following is

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Phew ..! it's working :):), what I did was delete the libpython2.6.so and recompile from the scratch.. BIG THANK FOR YOUR HELP! On Apr 14, 4:19 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: The directory /usr/local/lib isn't in standard search path. Easiest way to work around

Re: [modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread Graham Dumpleton
On 14 April 2010 22:49, MMRUser oshadha.ro...@gmail.com wrote: Phew ..! it's working :):), what I did was delete the libpython2.6.so and recompile from the scratch.. BIG THANK FOR YOUR HELP! That wasn't what I said to do. Deleting libpython2.6.so itself wouldn't have made any difference

[modwsgi] Re: mod_wsgi no module error

2010-04-14 Thread MMRUser
Search through the net and finds out that httpd-devel has the APXS binary and other files, so If I install httpd-devel, can I compile the mod_wsgi without any errors. On Apr 13, 10:56 pm, MMRUser oshadha.ro...@gmail.com wrote: Do you know where I can get the proper apxs packages + RPMs, it's not

Re: [modwsgi] Re: mod_wsgi redhat installation error

2010-04-13 Thread Graham Dumpleton
On 12 April 2010 17:15, MMRUser oshadha.ro...@gmail.com wrote: I ran apr-1-config --apr-libtool and it says  /apr-1/build/libtool.. and the $libdir set to: my $libdir = `pkg-config --variable=libdir apr-1`; Inside the 'apr-1-config' on your system what are the following set to? prefix=/usr

[modwsgi] Re: mod_wsgi redhat installation error

2010-04-13 Thread MMRUser
I think I have installed it I used the the rpm.. On Apr 13, 4:55 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On 12 April 2010 17:15, MMRUser oshadha.ro...@gmail.com wrote: I ran apr-1-config --apr-libtool and it says  /apr-1/build/libtool.. and the $libdir set to: my $libdir

<    1   2   3   4   5   >