Just thought I'd post this as it was hard finding any information on how to install BOTH Drupal and WordPress on a Mac.
I'm using a MacBook Pro running Mac OS X Version 10.6.8 (Snow Leopard). I'm running Mac OS X Version 10.7.1 (Lion) on my iMac but am still using Mac OS X Version 10.6.8 (Snow Leopard) on my MacBook Pro.
I have a Drupal 7 sandbox running on my MacBook Pro for testing and development purposes and I wanted to add the latest version of WordPress (3.2.1) for the same reason. I was using the Free version of MAMP and wanted to run both Drupal and WordPress but could not find any information on how to set it up.
Finally, I discovered that the best way to accomplish this is too just go and purchase the full version of MAMP (MAMP Pro). It costs only $59.00 and has an easy GUI interface to set up for running both Drupal and WordPress on a localhost as seen below.
MAMP sets up an Apache, MySQL, PHP stack on your desktop.
For multiple sites, use the Hosts feature in MAMP Pro.
Setup your Localhost:
Create a “Drupal″ and “WordPress″ Host pointing to: “/Users/username/Sites/drupalsandbox"
Moved the downloaded files to there respective locations “/Users/username/Sites/drupalsandbox" and “/Users/username/Sites/wordpresssandbox"
Modified the Permissions for each site:
Created the databases:
Server >> MySQL >> Launch phpMyAdmin
Create new Database – “drupalsandboxdb″ and “wordpresssandboxdb″
Then created users for those databases
drupalsandboxdb >> Privileges >> Add a new User
with all ‘Grant all privileges on database “drupalsandboxdb″‘ selected
wordpresssandboxdb >> Privileges >> Add a new User
with all ‘Grant all privileges on database “wordpresssandboxdb″‘ selected
Once all this is done go to the browser and point it to your sites and run configurations.
That's it! Please contact me if you have any questions.