Hi all

Im trying to configure DA to work with mamp on a local installation. Im getting into some problem on getting it to work and i´ve done some googling to trying to find out how to make this work

I´ve installed drupal 7 and the modules needed and I get a wsod when i create a new domain and try to access it.

I guess the solution is something with htaccess but thats not my area of expertise so i wonder if anyone can point me to the right direction

Comments

agentrickard’s picture

I've actually done all of the module development on MAMP. The key for me isn't .htaccess, it's /etc/hosts.

You have to register the hosts you will use with your system.

First, make sure MAMP is using port 80 (this is configurable via MAMP preferences). Then add something like the following to /etc/hosts:

127.0.0.1 example.com
127.0.0.1 m.example.com
127.0.0.1 www.example.com
127.0.0.1 one.example.com
127.0.0.1 two.example.com
127.0.0.1 three.example.com
127.0.0.1 four.example.com
127.0.0.1 five.example.com
127.0.0.1 six.example.com
127.0.0.1 seven.example.com
127.0.0.1 eight.example.com
127.0.0.1 nine.example.com
127.0.0.1 ten.example.com
127.0.0.1 foo.example.com
127.0.0.1 bar.example.com
127.0.0.1 baz.example.com

There are more elegant ways to do this with virtual hosts and MAMP, but I simply don't bother.

agentrickard’s picture

Status: Active » Closed (works as designed)