How to run CGIs from the user's Sites folder

Jul 09, '01 12:07:11PM

Contributed by: robg

[Editor's note: Submitted by Crusty on July 5th. This question has been asked numerous times in the last month, so I figured I would see if one of the Apache wizards out there can provide the answer for the interested readers...I have an idea of what needs to be done, but not all the details.]

Hello all,

I've recently installed OS X on my Powerbook and love it. The main reason I purchased OS X was so I could work on Web pages that use SSI, Perl, PHP and MySQL without always having to connect to the Internet. I've followed some tutorials on this site about installing Apache, PHP and MySQL, and have them all running properly from my user directory called "Sites"!! I love it. But... I can't get any CGI/Perl scripts or SSI to work properly. I've used the terminal to go into the config file and altered the following lines:

Options Indexes FollowSymLinks MultiViews ExecCGI +Includes
and
DirectoryIndex index.html index.htm index.shtml
and
AddType text/html .shtml
AddHandler server-parsed .shtml
Neither CGI or SSI work in my users "Sites" folder, but PHP and MySQL do. What have I missed? How can I get CGI/SSI to work in my personal site? Any help would be greatly appreciated.

Comments (11)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20010709120711417