MAMP on Yosemite

After upgrading Lion on my MacBook Air to Yosemite, Apache failed to start. The solution is to rename (probably I could have deleted, but to be safe) the following file.

/Applications/MAMP/Library/bin/envvars

At first, just renaming seemed not working, but after a reboot, MAMP starts both MySQL and Apache no problem. Not sure why (or if) I needed to restart, though.