If you've got the Apache web server software working under OS X El Capitan, but want to use Python scripts with Apache, the following steps will allow you to run Python scripts from a cgi-bin directory.
First, ensure that the hash sign (#) is removed from the
LoadModule cgi_module libexec/apache2/mod_cgi.so in
/etc/apache2/httpd.conf. If you need to remove the hash/pound sign,
restart Apache after modifying the file, which you can do with
sudo apachectl restart. You will also need to use the
sudo command
to edit the file, if you edit it with a text editor such as
GNU nano or
vi.
[ More Info ]
