I did this a hundred of times... !
Using MAMP or WAMP is fair enough for beginners but you'll stick to their configuration(s) and tricks which make you a bit dependent of their products. This is only my opinion but I would prefer to install a homebrew configuration.
When installing services such as MySQL, PHPMyAdmin, Apache+PHP or NGINX+PHP/PHP-FPM you will learn much more things. You'll be independant as you go through the installation and read the documentations. You can also simplify the work for futher installation by:
1) Creating some general pre-set configuration files
2) Creating your own installation script(s)
And voila !