WordPress 在 localhost MAMP 执行时出现 500 错误的解决方案

/Applications/MAMP/logs/php_error.log 下看错误,如果是:

PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate x bytes) in /path/to/file on line n

那么就去 /Applications/MAMP/bin/php/php5.3.6/conf/php.ini 里把 memory_limit 改为 64M 或更大即可