Hi, I'm trying to do my testing offline so I enabled Personal Web Server. PHP already working (mostly) but no way with cgi scripts.
I'm editing them on TextEdit (preferences set to plain text)
As an example, I'm trying to run test.pl (/Library/WebServer/CGI-Executables) that looks like:
#!/usr/bin/perl
print "Content-type: text/html\r\n\r\n";
print "Hello, World.";
I already chmod it to 755
But if I test it on Terminal (wchich, by the way I'm not familiar at all with) using ./test.pl
I get the message
./test.pl: line 2: print: command not found
./test.pl: line 3: print: command not found
My perl is in usr/bin (usr/local/bin dowsn't even exist)
I checked http.conf and Aliases points to CGI-Executables
So... what can I do now?