Python version and Apache mod_python mismatching version

2020-04-03 Thread frank . scarpa
Hello, I have a Centos7 web server with python 2.7 installed and I want Apache to serve python scripts so I figure I have to install mod_python: i know that this module is deprecated, but I need it only for internal pourposes. Is the mod_python version (which is 3.5 with Python 3 support) someho

Apache/mod_python: Registering a request handler dynamically

2008-12-28 Thread Samuel
Hi, Is there a way to dynamically overwrite the request handler from within mod_python scripts? Something along those lines: --- from mod_python import apache def myhandler(request): request.content_type = 'text/plain' request.write('Hello world') apache.set_default_handler

Re: Apache & mod_python: I don't receive anything with POST method

2008-11-27 Thread tengounplanb
On 27 nov, 15:13, [EMAIL PROTECTED] wrote: > On 26 nov, 23:22, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > > > On Nov 27, 12:21 am, [EMAIL PROTECTED] wrote: > > > > Hi, > > > > I'm using a simple form to make possible the users of our site upload > > > files. > > > > > > >     > > >     >

Re: Apache & mod_python: I don't receive anything with POST method

2008-11-27 Thread tengounplanb
On 26 nov, 23:22, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 27, 12:21 am, [EMAIL PROTECTED] wrote: > > > > > Hi, > > > I'm using a simple form to make possible the users of our site upload > > files. > > > > >     > >     > >     > >         > >         > >     > >     > > > > >

Re: Apache & mod_python: I don't receive anything with POST method

2008-11-26 Thread Graham Dumpleton
On Nov 27, 12:21 am, [EMAIL PROTECTED] wrote: > Hi, > > I'm using a simple form to make possible the users of our site upload > files. > > >     >     >     >         >         >     >     > > > The "upload.py" looks like this: > > from mod_python import apache, util; > > def index(req): >

Apache & mod_python: I don't receive anything with POST method

2008-11-26 Thread tengounplanb
Hi, I'm using a simple form to make possible the users of our site upload files. The "upload.py" looks like this: from mod_python import apache, util; def index(req): form = util.FieldStorage(req, keep_blank_values=1) try: # form is

Re: help with apache + mod_python on mac os x

2008-02-01 Thread pnrdnz
/usr/include and /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Python.framework/Versions Then re-compile apache & mod_python .. Regards, Deniz On Feb 1, 2008 11:47 PM, <[EMAIL PROTECTED]> wrote: > Hi, > I am new on everything about web development. I did many things t

help with apache + mod_python on mac os x

2008-02-01 Thread pnrdnz
Hi, I am new on everything about web development. I did many things to get the error at the end. My system has Apache 1.3 by default. I could install Apache 2.2 with no problem. I had to change all binaries in /usr/bin and /usr/sbin to new apache binaries. All ok. System came with python 2.3.1. I r

Re: Detecting memory leaks on apache, mod_python

2007-12-23 Thread Ilias Lazaridis
is about. " I'm really just looking for a low-level python (memory) profiling tool, and thus i'm asking in c.l.p. for experiences, mainly in context of an apache mod_python environment. " But seeing the responses within this thread, it looks like there's no such tool availab

Re: Detecting memory leaks on apache, mod_python

2007-12-22 Thread Steven D'Aprano
On Sat, 22 Dec 2007 13:05:23 -0800, Dennis Lee Bieber wrote: > I've never encountered such items > supported by the language. > > OS specific extensions MIGHT supply it... Picky picky... but of course you are right. When I said that programming languages I have used before had facilities

Re: Detecting memory leaks on apache, mod_python

2007-12-22 Thread Ilias Lazaridis
On 22 Δεκ, 09:09, Fredrik Lundh <[EMAIL PROTECTED]> wrote: [...] > For Python, standard process monitoring tools (combined with a basic > understanding of how dynamic memory allocation works on modern > platforms) are usually sufficient to get a good view of an application's > memory usage patterns

Re: Detecting memory leaks on apache, mod_python

2007-12-22 Thread Fredrik Lundh
Steven D'Aprano wrote: >> > Not me. >> >> You're quite knew to this internet thing, aren't you? ;-) > > :-D (hmm. why is that whenever you make some silly last-second addition to a post, you end up making a stupid typo?) >> And things like "how much memory is free in the heap" isn't even a >>

Re: Detecting memory leaks on apache, mod_python

2007-12-22 Thread Steven D'Aprano
On Sat, 22 Dec 2007 08:09:50 +0100, Fredrik Lundh wrote: > Steven D'Aprano wrote: > > > Not me. > > You're quite knew to this internet thing, aren't you? ;-) :-D >> So... how do you measure memory usage in Python? Every programming >> language I've used before (not a huge range, I'll admit)

Re: Detecting memory leaks on apache, mod_python

2007-12-21 Thread Fredrik Lundh
Steven D'Aprano wrote: > Not me. You're quite knew to this internet thing, aren't you? ;-) > So... how do you measure memory usage in Python? Every programming > language I've used before (not a huge range, I'll admit) had *some* sort > of facility to measure memory usage, typically things li

Re: Detecting memory leaks on apache, mod_python

2007-12-21 Thread Steven D'Aprano
On Fri, 21 Dec 2007 14:21:27 +0100, Diez B. Roggisch wrote: >>> So, anyone who hit's on this thread via a search will think >>> >>> a) that there's really no memory leak detection for python b) that >>> this community is not very helpful > > c) That finally people in this forum are smart enough t

