The PHP memory limit on MAMP when running Drupal
You have to like MAMP, it is brilliant. If you don't want to set up Apache and MySQL you have to try MAMP. And since I don't like the full versions on Apache and MySQL on my laptop I use MAMP all the time. It is easily configurable I can set up a test site very quickly by just going to preferences and selecting a new web root folder. You can add an unlimited number of databases. So you gotta love MAMP. However, the is a problem with MAMP. You only have a PHP memory limit of 32 MegaBytes. This number is a little low if you run a Drupal site on it. So I want it bigger. But where do you configure that limit? There 4 php.ini's available. For 5.2.17 to 5.4.3, and you can just as easy switch your PHP version. So you just got shot in the foot by MAMP's own configurability. Besides you might just want a higher limit for one project. Luckily, there is a solution. There is a feature not many people know about. You can configure all PHP settings you can add to your php.ini in note .htaccess file too. So you open your .htaccess file and look for the part that says <IfModule mod_php5.c> and you just add one line in there: php_value memory_limit 64M That's it, you're done.