in reply to perl cgi on Sierra

You need to configure your webserver, presumably apache https://httpd.apache.org/docs/2.2/howto/cgi.html
  • Comment on Re: perl cgi on Sierra (configure apache)

Replies are listed 'Best First'.
Re^2: perl cgi on Sierra (configure apache)
by RobertJ (Acolyte) on Nov 21, 2016 at 18:37 UTC

    Thanks for reply but I know all of that. Apache working including php. However, will not execute Perl cgi scripts.

    It all worked in El Capitan.

      Apple frequently changes parts of dev stuff in releases and you have to install Xcode to have a bunch of it at all. If it's serving text for the CGI and the file is executable then it can only be a missing configuration issue where CGI is not enabled for that dir.

      Thanks for reply but I know all of that. Apache working including php. However, will not execute Perl cgi scripts. It all worked in El Capitan.

      Hi,

      Are you sure? If so, what is the solution (what was the problem)?

      There is only one reason apache would treat "hello.pl" as a text file,

      its because it doesn't know to treat "hello.pl" differently,

      because it has not been configured to treat "hello.pl" differently

      Don't rely on default vendor apache configurations, vendors make changes . Maintain your own configuration file, avoid surprises.