G'day Chuma,
I'm runnng Mac OS X 10.10.3 (Yosemite).
Your version, Mac OS X 10.11.x (El Capitan), has quite a few restrictions which are new:
just be aware that information I've provided below may not be valid for your version.
I don't believe these restrictions are related to your current issue (although I make no guarantees);
however, as this is your "newest mac", it would be a good idea to acquaint yourself with them.
The overall change is called "System Integrity Protection" (SIP).
Here's a good article about SIP, with links to further information.
Simply running `sudo apachectl start` may not be sufficient.
You may need to stop first; then start.
I have the following sourced by .bash_profile:
alias bounce_apache='sudo apachectl stop 2> /dev/null; sudo apachectl
+start'
I set this up some years ago (under Mac OS X 10.7.x, I think) and it's always worked well for me.
Take a look at /usr/sbin/apachectl for other options.
I followed the instructions in http://editrocket.com/articles/perl_apache_mac.html and got the same results as you, i.e. just a program listing.
I then made the following changes to /etc/apache2/httpd.conf:
-
Uncommented:
#LoadModule cgi_module libexec/apache2/mod_cgi.so
-
Changed the Options line in:
<Directory "/Library/WebServer/CGI-Executables">
AllowOverride None
Options None
Require all granted
</Directory>
to
Options +ExecCGI
After running bounce_apache, http://localhost/cgi-bin/test.pl displays: Test Page
You may require slightly different changes depending on your setup but, I think, that should get you on track.
[Aside: Please markup URLs as links (see "Shortcuts for Markup Links" if you're unfamiliar with how to do this). Also note, my title has "Mac OS X" while yours has "Mac OS" which, I believe, is rather ancient (in computer terms).]
|