At 4:39 pm -0800 10/1/06, Lou Rosinski wrote:
I can execute a Perl script in the terminal (MacOSX) but cannot get that
same Perl script to execute on a browser (ie Safari). I can upload that
same script to my virtual Unix server and it executes just fine there.
I suspect the problem is the Apache config on my Mac but have researched and
made changes but to no avail.
I installed Apache 2 at the weekend and had to work out how to get
things configured. Here's what I ended up with in httpd.conf
(/usr/local/apache2/conf/httpd.conf). You'll need to read the whole
file carefully, but even with my strong disinclination to prolonged
concentration I didn't find it too difficult once I'd set my mind to
it.
You need to stop and restard the server after every change, of course.
# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
#####<Directory "/usr/local/apache2/cgi-bin">
<Directory "/users/jd/sites/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<Directory "/users/jd/sites/.../.../.../cgi-bin">
AllowOverride None
Options None ExecCGI
Order allow,deny
Allow from all
</Directory>