[mod_python] server misconfig error

Mike Dewhirst miked at dewhirst.com.au
Wed Aug 24 05:26:21 EDT 2005

I have a problem which defeats me and would appreciate any assistance.

I'm just starting out with mod_python. I have two Apache servers on two 
WinXP machines. A desktop and a laptop. They are "identical" and one 
works while the other doesn't. Laptop Apache and mod_python works; the 
desktop don't.

I have checked for identical directory structures and installations of 
relevant software.

I'm using the same httpd.conf file for each. There must be something I'm 

Apache 2.0.50 and mod_python 3.1.3 and python 2.3.4 on both machines ...

The test I used to get started is ...

1. Straight HTML form (collect.html) which collects a few data items 
like this ...

<form name="frmCollect" method="post" action="/cgi-bin/collect.py"> etc

2. collect.py just builds a page from the collected data and prints it 
back to the browser to prove it all works. Nothing tricky and as I said 
above, my first attempt worked. The laptop's Apache server setup didn't 
miss a beat. It still works.

3. Time comes to replicate the setup using the desktop as a server and I 
promise I have taken two hours to do this - the browser on the laptop 
happily brings up desktop's collect.html but desktop's Apache barfs with 
the following ...

[Wed Aug 24 18:46:03 2005] [error] [client] (OS 3)The 
system cannot find the path specified.  : couldn't create child process: 
720003: collect.py, referer:
[Wed Aug 24 18:46:03 2005] [error] [client] (OS 3)The 
system cannot find the path specified.  : couldn't spawn child process: 
C:/apache/Apache2/htdocs/test/py/collect.py, referer:

laptop is and I lied about identical httpd.conf files - I 
edited the server name on the desktop to reflect reality ie.,

Here are some relevant portions of http.conf which are identical in both 
machines ...
DocumentRoot "C:/apache/Apache2/htdocs/test"
<Directory c:/apache/Apache2/htdocs/test/py>
    Options ExecCGI
    AllowOverride All
    AddHandler mod_python .py
    AddHandler cgi-script .py # PythonHandler *
    PythonDebug On
ScriptAlias /cgi-bin/ "C:/apache/Apache2/htdocs/test/py/"
<Directory "C:/apache/Apache2/htdocs/test/py">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050824/5f7cac0f/attachment.html

More information about the Mod_python mailing list