From: Glyn M. <gly...@gm...> - 2008-09-23 20:51:48
|
Hi, 2008/9/23 Divye Kapoor <div...@gm...> > > Do all python scripts in the cgi-bin directory have execute permissions for > *all* users? I seem to remember that the linux version of CGIHTTPServer runs > the CGI scripts with a uid of nobody and that might create permission issues > in some cases. Also, are there any errors in the python log window? > > This is the trace I get: localhost - - [23/Sep/2008 22:30:38] "GET / HTTP/1.0" 200 - localhost - - [23/Sep/2008 22:30:38] "GET / HTTP/1.0" 200 - localhost - - [23/Sep/2008 22:30:38] "GET /boost.jpg HTTP/1.0" 200 - localhost - - [23/Sep/2008 22:30:38] "GET /test.xml HTTP/1.0" 200 - localhost - - [23/Sep/2008 22:30:38] "GET /test.xml HTTP/1.0" 200 - localhost - - [23/Sep/2008 22:30:38] "GET /boost.jpg HTTP/1.0" 200 - localhost - - [23/Sep/2008 22:30:38] "GET /cgi-bin/requestinfo.py?query=1 HTTP/1.0" 200 - localhost - - [23/Sep/2008 22:30:38] "GET /cgi-bin/multiline-header.py?query=1 HTTP/1.0" 200 - localhost - - [23/Sep/2008 22:30:38] code 404, message File not found localhost - - [23/Sep/2008 22:30:38] "GET /file_not_found HTTP/1.0" 404 - localhost - - [23/Sep/2008 22:30:38] "HEAD /test.xml HTTP/1.0" 200 - localhost - - [23/Sep/2008 22:30:38] "POST /cgi-bin/echo_headers.py HTTP/1.0" 200 - Traceback (most recent call last): File "/usr/lib/python2.5/CGIHTTPServer.py", line 251, in run_cgi os.execve(scriptfile, args, os.environ) OSError: [Errno 13] Permission denied localhost - - [23/Sep/2008 22:30:38] CGI script exit status 0x7f00 Running 15 test cases... libs/network/test/localhost_tests.cpp(269): fatal error in "post_with_explicit_headers": exception thrown by r = c.post(req) localhost - - [23/Sep/2008 22:30:38] "POST /cgi-bin/echo_headers.py HTTP/1.0" 200 - Traceback (most recent call last): File "/usr/lib/python2.5/CGIHTTPServer.py", line 251, in run_cgi os.execve(scriptfile, args, os.environ) OSError: [Errno 13] Permission denied localhost - - [23/Sep/2008 22:30:38] CGI script exit status 0x7f00 libs/network/test/localhost_tests.cpp(287): fatal error in "post_with_implicit_headers": exception thrown by r = c.post(req, postdata) localhost - - [23/Sep/2008 22:30:38] "POST /cgi-bin/echo_headers.py HTTP/1.0" 200 - Traceback (most recent call last): File "/usr/lib/python2.5/CGIHTTPServer.py", line 251, in run_cgi os.execve(scriptfile, args, os.environ) OSError: [Errno 13] Permission denied localhost - - [23/Sep/2008 22:30:38] CGI script exit status 0x7f00 libs/network/test/localhost_tests.cpp(306): fatal error in "post_with_explicit_content_type": exception thrown by r = c.post(req, content_type, postdata) localhost - - [23/Sep/2008 22:30:38] "POST /cgi-bin/echo_body.py HTTP/1.0" 200 - Traceback (most recent call last): File "/usr/lib/python2.5/CGIHTTPServer.py", line 251, in run_cgi os.execve(scriptfile, args, os.environ) OSError: [Errno 13] Permission denied localhost - - [23/Sep/2008 22:30:38] CGI script exit status 0x7f00 libs/network/test/localhost_tests.cpp(324): fatal error in "post_body_default_content_type": exception thrown by r = c.post(req, postdata) localhost - - [23/Sep/2008 22:30:38] "POST /cgi-bin/echo_headers.py HTTP/1.0" 200 - Traceback (most recent call last): File "/usr/lib/python2.5/CGIHTTPServer.py", line 251, in run_cgi os.execve(scriptfile, args, os.environ) OSError: [Errno 13] Permission denied localhost - - [23/Sep/2008 22:30:38] CGI script exit status 0x7f00 libs/network/test/localhost_tests.cpp(339): fatal error in "post_with_custom_headers": exception thrown by r = c.post(req, std::string()) I think I missed why you're setting the HTTP_ALL_HEADERS environment variable. How is this supposed to work? Glyn |