How to Install WordPress Locally on Mac using MAMP

How to Install WordPress Locally on Mac using MAMP
Like Tweet Pin it Share Share Email

Recently we published an article about how to install WordPress on your Windows computer using WAMP. As expected, we started to receive emails from our readers asking how to install WordPress in their Mac computer. Actually it is quite similar to Windows and in this article we will show you how to install WordPress locally on Mac using MAMP.

MAMP is an easy-to-install compilation of Apache, MySQL, and PHP bundled together for Mac. Using MAMP you can install WordPress on your Mac and test drive it. Most WordPress developers and designers use MAMP on their Mac for development purposes. However, your website on MAMP is only visible to you. In order to make it live you would need WordPress Hosting.

How to Install MAMP on Mac

Go to the MAMP website and download MAMP. Once the download is finished, open the downloaded file. Drag and drop the image file inside it to your Applicationsfolder. Follow the on screen instructions. You can now launch MAMP from Applications » MAMP.

Note: MAMP also installs MAMP Pro, so remember to click on the right one.

Starting MAMP in Mac OS X

Before you get started, we recommend that you configure it to your liking. Click on the Preferences button to change the options. You will see a new dialog box. Lets start with the Ports tab. You need to enter ports which will be used by Apache and MySQL. Enter port 80 for Apache, and 3306 for MySQL. Setting Apache to use port 80 will allow you to access your local websites from http://localhost instead of http://localhost:8888. However, using port 80 also means that each time you start servers you will have to provide the admin password of your computer.

MAMP configuring Apache and MySQL ports

The next step is to set document root. Document root is the folder where you will create and store your websites. In the preferences dialog box, click on Apache and select the folder where you want to store your websites. Ideally, you should store your websites in a new folder inside your documents folder. You can name this folder anything you want, htdocs, mywebsites, wpdev, etc. For the sake of this example, we will call it mysite.

Select the location to store your websites in

Click OK to save your changes. On the MAMP app screen make sure both Apache and MySQL servers are running.

Installing WordPress on Mac

Download a copy of WordPress from Extract the zip file, copy the wordpress folder inside it and paste it in your MAMP document root folder. Rename this folder to anything you want e.g. mysite.

Click on Open Start Page button in MAMP application window. A new browser window will open. Click on phpMyAdmin from the top menu bar.

MAMP start page

phpMyAdmin is a web based application used to manage MySQL databases. In phpMyAdmin click on Databases and then create a new database. You can name this database anything you want. We will use this database name in the next step.

Creating a database in phpMyAdmin for WordPress

Open a new browser window and type http://localhost/mysite. If you re-named the wordpress folder to something else, then use that name here. WordPress will notify you that it was unable to find wp-config.php file. Click on Create a Configuration File button.

Create a Configuration file for WordPress in MAMP on Mac

On the next screen provide your database information. In the database name field, enter the name of database you created earlier. For database username and password fields use root. Use localhost as your database server.

Provide database information in WordPress in MAMP on Mac

WordPress will now connect to your database and create a configuration file for you. After this it will show you a success message. Click on Run Install button to proceed.

On the next screen, WordPress will ask you to provide your website information, choose a username and password, and enter an email address. Fill in the form and then click on Install WordPress button.

WordPress Installation Screen

WordPress will now run the installation script, create tables inside database and set up your website. You will see a success message once the installation is complete.

WordPress installation success message

That’s all, now you can run WordPress on your Mac using MAMP, just like you would run WordPress on a live web server. Just launch MAMP application to start your local server and use WordPress. Once you have played with WordPress on your localhost, then you can install WordPress on a live site.

Comments (4)

  • I simply want to say I’m very new to blogging and site-building and actually enjoyed your page. Very likely I’m likely to bookmark your website . You amazingly have terrific well written articles. Appreciate it for revealing your webpage.

  • I simply want to say I’m all new to weblog and truly loved you’re website. More than likely I’m planning to bookmark your website . You amazingly come with impressive articles and reviews. With thanks for revealing your web site.

  • Thanks Patrick. I have a question ( perhaps I am getting greedy asking for more advice!) I just completed my masters and have started consulting a bit, I am thinking about perhaps doing a PHd – how long should I wait and get more experience and what can a Phd afford me (peolrssionalfy) that I don’t yet have. I studied Conflict Resolution/ Peacebuilding at Brandeis and working in Strategic Communications for Peace: the topic of my Masters Thesis.

  • Magnificent goods from you, man. I’ve understand your stuff previous to and you’re just extremely excellent. I actually like what you have acquired here, certainly like what you’re stating and the way in which you say it. You make it entertaining and you still care for to keep it smart. I can’t wait to read much more from you. This is actually a terrific web site.

  • Wow, fantastic blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is fantastic, let alone the content!

  • It¡¦s actually a great and useful piece of info. I am happy that you simply shared this helpful information with us. Please keep us up to date like this. Thanks for sharing.

  • I¡¦ve learn several excellent stuff here. Certainly value bookmarking for revisiting. I wonder how a lot effort you set to create any such magnificent informative web site.

  • Just want to say your article is as amazing. The clarity in your post is just spectacular and i could assume you’re an expert on this subject. Well with your permission let me to grab your feed to keep up to date with forthcoming post. Thanks a million and please keep up the gratifying work.


Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: