
デフォルトではCGIは
/Library/WebServer/CGI-Executables/
以下にないと動かないが、ユーザーのサイト ~/Sites/ 以下でも動かすには /etc/httpd/users/xxx.conf(xxxはユーザー名)を
<Directory "/Users/xxx/Sites/">
AddHandler cgi-script cgi
Options Indexes MultiViews ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
のようにして、念のため文法チェックを
httpd -t
で実施し、Apacheを再起動する。(Apacheの再起動 )
情報源:http://homepage1.nifty.com/glass/tom_neko/web/