in reply to Re: CGI on Mac OS X 10.11
in thread CGI on Mac OS 10.11

Hm, looks like my other comment ended up anonymous. Anyway, as I said, I changed the conf file, stopped and started Apache, and it didn't work at all; the browser said it couldn't find the server. As for SIP, I heard about it a few days ago. Didn't like it, switched it off.

Replies are listed 'Best First'.
Re^3: CGI on Mac OS X 10.11
by poj (Abbot) on Feb 03, 2016 at 13:17 UTC

    Do you have an access.log and error.log in possibly /var/log/apache2/ ?

      Mostly for Chuma's benefit:

      The ErrorLog directive (in httpd.conf) specifies the pathname of the error log.

      I haven't changed the default. Here's mine (including the preceding, important comments re <VirtualHost>):

      # # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a <VirtualHost> # container, error messages relating to that virtual host will be # logged here. If you *do* define an error logfile for a <VirtualHost +> # container, that host's errors will be logged there and not here. # ErrorLog "/private/var/log/apache2/error_log"

      The CustomLog directive specifies the pathname of the access log. It has much the same comments re <VirtualHost>. Mine's called access_log and is in the same directory as error_log.

      For poj:

      You were effectively correct with the location: /var is a symlink to /private/var.

      — Ken

Re^3: CGI on Mac OS X 10.11
by NetWallah (Canon) on Feb 03, 2016 at 19:34 UTC
    As poj has hinted, your config changes to apache config files may have an error, preventing apache from starting. The error.log should show what the problem is.

    The apache config should contain something like this:

    <Directory "/Library/WebServer/CGI-Executables"> AllowOverride None Options +ExecCGI Require all granted </Directory>

            ...The words of the Prophets are written on the Facebook wall.