Wordpress Install for Development on a Mac

I like to customize my blog page that is running on Wordpress. Obviously, I would like to replicate the setup in my Mac.

I will go through a step-by-step instructions on installing Wordpress in my Mac.

1. Download MAMPS. I choose the non-pro version. You should get a .dmg file.

2. Download Wordpress. I choose to download the .tar.gz file. It does not really matter which one you choose.

3. Double click on the mamp_x.y.dmg file to open it up.
Mamps Install300

4. Drag the MAMP folder to your Application folder.

5. Let’s test MAMP really quickly to make sure it is running fine.
* Open up your Application folder.
* Expand the MAMP folder.
* You should see MAMP application (SHOW THE PICTURE).
Mamps Folder
* Double-click on the application and wait until you see two green lights (SHOW THE PICTURE). Also, your default browser should automatically navigate to http://localhost:8888/MAMP.
Mamps Lights
* Change the default htdocs directory for MAMPS.
* Click on Preferences… button.
* Click on the Apache tab.
* I change mine to /Users/username/Projects/htdocs. The step will help protect the Wordpress install and your themes whenever MAMPS gets upgraded or deleted.
* Click OK to accept the changes.

6. Switch over to your browser window.
Mamps Browser
* Take a note of the Host, User, and Password information.

7. We should setup a database now.
* Click on the phpMyAdmin link.
Mamp Browser Db
* Click on the Databases link on the bottom of the phyMyAdmin page.
Mysql Page
* Create a new database on the bottom of the page. I choose ‘wordpress’ as my database name.
Mysql Create Db
* You should get a message about ‘Database wordpress has been created.’

8. Let’s focus on the Wordpres and double-click on the wordpress-x.y.z.tar.gz to extract it. There should be a ‘wordpress’ directory available.

9. Drag the wordpress directory to your htdocs folder.
Wordpress Folder

10. Open another tab or another window in your favorite browser and navigate to http://localhost:8888/wordpress. You should see an error about missing wp-config.php. This is OK. You are on the right direction.
Wordpress Wp Config-1

11. Let’s setup your local Wordpress install now.
* Click on the “create a wp-config.php file through a web interface”
Wordpress Start Wp Config-1
* Continue on by clicking on the ‘let’s go!’ link.
* Enter the database name, user name, password, and database host.
Wordpress Setup
* Click on Submit button and click on the ‘run the install!’ link.

The rest of the step should be a piece of cake.

Post your questions in the comments.

Enjoy!

Leave a Reply