[mod_python] cannot get mod-python to work !

Graham Dumpleton grahamd at dscpl.com.au
Mon May 2 06:41:58 EDT 2005


What is the URL you are using for the request?

On 02/05/2005, at 8:25 PM, Graeme Matthew wrote:

> Hi all, I used mod-python with apache 1.3 about a year ago and it took 
> minutes to setup. I am now trying to set it up for Apache 2.0, and 
> what a time consuming task this has become. It is taking a lot to get 
> used to Apache2's layout instead of a simple HTTP.conf file so who 
> knows where other directives are.
>
> In summary I have done the following:
>
> I have created a folder called /contrado and created a fc.py script 
> which contains:
>
> from mod_python import apache
>
> def handler(req):
>    req..content_type = "text/html"
>    req.send_http_header()
>    req.write("Welcome to modpython!")
>    return apache.OK
>
> I have placed the following into my http.conf file
>
> <Directory /contrado>
> AddHandler mod_python .py
> PythonHandler fc
> PythonDebug On
> </Directory>
>
> The error log keeps reporting
>
> [Sun May 01 22:12:24 2005] [notice] mod_python: Creating 32 session 
> mutexes based on 6 max processes and 25 max threads.
> [Sun May 01 22:12:24 2005] [notice] Apache/2.0.53 (Debian GNU/Linux) 
> mod_python/3.1.3 Python/2.3.5 configured -- resuming normal operations
> [Sun May 01 22:12:30 2005] [error] [client 10.1.1.2] File does not 
> exist: /var/www/contrado
> [Sun May 01 22:12:35 2005] [error] [client 10.1.1.2] File does not 
> exist: /var/www/contrado
> [Sun May 01 22:12:39 2005] [error] [client 10.1.1.2] File does not 
> exist: /var/www/contrado
>
> Im lost here any help would be much appreciated ...



More information about the Mod_python mailing list