RobertJ has asked for the wisdom of the Perl Monks concerning the following question:
Going Crazy.
Have got my Apache server running under Sierra; however, none of my cgi scripts works. In desperation I wrote a simple Hello World script but even that doesn't work; the script shows up as text in the browser instead of executing. Here is the script.
#!/usr/bin/perl # hello.pl -- a simple perl script! print "Content-type: text/html\n\n"; print "Hello, world!\n";
Permissions on the directory/script are correct rwxr-xr-x with "me" as owner and group as "staff".
This worked using El Capitan. Hopefully there is someone out there on a Mac with a solution/suggestion.
Will be off line for the next 15 hours; not ignoring any help. Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl cgi on Sierra (configure apache)
by Anonymous Monk on Nov 20, 2016 at 23:13 UTC | |
by RobertJ (Acolyte) on Nov 21, 2016 at 18:37 UTC | |
by Your Mother (Archbishop) on Nov 21, 2016 at 20:38 UTC | |
by Anonymous Monk on Nov 22, 2016 at 01:12 UTC |