mac-loves-wordpress.jpg
Image Credit : John Conners

If you are a theme designer, plugin developer for WordPress CMS or a blogger who want to test new themes, plugin before pushing them in the production blog then the best bet is to install WordPress locally on your computer. That will ensure that you’ll be working much faster and will be able to test things quickly.

What are the benefits of setting up WordPress locally -

1. In case things go wrong : While trying things, it’s pretty natural that things may get out of control and that database can get corrupt or anything worse you may not even think of. Because you can test it locally, it puts you in control of the things.

2. Save your valuable time : You can save tremendous amount of time as you don’t have to upload any files through internet connection, which will be slow as compared to working locally.

Lets cook up the recipe of setting WordPress up locally on Mac OS X :

1) Ingredients required for the yummy stuff -

- 1 Cup of local web server like MAMP.
- 1 Cup of latest version of WordPress.
- 1/2 Cup Safari or Firefox.
- 2 table spoon of Mac Love.

Time Required : 10 Min.

2) Preparation of the meal -

- Put MAMP in the utensil : Simply install MAMP on OS X and launch the application and start Apache and MySQL. Then launch Safari or Firefox and open http://localhost:8888/MAMP/

Click on the PHPMyAdmin and create the database. Name it whatever you want, you can call it wordpress.

- Now mix WordPress with Mamp : Simply extract the WordPress to ../mamp/htdocs/wordpress/ and edit the wp-config.php file in your favorite text editor and fill these information -

Username : root
Password : root
Host : localhost:8888
Database : wordpress

3) Add the Mac Love and cook it for 5 minutes -

- Install WordPress : Simply point your favorite browser to http://localhost:8888/wp-admin/install.php and follow the WordPress installation steps.

4) Serve with Coffee -

Now that your yummy dish is prepared and feels tempting, to make it more delicious serve it with Hot Coffee and you’ll have the best time of the day.

13 Comment

Featured Designs

Parent Society

Parent Society

Marijuana Maps

Marijuana Maps

Cake Journal

Cake Journal

CopyKat Recipes

CopyKat Recipes

Jessica Denay

Jessica Denay

Keith Ferrazzi

Keith Ferrazzi

Rennaissance Yoga

Rennaissance Yoga

Brink Zone

Brink Zone

Illustrious Author

Illustrious Author

Boca Care

Boca Care

KingsCast

Kingscast

Notecook

Note Cook

My Business Musings

My Business Musings

13 Responses so far | Have Your Say!

  1. What a way to write out a tutorial !!
    Absolute Beauty :)

  2. Hey, great info, your directions were easy to follow

  3. Cool. Going to try this out tonight.

  4. rayray

    Thanks for breaking it down in detail.

  5. AJvK

    This is great. Tried this about a year and a half ago, but couldn't get it to work back then. This short walkthrough did the trick though.
    One question though: how do make a locally installed WordPress Blog available to other computers in the samen local network? I tried changing localhost in wp-config.php and WP settings to computername.local:8888 or IPaddress:8888 without success – the best luck I've had so far was a text-only view of the main page, but every link failed cause it was sent to localhost…

    • well that has to do with the local setup of the computer. I guess if you'll give the IP address of your computer to the other network members then they will be able to see the wordpress in that local network. It will happen because your computer now acts as a server. Try that once and see if it works.

  6. Funny thing is, after a good nights sleep, the darn thing worked. wp-config.php is set to localhost:8888, and the WordPress settings to machinename.local:8888

  7. Seems nice, easy and clear, but this is just not working for me. Steps 1 & 2 were completed, but in Step 3 my browser shows a 404 error with when trying to connect to http://localhost:8888/wp-admin/install.php.

    However, if I try to access http://localhost:8889/wp-admin/install.php, Firefox asks me what I want to do with file install.php. I can open it with an external app or save it, but I cannot see it.

    I’ve tried editing wp-config.php to this:
    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost:8889′);

    but no dice. If anyone has some insights as to what the problem could be, I’m all ears. :)

  8. brad

    Thanks. This post is kind of old, but it was helpful. I was stuck, and I found this http://www.youtube.com/watch?v=10fbwScPMtQ&feature=related and it helped me get everything working. I thought I would post it here for anybody that does better learning visually.

  9. L. Smith

    Great post and really helpful!

    To you Mayank or other people reading this, how do I make wordpress.org changes to a blog permanent. I finally was able to install wordpress on my mac and can make changes via my browser. But when I go to the blog’s URL/site, they aren’t there. Am I doing something wrong or missing something?

    Or is using wordpress locally JUST a way to test things out before going to the wordpress.com site and making the actual changes?

  10. casey

    Thanks for the info great post.

    I also found this post helpful as it lists a good application for mySQL admin

    http://codepuzzle.net/?p=11

    thanks again

Trackbacks/Pingbacks