Notes: Apache, MAMP
Because I don’t want to loose time with those things the next time I setup MAMP, I decided to write it down. I hope it will help you too!
mod_rewrite doesn’t work?
Make sure mod_rewrite is enabled:
LoadModule rewrite_module modules/mod_rewrite.so
Check you httpd.conf (or apache.conf) settings, specially the following setting: AllowOverride
AllowOverride All
You can put inside a Directory block, in a virtual host for example:
<VirtualHost *:8888> ServerName local.mysite.com DocumentRoot /path/to/web/root <Directory "/path/to/web/root"> AllowOverride All </Directory> #...
This is valid for any Apache bundle (MAMP, WAMP, XAMP, or Apache itself)
MAMP mySQL – connection problem?
If you’re having trouble connecting to MySQL (using PDO for example), try the following tip:
edit startMySQL.sh in /Applications/MAMP/bin and add the following line at the end:
ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock &