Table of contents
Get the industry’s fastest hosting for WordPress ◦ 99.999% uptime
◦ Comprehensive security
◦ 24/7 support

WordPress GuideLocal → MAMP

How to install WordPress in MAMP

Image

After following the guidance in this article, you will have learned how to install, configure, and use MAMP for local WordPress development — and the related benefits.

Which is the best localhost server for macOS?

The best localhost servers are listed below by supported OS:

What does MAMP stand for (in web development)?

The MAMP acronym in web development stands for macOS, Apache, MySQL/MariaDB, and PHP/Perl/Python. MAMP layers those technologies in a software technology stack for web development in the context of the macOS. It allows you to build a WordPress site offline, on a local web server on your computer.

About using MAMP with WordPress for local development

MAMP is a local server environment optimized for Windows and macOS environments. The MAMP acronym comes from the names of the components it is made of:

By using MAMP with WordPress locally, you are acquiring the advantage of testing all of the numerous features WordPress offers before bringing your website online. In other words, if you use MAMP with WordPress, you will be in complete control.

You will immediately see if there are any issues with your plugins or if you are having some of the potential WordPress theme problems such as toggles, slides, or image hovering not working correctly. In short, by using MAMP with WordPress, there won’t be any unpleasant surprises after you bring your site online, and you can experiment with the design of your WordPress website carefree.

MAMP and localhost setup for WordPress

MAMP and MAMP PRO can be installed on a Windows 10 or newer operating system, on a macOS 10.12 or newer operating system if your machine has an Intel processor, or on a macOS 11+ operating system if your machine has an M1 processor. Therefore, based on the computer architecture and your operating system, download MAMP from the official website.

Follow the next steps below to prepare a MAMP application stack for a WordPress installation and start using MAMP with WordPress in no time.

Run the installation media and follow the steps below to install MAMP on your computer successfully:

First, you have to set the Apache Port in the MAMP Application. Open MAMP Application > Preferences > Ports > Change the Apache Port to 80 > Click OK.

Choose the PHP version and click Start. You will be prompted by a Welcome page on your browser. The directory you will primarily be working with is htdocs which is basically the equivalent of a public_html folder. The htdocs folder location is in the MAMP installation directory.

Open a tab in your browser and type localhost/, after which you will be prompted by the page rendered based on the contents of the index.php file in your htdocs folder.

Setting up WordPress on MAMP

Follow the steps below to install WordPress locally using MAMP:

By typing localhost/wordpress in your browser, you will be prompted by the WordPress homepage, representing the look and feel of your website.

About MAMP local development

Why do you need MAMP in place to install and test your WordPress site locally and not just via the browser?

WordPress is based on PHP, a server-side programming language. Your browser cannot process a PHP code, unless the code is compiled through a webserver. Considering that fact, MAMP provides the “PHP decoding server,” necessary to load a WordPress site locally. Furthermore, WordPress needs a database that MAMP also provides, and it is possible to manage your database using phpMyAdmin.

Additional resources

LocalWP.com for local WordPress dev →

Learn how to use Local for WordPress … local.

How to Install Redis for Windows and macOS →

A step-by-step guide to simplify the process

Neil Golden

Neil Golden earned his PhD in Archaeology, but nowadays, he uses the Linux command-line tools in his role within the Liquid Web Abuse and Security Operations Department. Instead of mammoths, he hunts for malware on Linux servers. In his free time, Neil composes music, reads novels, and travels the world.