Start a FREE 7 day trial! Get training videos and books, plus expert support:  

WordPress Tutorials and Blog Posts

How to Run Multiple Local Wordpress Sites on a Mac Using MAMP

One of our students wanted to know how to run multiple local Wordpress sites on a Mac using MAMP, so we created this tutorial for him.

1) Download and Install MAMP

tutuploadstutuploadsmedia_1332283271010.png

Go to https://www.mamp.info/en/downloads/index.html and download the latest version of MAMP.

Once the download has completed, double-click on the file to start the installation. Note: The downloaded file may be zipped (compressed) depending on which browser (and its settings) you used to download, so you may have to double-click twice (once to unzip and once to start the installation).

tutuploadstutuploadsmedia_1332284623848.png

Follow the installation instructions which will install MAMP on your Mac.

2) Start MAMP

tutuploadstutuploadsmedia_1332285169488.png

Navigate to Applications > MAMP folder > MAMP icon.

tutuploadstutuploadsmedia_1332286930177.png

MAMP will start automatically and a welcome screen page will display.

  • If any of the statuses are red, please post in our support forum and one of our support techs will help you get things working as they should.
  • Please note that the user is "root" and the password is "root", while the host is "localhost".

3) Create the Database

tutuploadstutuploadsmedia_1332287926670.png

On your MAMP control panel, click the "Open start page" button.

tutuploadstutuploadsmedia_1332288132936.png

Click the phpMyAdmin link.

tutuploadstutuploadsmedia_1332288266632.png

In the "Create new database" field, enter the name of the database. In the example, I have chosen "site1".  Then click the "Create" button.

4) Download WordPress

tutuploadstutuploadsmedia_1332288837335.png

Go to https://wordpress.org/download/ and download the latest WordPress version.

5) Move the WordPress Files to MAMP's htdocs Folder

tutuploadstutuploadsmedia_1332289716918.png

Copy the downloaded "wordpress" folder by right-clicking on the folder then selecting "Copy wordpress".

Note: The downloaded file may be zipped (compressed) depending on which browser (and its settings) you used to download, so you may have to double-click on the file to unzip its contents before coping.

tutuploadstutuploadsmedia_1332290194977.png

Navigate to Applications > MAMP folder > htdocs folder

Paste the "wordpress" folder by right-clicking within the htdocs folder then selecting "Paste Item".

Note: You can rename the "wordpress" fold if you would like. In web development, it's standard practice to not add spaces, capitals, or special characters in folder names. Keeping this standard will make sure everything works as it should.

6) Install Wordpress

tutuploadstutuploadsmedia_1332290708949.png

In your browser, navigate to https://localhost:8888/wordpress/ .

Note: Replace "wordpress" with whatever you renamed the folder to in step 5.

tutuploadstutuploadsmedia_1332290729611.png

Read the instructions, then click the "Create a Configuration File" button.

 

tutuploadstutuploadsmedia_1332290858230.png

Read the instructions, then click the "Let's go!" button.

 

tutuploadstutuploadsmedia_1332290987892.png

Read the instructions, then enter:

  1. Database Name (you created this in step 3)
  2. Username: root
  3. Password: root
  4. Database Host: localhost
  5. Table Prefix (put random two or three letters before the underscore)

Click "Submit".

 

tutuploadstutuploadsmedia_1332291466880.png

Click "Run the install".

tutuploadstutuploadsmedia_1332292769549.png

Fill in the fields appropriately then click "Install WordPress".

That's it! You're done! Congratulations! Now you can log in and start using WordPress.

Installing Multiple Sites

To install more sites in MAMP, just repeat steps 3 through 6 as many times as needed.

 

 

Start a FREE 7 day trial! Get training videos and books, plus expert support:  

License

All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:
  • You can re-use these tutorials.
  • You can modify these tutorials.
  • You must link back to our original tutorial.
  • You can't use these tutorials commercially.
Click here to read the full license.