Apache Mod-Python - Cool feature from mod_perl : Configure Apache with Perl

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > February 2006 > Cool feature from mod_perl : Configure Apache with Perl





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Cool feature from mod_perl : Configure Apache with Perl
Nicolas Lehuen

2006-02-13, 5:49 pm

Hi,

I'm currently reading the feature section from mod_perl. Initially, I
was trying to find information about how they cope with
multithreading, multiple interpreter instantiation and code reloading,
but I stumbled upon this :

http://perl.apache.org/start/tips/config.html

Now, I can't stand Perl, but this feature is quite cool, isn't it ?
Would it be difficult to implement, say, in mod_python 4.0 ?

Regards,
Nicolas

Jim Gallacher

2006-02-13, 5:49 pm

Nicolas Lehuen wrote:
> Hi,
>
> I'm currently reading the feature section from mod_perl. Initially, I
> was trying to find information about how they cope with
> multithreading, multiple interpreter instantiation and code reloading,
> but I stumbled upon this :
>
> http://perl.apache.org/start/tips/config.html
>
> Now, I can't stand Perl, but this feature is quite cool, isn't it ?
> Would it be difficult to implement, say, in mod_python 4.0 ?


Wow, that is cool! And yes, mp 4.0 is likely a pretty good time frame.

Jim

Graham Dumpleton

2006-02-13, 5:49 pm

Nicolas Lehuen wrote ..
> Hi,
>
> I'm currently reading the feature section from mod_perl. Initially, I
> was trying to find information about how they cope with
> multithreading, multiple interpreter instantiation and code reloading,
> but I stumbled upon this :
>
> http://perl.apache.org/start/tips/config.html
>
> Now, I can't stand Perl, but this feature is quite cool, isn't it ?
> Would it be difficult to implement, say, in mod_python 4.0 ?


I had seen that feature as well. I also thought it would be interesting to
look at it but also figured it would be much later rather than sooner. As
you can see from all the JIRA reports lately I think there is enough work
to do to fill out even the current stuff with little bits that are missing and
making mod_python work properly in the Apache way.

In general I think there is probably a lot of ideas we can get from looking
at mod_perl. BTW, if you haven't stumbled across it already, someone
has a full copy of "Writing Apache Modules with PERL and C" online at:

http://162.105.203.19/apache-doc/1.htm

I'm probably still going to go and buy the dead tree version today if I
can get the time. Easier to flick through then.

Anyway, there is a really good description of the basic Apache life cycle
for requests in there which even people only using mod_python may
find it worthwhile to read at some point to help understand the different
request phases. Pity that mod_python doesn't quite get it right.

Graham

Gregory (Grisha) Trubetskoy

2006-02-13, 5:49 pm


This has been discussed before, and I think it came down to that it wasn't
clear how this is any better than simply generating your httpd.conf with
an outside Python script.

I think some other arguments were that this changes the syntax of the
config file very radically and therefore this isn't the right idea
(regardless of the language) and also the Python indentation becomes an
issue to deal with.

Grisha

On Mon, 13 Feb 2006, Nicolas Lehuen wrote:

> Hi,
>
> I'm currently reading the feature section from mod_perl. Initially, I
> was trying to find information about how they cope with
> multithreading, multiple interpreter instantiation and code reloading,
> but I stumbled upon this :
>
> http://perl.apache.org/start/tips/config.html
>
> Now, I can't stand Perl, but this feature is quite cool, isn't it ?
> Would it be difficult to implement, say, in mod_python 4.0 ?
>
> Regards,
> Nicolas
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com