[mod_python] Installing mod_python (newbie)

Philippe C. Martin pmartin at snakecard.com
Tue Oct 18 15:16:28 EDT 2005

On Tuesday 18 October 2005 06:40 pm, Jorey Bump wrote:
> Philippe C. Martin wrote:
> > As I have tried a few things, my httpd.conf has changed some (included at
> > the end of this email).
> Just send the mod_python parts, not the whole thing. :)

Right: excerpt from my last email:

I also noticed that the localhost/mp pages shows "Apache/2.0.55 (Unix) 
mod_python/3.2.0b Python/2.4.2 Server at Port 80" at the bottom.

Index of /mp

Icon  Name                    Last modified      Size  Description[DIR] Parent 
Directory                             -   
[DIR] hide/                   18-Oct-2005 17:47    -   
[   ] index.py                18-Oct-2005 18:38  173   

Apache/2.0.55 (Unix) mod_python/3.2.0b Python/2.4.2 Server at Port 

Also, I changed index.py to a much simpler script (but still no go):

from mod_python import apache

def handler(req):
    req.content_type = "text/plain"
    req.write("Hello World!")
    return apache.OK

> > PS: I'm also using DSO as I have not managed to get the static version to
> Read the docs carefully:
>   http://www.modpython.org/live/current/doc-html/inst-compiling.html

Yes I did and figured it was OK
>   2.2 Compiling
>     At this time only DSO is supported by mod_python.

> > configure, configure kept looking for config files/dirs in
> > /usr/local/apache2 while I have apache installed in /usr/local - so I
> > creation some symbolic link (conf, logs, icons) in /usr/local/apache2: I
> > used to have apache pre-compiled but recompiled it for the above problem.
> Perhaps you should recompile apache and use the default location of
> /usr/local/apache2. I find it to be cleaner. It's up to you, but you're
> already using symlink hacks, so why not just use the default location?
> In fact, if you're only compiling apache to install mod_python, you can
> probably revert to the precompiled version for your platform, as long as
> it's 2.x and includes all headers. What platform is this?
I'll give it a shot and get back to you

> > ********* START - SATIC LINK*************
> > ./configure --with-apxs=/usr/local/apache2/bin/
> This should point to the actual apxs binary:
I actually did at the time as I had apache installed at the default location, 
I went back to /usr/local because of the static link "problem" and that I 
found /usr/local was recomended on some tutorial

>   ./configure --with-apxs=/usr/local/apache2/bin/apxs
> > --with-apache=/home/philippe/downloaded/httpd-2.0.55/
> This looks wrong, and you probably don't need this option, anyway.

Well, this is where I have my apache source (where I type ./configure)

So I'll try all over just in case.



> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

Philippe C. Martin
SnakeCard, LLC
+1 405 694 8098

More information about the Mod_python mailing list