Open and edit /Applications/MAMP/conf/apache/nf Search for DocumentRoot Change the path to /Users/yourusername/Sites Set the Document Root to ~/Sites Or where ever you keep your PHP projects. In fact, I think it’s the best option going. Most Unix commands won’t work ( Thanks, Apple ).īut as you become more and more familiar with MAMP it’s not all that bad. Sometimes your configs will break, and MAMP is not set up like your Ubuntu VPS, things are not in the same locations.
Some MAMP pros include all local sites being accessible at the same time, simple MySQL administration with PHP MyAdmin or Sequal Pro.īut some of the negatives can come once you have made changes to various config files and then go to update MAMP or add newer versions of PHP. But consider being responsible for 40 different sites, all with various changes and updated. If you like Vagrant and Docker then keep at it.
In my opinion, things like Vagrant and Docker have their place but tend to overcomplicate and slow down local development. This MAMP development setup is what I have used for years while working on many freelance projects, personal projects, and obviously the day to day work projects. If you work on multiple sites or projects at the same time across different frameworks and or CMS’s then MAMP will make your life simple. Like it or not, MAMP is an excellent tool for local development.