Re: Detecting memory leaks on apache, mod_python

2007-12-21 Thread Ilias Lazaridis
On Dec 21, 3:21 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: [...] Please get serious, Mr.! (and avoid further off-topics) . -- http://mail.python.org/mailman/listinfo/python-list

Re: Detecting memory leaks on apache, mod_python

2007-12-21 Thread Ilias Lazaridis
D]> wrote: > > > > How to detect memory leaks of python programms, which run in an > > > > environment like this: > > > > > * Suse Linux 9.3 > > > > * Apache > > > > *mod_python > > > > > The problem occoure

Re: Detecting memory leaks on apache, mod_python

2007-12-21 Thread Diez B. Roggisch
>> So, anyone who hit's on this thread via a search will think >> >> a) that there's really no memory leak detection for python >> b) that this community is not very helpful c) That finally people in this forum are smart enough to detect your flamebait & refuse to comment on it, Ilias... > Comm

Re: Detecting memory leaks on apache, mod_python

2007-12-21 Thread Graham Dumpleton
rogramms, which run in an > > > environment like this: > > > >  * Suse Linux 9.3 > > >  * Apache > > >  *mod_python > > > > The problem occoured after some updates on the infrastructure. It's > > > most possibly caused by trac and it'

Re: Detecting memory leaks on apache, mod_python

2007-12-21 Thread Ilias Lazaridis
On Dec 19, 5:40 am, Ilias Lazaridis <[EMAIL PROTECTED]> wrote: > On Dec 17, 8:41 am, Ilias Lazaridis <[EMAIL PROTECTED]> wrote: > > > How to detect memory leaks of python programms, which run in an > > environment like this: > > > * Suse Linux 9.3 > >

Re: Detecting memory leaks on apache, mod_python

2007-12-18 Thread Ilias Lazaridis
On Dec 17, 8:41 am, Ilias Lazaridis <[EMAIL PROTECTED]> wrote: > How to detect memory leaks of python programms, which run in an > environment like this: > > * Suse Linux 9.3 > * Apache > * mod_python > > The problem occoured after some updates on the infrastructur

Detecting memory leaks on apache, mod_python

2007-12-16 Thread Ilias Lazaridis
How to detect memory leaks of python programms, which run in an environment like this: * Suse Linux 9.3 * Apache * mod_python The problem occoured after some updates on the infrastructure. It's most possibly caused by trac and it's dependencies, but several components of the OS whe

Re: Configuration: Apache + mod_python

2007-03-09 Thread Graham Dumpleton
On Mar 9, 7:09 pm, "Danilo" <[EMAIL PROTECTED]> wrote: > On 8 Mrz., 22:23, [EMAIL PROTECTED] wrote: > > > > > On Mar 9, 12:02 am, "Danilo" <[EMAIL PROTECTED]> wrote: > > > > On 8 Mrz., 12:18, [EMAIL PROTECTED] wrote: > > > > > On Mar 8, 9:50 pm, "Danilo" <[EMAIL PROTECTED]> wrote: > > > > > > Hi th

Re: Configuration: Apache + mod_python

2007-03-09 Thread Danilo
On 8 Mrz., 22:23, [EMAIL PROTECTED] wrote: > On Mar 9, 12:02 am, "Danilo" <[EMAIL PROTECTED]> wrote: > > > > > On 8 Mrz., 12:18, [EMAIL PROTECTED] wrote: > > > > On Mar 8, 9:50 pm, "Danilo" <[EMAIL PROTECTED]> wrote: > > > > > Hi there, > > > > > is it possible to create a rewrite rule to send ever

Re: Configuration: Apache + mod_python

2007-03-08 Thread Graham . Dumpleton
On Mar 9, 12:02 am, "Danilo" <[EMAIL PROTECTED]> wrote: > On 8 Mrz., 12:18, [EMAIL PROTECTED] wrote: > > > > > On Mar 8, 9:50 pm, "Danilo" <[EMAIL PROTECTED]> wrote: > > > > Hi there, > > > > is it possible to create a rewrite rule to send every server-request > > > to the directory /py? But only i

Re: Configuration: Apache + mod_python

2007-03-08 Thread Danilo
On 8 Mrz., 12:18, [EMAIL PROTECTED] wrote: > On Mar 8, 9:50 pm, "Danilo" <[EMAIL PROTECTED]> wrote: > > > Hi there, > > > is it possible to create a rewrite rule to send every server-request > > to the directory /py? But only if the file does not exists on the > > server. > > > This is my mod_pytho

Re: Configuration: Apache + mod_python

