Very Newbee to OSX Perl I have been running cgi(s) created by MacPerl on an OS9 (Appleshare 6.3..) server for about 5 years. I have now brought up an new server running OSX 10.3x. I need to migrate these scripts or a modified version of them to the OSX box.
I figured out how to set the file permissions using chmod 755 filename and turning on CGI Execution on the server. I did the test of running "test-cgi" sample script on the OSX box and it works fine. (See the results below.) I am using Affrus as the editor and have set the linefeeds to "Unix".
What I can't get going are my OS9 scripts. When I execute my scripts, the browser is redirected to "http://foo.example.com/cgi-bin/tester" (don't know where that came from) I wrote a simple script to create a web page using Affrus. It only allows me to save as a ".pl" document. When I execute it, I get a text version of the page. Like the browser only sees the output as a text file.
What if any initial setting are there in OSX I need to set. Is there a cgi call I need to reference or activate?
Albert Kaltenbaeck
CGI/1.0 test script report:
argc is 0. argv is .
SERVER_SOFTWARE = Apache/1.3.29 (Darwin) SERVER_NAME = www.lawrenceasc.com GATEWAY_INTERFACE = CGI/1.1 SERVER_PROTOCOL = HTTP/1.1 SERVER_PORT = 16080 REQUEST_METHOD = GET HTTP_ACCEPT = */* PATH_INFO = PATH_TRANSLATED = SCRIPT_NAME = /cgi-bin/test-cgi QUERY_STRING = REMOTE_HOST = REMOTE_ADDR = 66.140.83.13 REMOTE_USER = AUTH_TYPE = CONTENT_TYPE = CONTENT_LENGTH =