Running Pow And MAMP Pro Together

Aug. 15, 2012

source: Running Pow with Apache

I use both Pow for rails development and MAMP Pro for PHP development. I need them work simultaneously.

Before start, if you have Pow installed, uninstall it with

curl get.pow.cx/uninstall.sh | sh

Then let pow’s firewall run to redirect all traffic from port 88 instead of port 80

echo 'export POW_DST_PORT=88' >> ~/.powconfig

Then you can install Pow as normal

curl get.pow.cx | sh

Now, open MAMP Pro, create a new host. Doesn’t matter what it is named and which directory is selected (though I use ‘rails.dev’ and the folder I keep my Rails apps in).Also, deselect the select box for “local name resolution”, just in case. Then go to the Advanced tab, and fill this in to the textarea labeled “Customized virtual host general settings”:

ServerName pow
ServerAlias *.dev    

ProxyPass / http://localhost:20559/
ProxyPassReverse / http://localhost:20559/
ProxyPreserveHost On