2007-03-08 Thread Graham . Dumpleton
On Mar 8, 9:50 pm, "Danilo" <[EMAIL PROTECTED]> wrote: > Hi there, > > is it possible to create a rewrite rule to send every server-request > to the directory /py? But only if the file does not exists on the > server. > > This is my mod_python section of the apache config-file. > > > SetHa

Configuration: Apache + mod_python

2007-03-08 Thread Danilo
Hi there, is it possible to create a rewrite rule to send every server-request to the directory /py? But only if the file does not exists on the server. This is my mod_python section of the apache config-file. SetHandler python-program PythonHandler django.core.handlers.modpytho

Re: apache & mod_python

2006-12-09 Thread Graham Dumpleton
be taken into consideration are "winnt" on Windows platforms and "worker" on UNIX platforms. What this all means is that when these MPMs are used there can be concurrent request handlers executing in distinct threads within the same Apache processes. Thus, where common data is access

Re: apache & mod_python

2006-12-08 Thread Maxim Sloyko
m.banaouas wrote: > Can i install and use "Apache 2.2.3" & "mod_python 3.2.10" (most recent > versions) without facing any known major issue ? Works fine for me. The only "known major issue" you can face is general non-threadsafety of Python interpreter. So, if you are using Apache MPM, you have

apache & mod_python

2006-12-08 Thread m.banaouas
Hi, bonjour, witch versions are suitable to use for apache & mod_python ? Can i install and use "Apache 2.2.3" & "mod_python 3.2.10" (most recent versions) without facing any known major issue ? thanks for any help. -- http://mail.python.org/mailman/listinfo/python-list

Re: apache mod_python problem

2006-02-16 Thread Ido Yehieli
please ignore that last message, the instructions on that webpage worked, it was my fault. Thanks, Ido. -- http://mail.python.org/mailman/listinfo/python-list

Re: apache mod_python problem

2006-02-16 Thread Ido Yehieli
Hi Graham, thank you for that link but it didn't help. I've followed the instructions, yet In the 'basic-content-handler' section, after getting to the point where it says to add this to the main Apache configuration file: AllowOverride FileInfo I replaced /some/directory with the correct direc

Re: apache mod_python problem

2006-02-15 Thread grahamd
Ido Yehieli wrote: > Thank you for your response, > but I think it's not it - that didn't make any difference. Suggest you read: http://www.dscpl.com.au/articles/modpython-001.html It contains helpful hints for getting a basic handler working in mod_python. If you can get that working, then t

Re: apache mod_python problem

2006-02-15 Thread Ido Yehieli
Thank you for your response, but I think it's not it - that didn't make any difference. -- http://mail.python.org/mailman/listinfo/python-list

Re: apache mod_python problem

2006-02-15 Thread Dennis Benzinger
Ido Yehieli schrieb: > [...] > Anyone has any idea as to what went wrong? > [...] If you compiled mod_python as a Dynamic Shared Object (DSO) you have to tell Apache to load that module. For example like this: LoadModule python_module libexec/mod_python.so See the mod_python documentation, espe

apache mod_python problem

2006-02-15 Thread Ido Yehieli
Hi all, I have succesfully installed apache+mod_python (ubuntu 5.10 (Breezy), libapache2-mod-python2.4 Version: 3.1.3-3ubuntu1, apache2 Version: 2.0.54-5ubuntu4, python2.4 Version: 2.4.2-1). It seems apache and everything functions fine. I tried to run the example application from the

Re: problem running a python script using apache,mod_python on linux

2005-10-19 Thread Brad Teale
Neha, > I have made the required changes to the httpd.conf file > *** > LoadModule python_module /home/ngupta/Apache2/modules/mod_python.so Did you also add the line: AddModule mod_python.c > DocumentRoot "/home/ngupta/Apache2/htdocs" > > > AllowOverride FileInfo > > > *** > I m using a

problem running a python script using apache,mod_python on linux

2005-10-19 Thread neha
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using are apache version2. mod_python v3.1.14 python2.4 The problem is,when i m running my python script,after

Re: Apache mod_python

2005-04-18 Thread Sizer
Dan <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > My question is, how mature/stable is mod_python? Is it suitable for a > production environment? The documentation is a bit lacking, and I've I use mod_python for all my web stuff, including several live production sites - no problems

Re: Apache mod_python

2005-04-18 Thread David Fraser
Dan wrote: I've been writing a server application in Python. The app listens on a socket and interfaces to a database. Now I'd like to write a web application to also access the database. It seems natural to use Python. I've installed mod_python (Debian libapache2-mod-python2.3, mod_python 3.1.3-

Apache mod_python

2005-04-17 Thread Dan
I've been writing a server application in Python. The app listens on a socket and interfaces to a database. Now I'd like to write a web application to also access the database. It seems natural to use Python. I've installed mod_python (Debian libapache2-mod-python2.3, mod_python 3.1.3-4). My q

Apache/mod_python & MySQLdb

2005-01-12 Thread scott
AIUI, global variables are supposed to be preserved within each Apache thread/prcoess. However, I'm importing and using MySQLdb within a class in a separate module, which is in turn imported and used within a _function (ie. not "published"). So, AFAICT, it's not supposed to be preseved. But u