Install MAMP to create a stable PHP and MYSQL runtime environment

Admin   PHP   13716  2021-01-08 15:39:10

Mamp is an acronym for (Macintosh, Apache, MySQL, and PHP) specific to the Mac operating system, later extended to Windows.

Mamp is used to run code on localhost to help programmers to install each part of PHP, MYSQL, Apache ... It encapsulates everything, just start, reset and stop. If you've ever used XAMP, it's the same.

MAMP is mainly for development and running PHP code for free, it supports both Python, Ruby, Perl but for the paid PRO version.

If you are knowledgeable about virtual host configuration, only PHP programming is not necessary to buy the PRO version, because currently I am using the PRO version is not different from the Free version.

In my opinion, the Free version is enough for you to develop fully functional and professional local code.

And many of the good things about it, you can learn more on Google

Mamp download link: (Supports MacOS and Windows)

After downloading, proceed to install normally:


The htdocs folder is located in /Applications/MAMP/htdocs

This is the directory containing your projects,

By default, the Mamp will have the following path:


We need to bring back port 80 to have the following form:


Open up MAMP and Set MAMP ports to default step 3


Once done click OK to reset MAMP


The htdocs folder is located in C:\MAMP\htdocs

The configuration is similar to the Mac



Create a project name folder in the htdocs directory containing the index.php file with the following content:



Then in the browser we access:


The result is OK


You can copy the source code Wordpress, Joompla, Drupal into the htdocs directory to develop the code.

Thank you for reading, if there is anything missing please share, if or please share it for me.