[mod_python] What is happening here ?

Damjan gdamjan at mail.net.mk
Sat May 19 12:03:10 EST 2001


On Mon, May 14, 2001 at 10:34:29PM +1000, David Creelman wrote:
> > ...
> >
> > > No module named myscript
> > >
> > > I get this error when I try to run the following script.
> > >
> > ...
> >
> > How is Apache setup, and where is the 'myscript.py' script located?
> > It seems that mod_python can't find your 'myscript.py' file.
>
> myscript.py is in /var/www/cgi-bin. I'm running Mandrake 8.0.
> 
> Should it go somewhere else ?

Yes! Put it somewhere in the python search path.

Also you should probably reread the mod_python documentation. 
mod_python is not related to CGI scripts, but is a scripting engine
inside the apache process. You can do much more with mod_python than
with CGI.

-- 
Damjan Georgievski		|           Дамјан Георгиевски
Skopje, Macedonia		|           Скопје, Македонија



More information about the Mod_python mailing list