Welcome to the how to install WordPress on localhost mac guide! But before we get into the actual steps, it makes sense to give a brief explanation of why would we want to install WordPress locally in the first place.

To begin with, installing WordPress locally means downloading the CMS (Content Management System [Wordpress]) to your computer and working with it there… locally. If you are a web developer, you know really well why we do it, but if you’re not, you may be scratching your head and thinking to yourself – “why?” Well, there are two main reasons.

Download our FREE guide >>>7 SMART STRATEGIES TO GROW YOUR BLOG TRAFFIC FASTER!<<<

One of my friends recently wanted to start his own blog, but because he was low on money, he could not afford to pay for a domain name and a hosting plan just yet. Nonetheless, he was eager to learn how to use WordPress. As a result, I told him that we can install it on his computer and he can start picking a theme and making tweaks right away.

The nice part is that you can do pretty much all of the same things on a local version of WordPress as you would be doing on an online one.

So, I told my friend, by the time he buys a domain name and a hosting plan, he will already know how to use the CMS. This was the first reason why you would want to install WordPress locally.

The second reason is, of course, the development itself.

Potentially, any change that you do, whether it is updating your blog, tweaking the code or even installing a new plugin, can break your website. Obviously, we don’t want our precious visitors coming to a website that looks like a white blank page. Yes, in most cases these things can be easily fixed.. or not.. but either way, we want our blog up and running flawlessly 24/7.

In other words, the procedure should be the following: you first do the needed changes on your local version, and if everything looks ok and isn’t broken, you drag those changes to your live version. As simple as that.

Now, let’s get to the part that you actually came here for! 💪

How to Install WordPress on Localhost Mac

1. Download and install MAMP

So what is MAMP?

The thing is that when you own a website online, you have a hosting provider that hosts your website on their server. You need a server for your website to work. However, even if you have a website running locally on your computer, you still need a server for it to work. This is where MAMP comes into play. MAMP creates a virtual server for your website on your computer.

Recommended hosting provider: Bluehost

Go to: https://www.mamp.info/en/downloads/ and pick the version for a MAC.

P.S. If you have a Windows computer, installing WordPress works a little differently. I would recommend that you download XAMPP instead of MAMP.

Once you have downloaded the file, install MAMP.

2. Download WordPress.org

Now that you have MAMP downloaded, time to download WordPress.org.

Note: you go to WordPress.ORG, not WordPress.COM. WordPress.com is a whole different story, we don’t want that!

Go here: https://wordpress.org/download/

3. Find a place for your WordPress folder

Now that you have downloaded the WordPress zip file, time to unzip it and place the folder somewhere on your computer.

It is important to find a place on your computer where the WordPress folder will not be moved from because MAMP will be linking to it. In other words, I would not recommend having it on the desktop. The Documents folder on your MAC is a decent place for it.

4. Configure MAMP

Time to configure your MAMP application.

Open MAMP. Once MAMP has been started, in the upper left corner of your monitor, where the Apple logo is located, you will see the word “MAMP“. Click on it and choose “Preferences“.

You will see a little screen open up. Choose the “Ports” tab and click on “Set Web & MySQL ports to 80 & 3306“.

The next step is to choose the “Web Server” tab. Click on “Select” and search for the WordPress folder that you relocated in step #3. In my case, my WordPress folder is in my Documents, so that is where MAMP should be pointing to as well. This is how it looks like for me:

That’s it, click on OK.

5. SQL Database

Now it’s time to configure the database of your local WordPress website.

Open MAMP and click on “Start Servers“.

Note: If you get the following error: Apache couldn’t be started. Please check your MAMP installation and configuration., then it might be so that you have to change the ports again. Simply go back to: Preferences -> Ports -> and replace both of the “80” values with “8080”. Click on “Start Servers” again.

If your server has been started successfully, you should see a page open in your browser. At the top menu, you will see “TOOLS“. Click on it and pick “PHPMYADMIN“.

Then, on the left side, you should see the word “New“. Click on it and give it a name. Give it a name that can be relatable to your future website. In my case, I called it Demo, since this is a demo tutorial.

Recommended: How to Start a Blog and Make Money from It

6. Final step – Install WordPress

This is the final step of the “how to install WordPress on localhost mac” guide.

You can now close this page and return to the browser page that was previously automatically opened. There, click on “MY WEBSITE” in the top menu. Alternatively, you can click here if you used the 8080 port. http://localhost:8080/MAMP/?language=English

You will be taken to your WordPress website. Now we need to configure it.

Pick your language.

For Database Name, enter the name that you previously gave to your new database inside of the phpMyAdmin page. In my case it was demo.

Username and Password need to be “root“. That is the default value.

Click Submit.

This is what my database connection details screen looks like:

Run the installation.

In the next screen, you will be asked to enter the title of your new website, the username, password, etc. Here, the only things that matter are the username and password. You will need those to log in. Everything else can be changed later and is not really important for a website that is not on the internet.

Once you fill in all the fields, you can proceed to log into your WordPress website.

And voilà!! That was it! Easy, isn’t it? 🙂

Download our FREE guide >>>7 SMART STRATEGIES TO GROW YOUR BLOG TRAFFIC FASTER!<<<

Now you are free to play around with WordPress, test out various plugins (some may not work properly because they are meant to be used online), themes and even tweak the code that is located inside your WordPress folder.

NOTE #1: In order for your local version to work, you need to have MAMP running all the time. This means that if you have stopped the servers at some point, you need to open MAMP and click on “Start Servers” again.

NOTE #2: If you used port 80 in your MAMP preferences, that means you can find your website simply by typing “localhost” in the browser search bar. However, if you used some other port (8080 in my case), then you need to type – “localhost:8080” (replace 8080 with the port that you picked).

To log into your WordPress admin screen, type either “localhost/wp-admin/” or “localhost:8080/wp-admin/” if you had some other port.

I hope you found this post “Why and How to Install WordPress on Localhost Mac – Full Guide” useful. If you have any other questions for me about WordPress, feel free to leave them in the comment section below. I will be sure to reply. 🙂

Thank you for stopping by and good luck!

Please click below to subscribe and to follow us on social media:

Click here to follow us via E-mail!

Click here to follow us on Facebook!

Click here to follow us on YouTube!

Click here to follow us on Instagram!

Click here to follow us on Twitter!

Click here to join our Facebook group!

5 / 5 ( 1 vote )