First download the latest version of WordPress as a zip file.
Next, open up a new finder window (⌘N) from your desktop. You should be in your user directory. In your user directory, create a new folder called “Sites” if you don’t already have one.
Next, you want to install MAMP on your machine. Do this by heading over to the official MAMP website.If you want to install WAMP, go to their official website.
(In order to successfully install MAMP, you must be running Mac OS X 10.6.6 or later.) Click on Download below the free version, which should be sufficient.
Click the orange Download button as shown above. MAMP should start downloading automatically. When it’s finished, click on the downloaded file and a typical installation box will appear.
Continue through the steps past installation.
Go into your Applications folder (where MAMP should have been saved in the previous step) and click the MAMP folder.
Click on the elephant MAMP icon,
Click Preferences, and make sure the Ports tab is selected. It is recommended to set it to the suggested ports 80 and 3306.
Now click on the Web Server tab. Make sure the web server selected is Apache.
Now, you’ll need to set the document root. The document root is where all your files for you local web server will be stored.
The default document root, as shown in the photo above, is: Macintosh HD > Applications > MAMP > htdocs. This needs to be changed.
In step one when the new “Sites” folder was created with the fresh WordPress install zip file – That is going to be the document root.
To change/set the document root, click the gray folder icon with the three white dots. A finder window will appear, where you can select the document root.However, it is important to realize that by setting up the document root, you are not changing the location of MAMP (the application). You are simply specifying where MAMP will be looking for the files.
Click on the Open start page option in the MAMP box. (If you can’t click it, your servers probably aren’t turned on). The green color in the tiny boxes on the top right indicates that the servers are indeed turned on, as shown above. If those lights aren’t lit up, hit Start Servers.
Before you can get going with WordPress locally, you need to create a database for your install to live on.
When using MAMP, you create new databases in phpMyAdmin. (Every time you want to create a new WordPress site locally you must create a new database).
There are two options of getting to phpMyAdmin:
Visit the URL http://localhost:8888/phpMyAdmin
Or on the MAMP start page in your browser, click the phpMyAdmin link.
Now you want to create a database for your local WordPress site. Click on the databases tab on the far left of the top navigation.
Name your database whatever you like. It’s recommended to name it so that it corresponds to your site.
After you name your database, click the Create button.
Now, find the WordPress installation .zip file that was downloaded in step one and unpack it (a.k.a. double click the .zip file). You’ll get a “wordpress” folder.
Rename it to something relevant to the site you will be building/testing locally.
Grab that folder and store it in your Sites folder.
Open the new folder.
Now, go to your preferred browser and type in the url pointing to your site folder.
Click Continue with your language of choice.
First, it’s all about the database. Click “Let’s go!” on the next informational screen. Then you’ll enter your database information.
Give WordPress the database’s name, and enter “root” for both the database username and password. Leave the other fields be; they’re fine as they are.
Next, WordPress asks us for some general site information (which you can change later if you want to) as well as your login information. The credentials you set up here are what you’ll use to log into the WordPress dashboard later, so remember what you input for your username and password.
A quick note about the Privacy checkbox: Checking or unchecking the search engine visibility doesn’t really matter because the site is not online, meaning a search engine can’t index the site.
After you have all the information filled out, click the Install WordPress button. Almost immediately you should see a success screen.