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
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
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.
>
> > >
> > >
> > >
>
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.
>
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
> >
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):
>
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
/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
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
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
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
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
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
>>
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)
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
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
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
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
>> 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
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'
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
> >
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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-
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
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
43 matches
Mail list logo