Setting up a basic MAMP server

Step 1. Download MAMP

Step 2. Move over your MAMP_MAMP_PRO_3.5.2.pkg file over to your Application Folder.

Step 3. Double click on the package & follow the prompts to install on your computer.

Step 4. Once installed you’ll notice you have 2 folders that say MAMP. For now, we will just be focusing on the free version of MAMP. Within the mamp directory, look for a folder called htdocs

/Applications/MAMP/htdocs

This is where you will be adding your first index.html file.

Example:

<!DOCTYPE html>
<html>
<head>
<title>My first website</title>
</head>
<body>
Hello World!
</body>
</html>

Your directory structure would look like: /Applications/MAMP/htdocs/index.html

Step 5. Now you’re ready to click on the MAMP icon. If you click on preferences you’ll notice your default Apache Port is 8888. This is important because this is the port your application will be listening to. Now go back and click on Start Servers. If all went well you should have a green server icon and the Apache and MySql Server should show green.

Now you can access your index.html page by navigating to:

localhost:8888 

You can also get useful information by clicking on the Open WebStart Page Icon. This will let you know your default mySQL user + password and have the link to open up phpMyAdmin.

http://localhost:8888/MAMP/?language=English

http://localhost:8888/MAMP/index.php?page=phpmyadmin&language=English

Show your support

Clapping shows how much you appreciated d!a’s story.