Graham Dumpleton
graham.dumpleton at gmail.com
Wed Mar 28 17:05:19 EST 2007
On 29/03/07, Idoia Villacián Zárate <fidita48 at hotmail.com> wrote: > > > > Hello: > > I've looked the web you gave me, but I can't see anywhere how to change the > configuration of my apache to choose the mod_python script instead of the > CGI script. I also think that I have the lastest version od the mod_python > (3.3.1). I'll be gratefull if you could help me or tell me how to resolve > the problem. Please use reply-all when responding, thus keeping the conversation on the mod_python mailing list. As to your problem, if you cannot ascertain from that document which bits referred to how to configure Apache, then you need to perhaps learn more about how to configure Apache and the language it uses to refer to its directives and where to put them. On that I can only suggest you go to the Apache documentation and start reading. Some starting points are: http://httpd.apache.org/docs/2.2/ http://httpd.apache.org/docs/2.2/configuring.html http://httpd.apache.org/docs/2.2/sections.html http://httpd.apache.org/docs/2.2/howto/cgi.html Also refer to the mod_python documentation to learn about its own specific configuration directives: http://www.modpython.org/live/current/doc-html/inst-testing.html http://www.modpython.org/live/current/doc-html/directives.html Beyond that we can't really help since you haven't actually included in your email what snippet of Apache configuration you think you are using to enable mod_python use in the first place. Thus, cannot say how it is wrong, or how it is conflicting with existing CGI configuration in your setup. The only thing we can tell you as we already have, is that error would generally arise when your script is run as a CGI program and not through mod_python. This is because the _apache module is a special module not available from command line Python and is only available when code is running inside of mod_python. That the module cannot be found indicates the code isn't running under mod_python. Oh, and please do not go sending your complete Apache configuration, just those bits which would be relevant, such as the mod_python and CGI sections. Graham
|