Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: CGI on Mac OS X 10.11by kcott (Archbishop) |
on Feb 03, 2016 at 09:27 UTC ( [id://1154329]=note: print w/replies, xml ) | Need Help?? |
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:
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:
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).] — Ken
In Section
Seekers of Perl Wisdom
|
|