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.
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"
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
- \MAMP\htdocs 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:\MAMP\htdocs\test
- 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.
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
- How To Install PHP On IIS In Windows 10 Step-By-Step | Install IIS On Windows 10
- How To Install WampServer On Windows 10 - For Beginners | How To Run Website From Localhost
thanks, tutorial very helpfull.
ReplyDelete