Try to make sure that the file is in UNIX (\n) text format, and not DOS (\r\n) text format.
You won't see the \r when just looking at the file, but you can use od to find it. The shell interpreter reads the \r as part of the #!/usr/bin/perl line, and it can't find /usr/bin/perl\r :> Jeremy Schwartz wrote: > > I am trying to get the CGIs to run on Mac OSX and I am getting the following > errors: > > Running from a browser @ http://www5.starmark.com/cgi-bin/verify_install.cgi > > >Internal Server Error > >The server encountered an internal error or misconfiguration and was unable to > >complete your request. > > > >Please contact the server administrator, [EMAIL PROTECTED] and inform them of > >the time the error occurred, and anything you might have done that may have > >caused the error. > > > >More information about this error may be available in the server error log. > > > >------------------------------------------------------------------------ > >Apache/1.3.22 Server at www5.starmark.com Port 80 > > Here is my perl info: > > >[localhost:/Library/WebServer/CGI-Executables] admin% where perl > >/usr/bin/perl > > > >Here is the header of the verify_install.cgi: > > > >#!/usr/bin/perl > > So it seems like this should work fine. I am on Mac OSX 10.1.2 > > Running from command line: > > >[localhost:/Library/WebServer/CGI-Executables] admin% ls -l > >total 416 > >-rwxrwxrwx 1 admin admin 5603 Jan 10 16:27 RACE.cgi > >-rwxr-xr-x 1 admin admin 306 Jan 11 09:24 hello_world.pl > >-rw-r--r-- 1 admin admin 1712 Dec 23 1999 logo.gif > >-rwxrwxrwx 1 admin admin 77389 Jan 10 16:26 manage.cgi > >-rwxrwxr-x 1 root admin 5398 Nov 13 06:42 printenv > >-rwxrwxrwx 1 admin admin 59332 Jan 10 16:26 reg_system.cgi > >-rwxrwxrwx 1 admin admin 11115 Jan 10 16:26 register.cgi > >-rwxrwxrwx 1 admin admin 15418 Jan 10 16:26 renew.cgi > >-rwxrwxr-x 1 root admin 757 Nov 13 06:41 test-cgi > >-rwxr-xr-x 1 root admin 3525 Jan 11 10:03 textclock.pl > >-rwxr-xr-x 1 admin admin 9495 Jan 10 16:26 verify_install.cgi > >[localhost:/Library/WebServer/CGI-Executables] admin% verify_install.cgi > >verify_install.cgi: Command not found. > > TIA > --------------------------------------- > Jeremy Schwartz Starmark > Interactive Developer > [EMAIL PROTECTED] 954-761-1600 -- Adrian Daminato Tucows International Corp. http://www.tucows.com Tel: (416) 535-0123 Fax: (416) 531-5584 Beauty awakens the soul to act. - Dante
