Categories
Hosting

How to install MAMP on your computer and set the PHP version

Introduction

This guide explains how to install the MAMP local server environment on your computer and set the PHP version. This will allow you to test Magento and WordPress sites without making them publicly available. This is particularly useful if you want to test an major update to an existing site.

Requirements

  1. Apple OS X 10.10.5 or later, or Windows 10.0 or later
  2. Mac with 64-Bit CPU from Intel (x84) or above, or PC with 64-Bit CPU from Intel (x84) or above.
  3. User account that allows to administer your computer.

Skill Level

Basic knowledge of software installations.

Instructions

Time needed: 5 minutes.

  1. Download MAMP.

    Go to https://www.mamp.info/en/downloads/.
    In the Download MAMP & MAMP PRO section select the relevant option for Mac or Windows.
    MAMP & MAMP PRO download buttons - screenshot

  2. Install MAMP.

    Open the installation file you downloaded and follow the instructions.
    For more info, see https://documentation.mamp.info/en/MAMP-Mac/Installation/ (Mac) or https://documentation.mamp.info/en/MAMP-Windows/Installation/ (Windows)

  3. Open MAMP Preferences.

    On a Mac this is in MAMP > Preferences.MAMP Preferences option - screenshot

  4. Click on the PHP tab.

    MAMP PHP tab - screenshot

  5. Select the PHP version you want to use.

    In the Standard Version options, select the relevant PHP version and click OK.
    For Magento 2.3 Open Source, select PHP 7.3 (it doesn’t currently support 7.4).
    For WordPress 5.4, select either PHP 7.3 or 7.4.MAMP PHP options - screenshot

  6. Start the MAMP servers.

    If they’re not already started, click Start Servers.Start Servers on MAMP - screenshot

More Info

MAMP documentation: https://documentation.mamp.info/

Next Steps

Now that you’ve installed MAMP and set the PHP version, you can install Magento or WordPress on your computer. For Magento, see How to install a Magento ecommerce site on your computer.