Computer Science
How To Install MAMP On Windows 10 | Change The MAMP Server Ports

MAMP stands for Macintosh, Apache, MySQL, and PHP. It is an easy to use application. You can install on your MacOS and Windows. It is particularly best suited for WordPress to run locally on your computer.
In this tutorial you will learn step-by-step to how to Install MAMP on Windows 10 and how to change MAMP server ports.
- Follow these steps to install MAMP on Windows 10:
Step 1:
- Go to MAMP official Website https://www.mamp.info/en/
- Click Free Download.
- Click the Windows version.- It is available for Windows 7, 8.1 & 10.
- Run the Setup.
- It will show you a window, “Do you want to allow this app to make changes to your PC?” Click Yes.
- In the next step, tick the both checkboxes.
- Click Next.
- Select, I accept the agreement.
- Click Next.
- Select the path.
- By default, it chooses the C:/ drive, but it is not a good practice to install on C:/ drive because if Windows gets corrupt or stops work, you will lose your data as well.
- Click Next.
- Click Next.
- Click Next.
- Click Install.
- It will take 5 to 10 minutes.
- Click Finish.
- You can see that both MAMP & MAMP PRO have been installed.
Step 2:
- Click The MAMP.
- It is showing me an error, “APACHE needs open port 80 which is already used by System”.
- It means that port 80 is being used by some other application like Skype or IIS or WAMP etc.
- Click Setup new port.
- Click MAMP.
- Click Preferences.
- Click Ports.
- Click Set MAMP ports to default.
- Click OK.
- You can see the ports have been changed.
- Click OK.
- Windows will issue an alert window.
- Give Access to Apache HTTP Server.
- Tick Private Networks only.
- Click Allow access.
- Close the MAMP.
- Since the ports have been changed, we need to run the MAMP Server again.
- When you restart MAMP it might tell you again that, “APACHE needs open port ‘8888’, which is already used by httpd”.
- Now click Use next free port.
- Now it is suggesting port: 8889.
- Click Yes.
- By default localhost is accessed by http://localhost/MAMP/
- Now the port has been changed, so it would be accessed like http://localhost:8889/MAMP/
- Now Windows will ask permission for mysqld.
- Tick private networks.
- Click Allow access.
- You can see both Apache Server & MySQL Server are running.
- Now Everything is done.
- Click Open WebStartPage.
You might get this rubbish information when you open localhost like this, “N���
5.6.34-log�
���^l&s4GJ|�ÿ÷�€����������QbvLXW*jZejd�mysql_native_password�!��ÿ„#08S01Got packets out of order”
- It shows this raw information because it failed to make connection with MySQL database because of port no.
- Now, click MAMP.
- Click Preferences.
- Click Ports.
- Change the MYSQL port no to 3306.
- Click OK.
- Now, refresh the browser or click the Open WebStart page again.
- That’s it, you’re done. MAMP has been installed successfully.
- You can see all the details in this page.
Step 3: Access The Root Directory
- MAMPhtdocs is the root directory where you will put or create files.
- Create new folder, test.
- Create a html file, index.html. Don’t forget to remove .txt extension.
- On Windows, click View, tick File name extensions. It will display the extensions of files.
- Open with notepad and type something like, “<h1> Hi, Thanks Meer’s World </h1>.
- My path looks like F:MAMPhtdocstest.
- Now run this on localhost.
- The URL would be: http://localhost:8889/test/
- If you like this post don’t forget to share this post with other people. Share your feedback in the comments section below.
Recommended Posts
- How To Install & Configure XAMPP On Windows 10 – Step By Step | For Beginners
- How To Change The XAMPP Server Port In Windows 10 | XAMPP Apache Server Port | Fix Apache Port Error
- How To Install WordPress On MAMP Server In Windows 10 – Step By Step | Install WordPress On Localhost
- How To Install EasyPHP Devserver On Windows 10 – Step By Step | Show Databases On phpMyAdmin In EasyPHP

Meer Basit is the founder of Meer’s World. He’s been running the show since launching the blog back in 2018. By background he is a computer scientist. Primarily, he creates content around blogging (WordPress, Blogger, Tumblr), SEO, affiliate programs, earn-online, reviews, eCommerce, & technology. He has got years of professional experience in web programming, computer programming, databases, data warehousing, & transcription. In general, he likes traveling, gardening, watching movies, is a passionate cricketer, creative writer, and a GSD lover.

Hazuka
September 22, 2019 at 2:44 pm
thanks, tutorial very helpfull.
Meer Basit
September 23, 2019 at 3:22 am
You’re most welcome, Hazuka.