6 Steps to Setup WordPress locally on your Mac
October 14, 2007

Wordpress is the #1 blog platform. What about those that install wordpress in their machines to test everything before going live? For example testing a plugin in your machine first and then adding it online in your blog. But what about those that have MAC? Should they buy a new pc and install Windows or Linux in it? No. Here is a small guide to how you can install wordpress in your MAC.
Before you can install WordPress you need to install Apache, MySQL, and PHP. If you’re used to working with Linux you know the acronym LAMP – well, for a Mac we’re going to install MAMP. It’s a one click install that makes everything “just work” with a minimal amount of configuration. Unless you are very picky about your development environment MAMP should do the job.
Simple, right? We’re already halfway done.
The next thing we need to do is install WordPress. If you’ve done this on your server before then you know what’s up. The only “administration” we have to do is create a database using PHPMyAdmin. It’s easy:
- Load up the MAMP application, start Apache and MySQL.
- Point your browser to: http://localhost:8888/MAMP/ and you’ll find yourself at the MAMP homepage. It’s a simple control panel that lets you edit anything important fairly easily. Click the PHPMyAdmin link.
- Create a database. I called my “wordpress” because I am only installing it once. If you’d like to use more than one WordPress install I’d suggest naming the databases by site, although it doesn’t really matter.
- Unpack your WordPress download to ../mamp/htdocs/wordpress/. The /htdocs/ folder is your “live” folder – if you want to create a new site, simple create a new folder. For example, when I was working on the new Bleikamp.com I created ../mamp/bleikamp/2. Inside …/2/ I had index.html, styles.css, etc. It works just like any web server.
- Load wp-config-sample.php into your favorite text editor. You’re going to need to edit the values so that WordPress can access MySQL on your machine. The default username for MySQL is “root.” The default password is also “root.” If you are planning on using MAMP on a live server, change those values. The host is “localhost:8888.” The database name is whatever you called your database in Step 3. Save it as wp-config.php in your ../mamp/htdocs/wordpress/ folder.
- Run the idiot-proof WordPress 5 minute install (it should take about 30 seconds). Point your browser to: http://localhost:8888/wordpress/wp-admin/install.php.
After that, WordPress will be up and running and ready for you to play with.
Want One of the Cheapest and Affordable Hosting?
What's Next?
Digg It
Save This Page
Sphinn It
Stumble it!
Favorite This Post
Posted in 




content rss
October 14th, 2007 at 9:32 pm
hi googlelady, may I know what version of wordpress do you use? have you upgrade to the 2.3 version?
October 14th, 2007 at 9:47 pm
In this blog no, but in my new project yes. Reviewtize.com
October 14th, 2007 at 11:40 pm
Good to see it explained so clearly. I have a client that works on a mac, and it would be good to give him a local install to work with
October 15th, 2007 at 1:08 am
I was trying to upgrade to wp 2.3, got mesh up.this version seem no longer support category listing using %category% format. Am I right? Hey, I actually prepare new project which having the same basic idea with your new project
October 15th, 2007 at 5:34 am
Do people use macs, I thought they were only for school kids?
October 15th, 2007 at 11:05 am
Hey PipholicDotCom,
I use: /%post_id%/%postname%/ and it works with 2.3.