[mod_python] Error testing installation of mod_python

Tim Valenta tonightslastsong at gmail.com
Fri Mar 27 16:47:46 EDT 2009


I notice that it says your gateway interface is CGI, but I'm not sure if
that's what it always says or not.  (I have never quite payed attention to
that part before.)
It took me a while to get used to the way mod_python decides if a URL maps
to a function or not.  If I remember right, that "/mpinfo" call should look
for an "mpinfo.py" file's "index" function.  (I think to reach index.py's
"mpinfo" function, you'd have to pull a string or two more, or just request
"/index/mpinfo").

If I've gotten that wrong somehow, someone feel free to correct me, but
that's how I remember it working.  I don't have it in front of me yet.

Tim

2009/3/27 Sandhya Uppada <sandhya.samson at gmail.com>

> Hi,
>
> I'm trying to install mod python on my Windows XP. I installed and
> configured mod_python as per the installtion guide but when I test it using
> the simple "hello world" program, I get HTTP 404 Error. I'm new to this and
> need help in figuring this out. Following is the /mpinfo output. Pls give me
> some pointers that can look at and correct this error.
>
> Regards,
> Sandhya
>
>   Apache version Apache/2.2.11 (Win32) mod_python/3.3.1 Python/2.5.4 Apache
> threaded MPM Yes, maximum 64 threads / process Apache forked MPM No
> (single process MPM) Apache server root C:/Program Files/Apache Software
> Foundation/Apache2.2 Apache document root C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs Apache error log C:/Program Files/Apache
> Software Foundation/Apache2.2\logs/error.log (view last 100 lines<http://localhost/mpinfo?view_log=1>
> ) Python sys.version 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310
> 32 bit (Intel)] Python sys.path
>
> C:\WINDOWS\system32\python25.zip
> C:\Python25\Lib
> C:\Python25\DLLs
> C:\Python25\Lib\lib-tk
> C:\Program Files\Apache Software Foundation\Apache2.2
> C:\Program Files\Apache Software Foundation\Apache2.2\bin
> C:\Python25
> C:\Python25\lib\site-packages
>
>  Python interpreter name BOB_SANDY.domain_not_set.invalid mod_python.publisher
> available Yes mod_python.psp available Yes Request input headers  Key
> Value Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, application/vnd.ms-excel,
> application/vnd.ms-powerpoint, application/msword, */* Accept-Language
> en-us UA-CPU x86 Accept-Encoding gzip, deflate User-Agent Mozilla/4.0
> (compatible; MSIE 7.0; Windows NT 5.1; MSDigitalLocker; .NET CLR 1.1.4322;
> InfoPath.1) Host localhost Connection Keep-Alive Request environment  Key
> Value GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD
> GET QUERY_STRING  REQUEST_URI /mpinfo SCRIPT_NAME /mpinfo HTTP_ACCEPT image/gif,
> image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash,
> application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
> */* HTTP_ACCEPT_LANGUAGE en-us HTTP_UA_CPU x86 HTTP_ACCEPT_ENCODING gzip,
> deflate HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
> MSDigitalLocker; .NET CLR 1.1.4322; InfoPath.1) HTTP_HOST localhost
> HTTP_CONNECTION Keep-Alive PATH C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\HPQ\IAM\bin;C:\Program Files\Java\jdk1.6.0_12\bin;C:\Program
> Files\Sun\JavaDB\bin;C:\Python26;C:\Eclipse-SDK-3.4.1-win32\eclipse
> SystemRoot C:\WINDOWS COMSPEC C:\WINDOWS\system32\cmd.exe PATHEXT
> .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH WINDIR C:\WINDOWS
> SERVER_SIGNATURE  SERVER_SOFTWARE Apache/2.2.11 (Win32) mod_python/3.3.1
> Python/2.5.4 SERVER_NAME localhost SERVER_ADDR 127.0.0.1 SERVER_PORT 80
> REMOTE_ADDR 127.0.0.1 DOCUMENT_ROOT C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs SERVER_ADMIN name at somedomain.com
> SCRIPT_FILENAME C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs/mpinfo REMOTE_PORT 3354
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
>


-- 
"Python is the unholy bastard step-child between Ruby and PHP."
"I'd let an ipod blow up on my leg for $150,000."
"but Ben and Jerry do make a lovely couple."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20090327/52b86610/attachment-0001.html


More information about the Mod_python mailing list