in reply to Enabling CGI using XAMPP for Mac OS X

edit: My original post below is besides the point! The httpd.conf original content you typed is identical to the default httpd.conf for Mac OS X's included apache server. I just now found this when I decided it was time to configure my own Mac OS X 10.6's web.

This leads me to believe you are editing the wrong httpd.conf. Which file are you editing? The httpd.conf under /etc is for the included apache and (according to XAMPP's website) XAMPP's is located at /Applications/XAMPP/etc/httpd.conf. A first step would be to make sure XAMPP's apache is not conflicting with Mac OS X's included web server.

Original post follows:

In your <Directory> directive, the directory in quotes is where the symlink points to, not the name of the symlink:

<Directory "/Applications/XAMPP/xamppfiles/cgi-bin/"> ... lrwxr-xr-x 1 user admin 18 Sep 27 09:49 cgi-bin -> xamppfiles/cgi +-bin
Maybe if you change to "/Applications/XAMPP/cgi-bin" inside the <Directory directive, Apache will be happy.

Here is a quote from the manual about the FollowSymLink option:

Note: even though the server follows the symlink it does not change the pathname used to match against <Directory> sections.

Replies are listed 'Best First'.
Re^2: Enabling CGI using XAMPP for Mac OS X
by Shuraski (Scribe) on Feb 13, 2010 at 23:40 UTC

    I think you are right. With XAMPP installed, there are now 2 Apache configurations present. Obviously important to keep httpd.conf files straight. I will go sort this out.

    Is it enough to simply have Mac's original Apache turned off while using XAMPP to avoid conflicts?

    Thanks for catching this!

      Ya I think you are right. Turn off Web Sharing or have the XAMPP server listen on a different port and you should be okay.