Python with Apache 2.0

Tim Roberts timr at probo.com
Mon Nov 22 02:46:44 EST 2004


changli_to at hotmail.com (Chang LI) wrote:

>Damjan <gdamjan at gmail.com> wrote in message news:<306sikF2sueanU1 at uni-berlin.de>...
>> > Does python support threads safely along with Apache 2.0 in web
>> > applications.
>> 
>> Are you talking about mod_python?
>> If so, then yes. But note that Apache threads entering the python
>> interpreter (via mod_python) will be serialized on the GIL.
>
>Yes, use mod_python. I plan to use Python to replace PHP and other
>languages. The low efficient CGI will be replaced by embedded Python
>program. Apache 2.0 is faviority becuase the threads are must have
>features.

I would like to point out yet again that CGI isn't as bad as many people
make it out to be.  Unless you know you need to handle thousands of
requests per minute, the overhead of creating a process and firing up the
interpreter is not significant.

CGI is certainly an easier debug environment than mod_python or any of the
long-running-process solutions.
-- 
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list