How to install WordPress locally on your MAC

It is not hard to install WordPress locally on your MAC, you’ll probably have this done within 10 minutes if you follow this tutorial. Following on this tutorial, I will write a tutorial on how to access your WordPress installation installed via MAMP on your MAC in a virtual machine for cross browser testing. I’ll refer to this tutorial.

Step 1: Download MAMP

Download and install the free version of MAMP.

Step 2: Set MAMP preferences

If you fire up MAMP, go to Preferences > to the tab Ports and click on “Set to default Apache and MySQL posts”. After you did this go to http://localhost/ and a directory page should show up unless you have something installed in htdocs.

This step is very important, otherwise, WordPress won’t work in your virtualmachine.

Step 3: Checking the address of your MAC

Go to System Preferences > Network > Airport when using a wireless metwork or if you’re not connected to a wireless network to System Preferences > Network > Ethernet. You’ll find your local ip-address there. Copy it. Yes, I know, my installation of MAC is Dutch (not German!), but that doesn’t matter. Now quit and start MAMP. Open your browser and go to this address, in my case 192.168.178.32 .

Step 4: Install WordPress in MAMP

Download WordPress. Unzip the file. You have a folder WordPress now. Fire up the Finder and go to Applications > MAMP > htdocs and paste the folder WordPress to htdocs. Now go to the localaddress you found in Step 3, in my case: http://192.168.178.32/wordpress/. http://localhost/wordpress/ should work too, but if you want to access your WordPress installation in a virtualmachine too, you have to go to http://192.168.178.32/wordpress/. Click on “Create a Configuration File”.

Click than on “Let’s go!”.

Now you have to fill in your database information, but before you can do that, you have to make a database. Go to the main window of MAMP and click on “Open start page”. It will open a new tab in your browser.

You can see the Host, the User and Password now. You’ll need them after we finished You can see on this page your Than click on ‘PhpMyAdmin’. Click on the image below for the reallife sized version.

Now create a new database called “WordPress”. Click on the image below for a reallife sized version.

After you did this, go to the tab where you are trying to install WordPress and change the following information and click on submit:

  • Database Name: WordPress
  • User Name: root
  • Password: root

Step 4: Enjoy your WordPress installation!

Now you installed WordPress! You have to run the setup, but that won’t probably be a problem.

Following on this tutorial, I will write a tutorial on how to access your WordPress installation installed via MAMP on your MAC in a virtual machine for cross browser testing. I’ll refer to this tutorial.