After years of foolishly working on my live blog for all types of changes I decided to take a leap of faith and install WordPress 2.x on my G5 at home to use as a development environment. I will probably do the same thing on my work MacBook Pro and abandon my local copy of MovableType since I am a WP guy. When I did the MT thing on my MBP I found some directions and ended up in the Terminal doing all sorts of things … made me uncomfortable.
I have to give a tip of the hat to my friend and colleague, Chris Millet for introducing me to MAMP … MAMP is this nice little app that gets MySQL, Apache, PHP, and the associated admin apps you need running on your Mac in no time — as a matter of fact at the click of a mouse. Just download the thing, drop it in your Applications folder, double click the MAMP app (or fire up the included widget for use under 10.4) and you are but a click away from having Apache and MySQL Server fully installed and running on your machine. From there, installing WP was a dream. Here are the basic steps I used to get it running:
- Download MAMP
- Install MAMP by dropping the whole folder into my Applications directory
- Double click the widget in the MAMP directory (under 10.4.x) and it auto installed
- Flipped the widget over and set the radio button to PHP 4 — this is done by running the mouse over the bottom of the widget to expose the little i button. Clicked Done and it flipped back over.
- Clicked “Start Servers” and the little lights glowed green.
- I then tried to click the “Open Start Page” button on the widget, but nothing happened … if this happens go to the next step.
- Back in my Applications/MAMP directory, I double clicked the MAMP application and it opened.
- In there, I clicked the “Open Start Page” button and it opened a web page for me.
At this point MAMP is running and you are ready to install WordPress. To get WordPress running you do the following:
- Download WordPress
- While WordPress is downloading, go back to the start page MAMP opened for you and click the link at the top for phpMyAdmin.
- This is where you will set up a mySQL database to run WP on.
- In the phpMyAdmin page, under the Create new database box, type in a database name … for this you can call it anything you want … I named mine local_wp … again, it can be anything.
- Take your WordPress files and place them inside the Applications/MAMP/htdocs directory.
- Open the wp-config-sample.php file and update it with the following (given you named your database local_wp) … the thing that threw me for the first 20 minutes or so was adding that :8889 to the DB_HOST section.
- Rename the wp-config-sample.php to just wp-config.php and save it back in your Applications/MAMP/htdocs directory.
At this point you just need to point your browser to http://localhost:8888/wp-admin/install.php and finish out the process … from here it is as easy as can be.Â So this should get you going in a few minutes with your own development environment on your machine.Â Talk about a killer personal content management system! At this point, you could install all sorts of other open source PHP based stuff in the MAMP directory to try out and tweak.Â I hope this helps!