Install WordPress on your Own Computer Using MAMP

MAMP is a free tool that is available for both Mac and PC.

In this tutorial, I’ll show you how to install WordPress on your own computer using MAMP for the PC.

Installing MAMP

Download MAMP for your operating system.

The Windows installation file you download is an EXE file so you can run it by double clicking on it.

Then just follow the installation instructions.  On this screen you can safely uncheck both options, which are not needed in the free version of MAMP:

Other than that, you can proceed with the installation without having to choose options.

Installing WordPress

Start MAMP.

You may get an error message like this:

Just click on the Use next free post option.

MAMP will offer to remap the ports used for the web and database services. 

You can click on Yes to allow this, assuming you don’t have another application on your computer using Apache and MySQL on port 80.  If in doubt, I would avoid using MAMP for local WordPress installs.

The first thing you need to do is start the local servers.  Click the Start Servers button.  You should find that the Apache and MySQL light up to indicate they are running:

Now click on the Open WebStart page button to open the local homepage of your MAMP installation.

Scroll down a little to find your MySQL connection details:

You will need these details when you install WordPress.

Before you can install WordPress, you need to create a database for WordPress to use.  You can do this on your local homepage by clicking on the Tools menu at the top and selecting phpMyAdmin.

When phpMyAdmin opens, click on the Database tab:

Enter a name for your database and click Create.

Your database will be created and you should be able to see it in the left sidebar:

You now need to download WordPress.  Just click the Get WordPress button on that page and it will take you to the download page.

The downloaded file is a zip file that contains a folder called “wordpress” with all the necessary WordPress files.  You’ll need to unzip it.

You want to unzip it into a folder inside the htdocs folder found inside the MAMP folder on your PC.  Here it is on my computer:

This folder name (wordpress) will be part of your local URL for the site.  Currently the local URL will be localhost/wordpress.

In your web browser, type localhost/wordpress

You will be taken to the WordPress install screen, starting with language:

Select your language and click Continue.

You will now see this screen:

Click the Let’s Go! Button.

You can then fill in the details:

Database Name is the name of the database you created in phpMyAdmin.

Username and password are both root.

The Database host is localhost.

When WordPress is installed on a web host, I would not recommend using wp_ as the table prefix as it is one of the first things a hacker will try.  However, for a local install we don’t need to worry about hackers so can leave it as it is.

Click the submit button when you have filled this form in.

WordPress will try to connect to your database, and if it can you’ll see this:

Click the Run the Installation button and then fill out the following form:

Strong username and password are not as essential on a local install.  When done, click the Install WordPress button to complete the installation.

When complete, you’ll get a success message as well as a button to sign into your dashboard:

When you log in, you'll be taken into your dashboard:

Closing Down

When you are done working on your site, it is a good idea to close everything down properly.  On the MAMP control panel, click Stop Servers and wait for the Apache and MySQL lights to go out.

You can now close everything down.

Starting your Local Site

When you want to work on your site, this is the process you should follow.

  1. Start MAMP.
  2. Click Start Servers and wait for Apache and MySQL to start.
  3. Visit your homepage with wp-admin appended to the end of the URL:


That will take you to the log in page for your dashboard.

When you are finished, close down the servers as we saw earlier.

Want to Learn WordPress?

WordPress is an amazing platform for building any type of website.   It’s used by large corporations and small mom & pop sites.

You may also like


Leave a Comment

Your email address will not be published.

Hello, I'm
Andy Williams!

You can get up to 90% off my Online Courses for webmasters, marketers & affiliates (plus a free course on Gutenberg).

Create your own WordPress Theme

It's built in to WordPress using Gutenberg, and my new course shows you how.