Re: stable mod_python apache not working
Thanks Almut, but still no change. I still get to see the script on
the screen and it does not run. Here are the logs:
[Mon Jul 11 19:18:41 2005] [error] (2)No such file or directory:
mod_mime_magic: can't read magic file /etc/apache/share/magic
[Mon Jul 11 19:18:42 2005] [error] (2)No such file or directory:
mod_mime_magic: can't read magic file /etc/apache/share/magic
[Mon Jul 11 19:18:43 2005] [notice] Apache/1.3.33 (Debian GNU/Linux)
mod_python/2.7.10 Python/2.3.4 mod_gzip/1.3.26.1a PHP/4.3.10-15
configured -- resuming normal operations
[Mon Jul 11 19:18:43 2005] [notice] suEXEC mechanism enabled (wrapper:
/usr/lib/apache/suexec)
[Mon Jul 11 19:18:43 2005] [notice] Accept mutex: sysvsem (Default:
sysvsem)
I'm thinking of using php exec() if this does not work. Ironically the
application is in python.
TIA,
-Indraneel
On Tue, Jul 12, 2005 at 01:05:57AM +0200, Almut Behrens wrote:
> On Mon, Jul 11, 2005 at 04:57:25PM -0500, Indraneel Majumdar wrote:
> > I am unable to get the example from the mod_python tutorial working with
> > apache, on debian stable. No error in the server logs. Apache just shows
> > me the script contents when I point the browser at it.
>
> To have Python code be handled by mod_python, make sure you have one of
> the following directives in the respective section of your apache config:
>
> AddHandler python-program .py
>
> (to have files with extension .py be handled by mod_python)
>
> or
> SetHandler python-program
>
> (applies to all files in the scope of the directive)
>
> Unfortunately, this isn't clearly mentioned in the mod_python docs (at
> least not in "2.3.2 Configuring Apache", where you would look first...).
>
> Normally you also want some mod_python-specific directives, such as
>
> PythonHandler mod_python.publisher
>
> ...depending on what exactly you want to do, of course.
>
> See the docs for what directives are available and what they do.
> http://www.modpython.org/live/mod_python-2.7.8/doc-html/
>
> Cheers,
> Almut
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
Reply to: