I have read your tutorial and found it very useful .. but I am stuck with a simple problem.
1) If I look into finder under this path "/Library/WebServer/CGI-Executables" I dont see ne files (as u mentioned that there will be printenv and test-cgi)
2) I followed the tutorial till Part-1 done, Part-2 Page1 (but the test-cgi doesnt ececute) and access_log says :
[Tue Nov 9 22:46:05 2004] [error] [client 127.0.0.1] attempt to invoke directory as script: /Library/WebServer/CGI-Executables
[Tue Nov 9 22:49:52 2004] [error] [client 127.0.0.1] attempt to invoke directory as script: /Library/WebServer/CGI-Executables
[Tue Nov 9 22:50:24 2004] [error] [client 127.0.0.1] attempt to invoke directory as script: /Library/WebServer/CGI-Executables
[Tue Nov 9 22:59:29 2004] [error] [client 127.0.0.1] script not found or unable to stat: /Library/WebServer/CGI-Executables/test-ccgi
[Tue Nov 9 22:59:34 2004] [error] (2)No such file or directory: exec of /Library/WebServer/CGI-Executables/test-cgi failed
[Tue Nov 9 22:59:34 2004] [error] [client 127.0.0.1] Premature end of script headers: /Library/WebServer/CGI-Executables/test-cgi
[Tue Nov 9 23:26:59 2004] [error] [client 127.0.0.1] script not found or unable to stat: /Library/WebServer/CGI-Executables/test-cgi
[Tue Nov 9 23:30:16 2004] [error] [client 127.0.0.1] script not found or unable to stat: /Library/WebServer/CGI-Executables/test-cgi.cgi
By looking at them could u plz tell me whats the prob with this CGI ..
(one more thing could someone place a copy of 'test-cgi' and 'printenv' on internet???)
Zeeshan
Showing messages 1 through 1 of 1.
Error Message : test-cgi not found
2004-11-24 20:19:41
idenrosenthal
[View]
I believe the tutorial was written for an earlier version of Apache than the one supplied with Panther 10.3.x. You can learn just as much by writing your own cgi file and changing its permissions. For starters try :
#!/bin/sh
echo "Content-type: text/html"
echo
echo "Something"
or something more exotic if you like. The printenv and test-cgi scripts presented security problems I read somewhere by googling test-cgi Apache
#!/bin/sh
echo "Content-type: text/html"
echo
echo "Something"
or something more exotic if you like. The printenv and test-cgi scripts presented security problems I read somewhere by googling test-cgi Apache