Installing Wordpress Locally on a Mac
Thursday, August 30th, 2007I have been using Word Press blogs for a couple of years now. This past year, I began modifying blog skins (themes). Because Word Press blog uses php and a MySQL database, you need a local testing server if you want to make changes and preview them locally.
So, I set about figuring out how to set up a Word Press blog on a local server. I found a great, step-by-step tutorial for just that: Installing Wordpress Locally Using MAMP. This is a 15-minute instruction written by Michael Doig back in December of 2005. Age aside, the instructions are still valid.
I ran into one stumbling block involving the file path that was easily corrected. In short, the steps are:
1) download and install MAMP
A MAMP Pro version is available which allows for easy configuring of an unlimited number of virtual hosts and dynamic DNS access.
2) get host, user and password from MAMP start window (Of course this link won’t work unless you have the server running!)
It’s so simple to install MAMP. You are running the server within minutes of downloading the app.
3) download Word Press and move the files to your htdocs folder
The htdocs folder is in the MAMP folder which is in your Applications folder.
4) edit the config file
Here’s where you edit the name of the blog, the user, password, and host if necessary.
5) change config file name
Mike doesn’t mention this, but it is in the Word Press docs. You’ve got to rename the wp-config-sample.php file to wp-config.php.
6) run WP install
This is where I had a problem. The link Mike provided for the install didn’t work for me. I had set the Apache and MySQL ports to their defaults when I installed MAMP for a class I took earlier this year. Mike lists 8888 as the MySQL port and I had 3306. It turned out I didn’t need to include the port as part of the URL. I installed from this URL.
7) generate the password to admin account
An important piece. Word Press generates an unwieldy jumble of letters and numbers as the initial password (which you can change of course.) Copy and paste works best here.
8) login and play
Then - all of a sudden, you’re done!






