in reply to CGI on Mac OS 10.11

You need to give us a little more info, to be able to help.
Show us the response to:
ls -l /Library/WebServer/CGI-Executables/
and
sudo apache2ctl restart
Also - did you paste in EXACTLY the code recommended at http://editrocket.com/articles/perl_apache_mac.html ?

Can you also show the output of:

perl /Library/WebServer/CGI-Executables/test.pl
Apache also keeps a log of requests made .. you should be able to locate
/var/log/apache/access.log and error.log.

Check the content of those files. (The location may be slightly different on a mac).

Apache configuration files located under /etc need to point to the CGI directory.

        "I can cast out either one of your demons, but not both of them." -- the XORcist

Replies are listed 'Best First'.
Re^2: CGI on Mac OS 10.11
by Anonymous Monk on Feb 03, 2016 at 11:38 UTC

    Yep, copied the code straight from the webpage. Tried stopping and starting Apache several times. Here's some terminal output.

    Megan:~ Chuma$ ls -l /Library/WebServer/CGI-Executables/ total 8 -rw-r--r-- 1 root wheel 1074 Dec 17 2012 printenv.vbs -rw-r--r-- 1 root wheel 1133 Dec 17 2012 printenv.wsf -rwxr-xr-x@ 1 Chuma staff 157 Feb 3 02:52 test.pl
    Megan:~ Chuma$ perl /Library/WebServer/CGI-Executables/test.pl Content-type: text/html; charset=iso-8859-1 <html><body>Test Page</body></html>Megan:~ Chuma$

    kcott: I tried those changes, but now it doesn't work at all - browser says it can't find "localhost".