I run a mixed setup of OpenACS, ]project-open[ and Drupal on my server. To handle this correctly I decided to let nginx act as a reverse proxy for OpenACS and ]project-open[ sites and also let all the websites reside in ~/Sites.
For the installation of OpenACS please check out http://openacs.org/xowiki/openacs-system-install-osx-macports.
To install nginx, use macports as well.
Make sure you can start nginx on system startup
To get Drupal to run correctly I first had to install PHP with mysql and fastcgi support
This get's you going with all the needed files.
Now install the database server
sudo -u _mysql mysql_install_db5
cd /opt/local ; sudo /opt/local/lib/mysql5/bin/mysqld_safe &
To configure nginx, go to the various instructions found here. I usually prefer to have a sites-enabled directory with just the server sections, so this is the server section for an OpenACS install, stored at /opt/local/etc/nginx/sites-enabled/yoursite.conf
Now it is time to install drupal
First configure PHP to work with mysql.
Then edit the file and tell it where mysql is running
Then start the php fastcgi daemon
and then test it.
Then have the php-cgi run on startup
Edit /Library/LaunchDaemons/org.macports.fastcgi.plist with the following content
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Then start it.