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
- Apple OS X 10.10.5 or later, or Windows 10.0 or later
- Mac with 64-Bit CPU from Intel (x84) or above, or PC with 64-Bit CPU from Intel (x84) or above.
- User account that allows to administer your computer.
Skill Level
Basic knowledge of software installations.
Instructions
Time needed: 5 minutes.
- 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. - 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) - Open MAMP Preferences.
On a Mac this is in MAMP > Preferences.
- Click on the PHP tab.
- 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. - Start the MAMP servers.
If they’re not already started, click Start Servers.
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.