Installing BuddyPress Locally on a Mac
I’ve recently noticed some posts on the BuddyPress forums where people are having problems getting WordPress MU and BuddyPress running locally on their machine.
I spent some time today to put together a twenty minute video that will show you how to set up and run WordPress MU and BuddyPress locally on a Mac. There is a tool you can use that will make this very easy called MAMP. For those of you running Windows, there is a similar tool called WAMP that will basically do the same thing.
I also make use of Textmate in this screen cast to edit the hosts file, if you don’t use it you can simply open the Finder, use the “Go” menu, and then the “Go to folder” option. Enter /etc/ as the folder and then scroll to the “hosts” file and use the editor of your choice. If you are familiar with the terminal you can also use your command line editor of choice.
I highly recommend you turn on the HD option for this video and make it full screen, that way you’ll easily be able to read and follow along.
Walter24 said:
On July 3, 2009Cool! Thanks Andy
bedava sitem said:
On July 3, 2009thanks super.
David Lewis said:
On July 3, 2009VirtualHost X is a nice tool that will edit your host file and apache config files for you to set up virtual hosting. It’s not hard to do with a text editor… but VirtualHost X makes it idiot proof.
Also I believe MAMP is a paid product. XXAMP is free and does the same thing.
If you want to set up your own environment, that’s not that hard either. All you have to do is uncomment one line in the Apache httpd.config file to enable PHP and then install MySQL and download Sequel Pro.
One note of caution. Without going into all the gory details… if you want to set up your own environment (i.e. without MAMP or XXAMP) and are on a 64bit Mac… it’s much easier to use Sequel Pro for database management than PHPMyAdmin. PHPMyAdmin does not like the built-in build of PHP on Leopard. It will complain about a missing module. And the Entropy distribution of PHP will just open up a whole other can of worms. Bottom line… forget PHPMyAdmin and just use Sequel Pro.
John James Jacoby said:
On July 3, 2009I use WAMP, NetBeans 6.7, and XDebug on Vista 64 with no issues, and it’s setup in a similar fashion.
Andy Peatling said:
On July 3, 2009@David Lewis: The basic version of MAMP is free.
NCB said:
On July 3, 2009Thanks! This was very helpful
Joshasbury said:
On July 3, 2009Thanks for sharing, Andy! This will save me a ton of time as I setup my development environment.
David Lewis said:
On July 3, 2009Ah. Cool
riskiii said:
On July 3, 2009The video makes it so much easier. I don’t know why I didn’t think of the /etc/hosts file. Another good server is the Zend Server Community Edition, it is free as well. It works the same on all platforms. I look forward to digging into buddypress!!!
Elio said:
On July 3, 2009Talking about WAMP, I have written a tutorial describing the installation steps of BuddyPress using WAMP on Windows. You can read it at
http://www.ilovecolors.com.ar/starting-with-buddypress-wordpress-mu/
Vachi said:
On July 4, 2009great screen cast andy,
one thing it took me few mins to find out,
in textmate to have the ability of using mate as a bash command you have to activate it
its done by
go to textmate>help>terminal usage> than create link
now you will be able to use mate in terminal like andy did in the video
thanks again, and question >> i remember you did like a svn install presentation at wordcamp last year, can you put up that cast, or make a video, i think it would be very helpful to everyone
thanks again
derry said:
On July 6, 2009When I setup my localhost.localdomain in etc/hosts and go to browser. It always adds www. in front of localhost.localdomain and cannot find the files? Any ideas why? I followed your guide like an apostle. Thanks! And thanks for the great vid!
Flynn said:
On July 6, 2009URLs used in the video (highlight and drag into terminal for ease of use)
WMPU: svn co http://svn.automattic.com/wordpress-mu/branches/2.7 wpmu
BuddyPress: svn co http://svn.buddypress.org/branches/1.0 buddypress
TextMate commands for domain:
Open TextMate: mate /etc/hosts
Save some typing time
blinovitch said:
On July 8, 2009Ha! I just spent two days tinkering on and off to do this the hard way. I’ll keep this in mind for the next time I have to do a local installation.
Craig Cummings said:
On July 9, 2009Looking forward to (attemepting) to wrap my head around Wordpress MU and Buddypress.
Great job al!
donnacha | WordSkill said:
On July 10, 2009Very useful, thanks Andy.
Vik said:
On July 15, 2009Everthing works great up until activating BuddyPress. When I activate BuddyPress sitewide, I get a blank screen. Attempting to reload http://localhost.localdomain/wpmu/wp-admin/ after that, I also get a blank screen. What could be causing this?
Bruce said:
On July 18, 2009Sorry for being really really dumb but i can not find the hosts file???? can anyone help? has the new update changed the name of that file?
Bruce said:
On July 25, 2009managed to find it in the end… thanks for the help
priscila said:
On August 11, 2009When I open the hosts file… it’s an empty file… there’s nothing written in the file. Is that right? Does anyone can help me? What should I write in the file? Thanks. Priscila
priscila said:
On August 11, 2009Also when I try to write the same information from the video hosts file, the system don’t let me save it.
Ricky said:
On September 2, 2009Andy,
I’m glad you understand that some of us (me) are visual learners. This was the easiest tutorial I have ever used. Great work!!!
Andy Peatling said:
On September 2, 2009Ricky, glad you liked it.
Imran | IT Buzz said:
On September 4, 2009Thanks a lot Andy i was looking for this installation guide from many days. At last found it here. Keep up the good work.
Denis said:
On September 10, 2009This is great but got stuck when setting the port to “default Apache and MySQL ports.” For some reason the Apache light goes form green to red. The light goes back to green when I “Reset to MAMP ports.”
Any helpful ideas anyone?
Thanks
CT said:
On October 5, 2009When I open the hosts file… it’s an empty file… there’s nothing written in the file. Is that right? Does anyone can help me? What should I write in the file? Thanks. Priscila
Andy Peatling said:
On October 6, 2009If the hosts file is empty you probably have the wrong file.
Alice Ralph said:
On November 6, 2009Andy fantastic video!! This answered almost all of the problems I was having (installing Buddypress on MAMP on a Macbook Pro!) The only thing I had a problem was changing the localhost to localhost.localdomain – it stopped Apache working. I had to go to System Prefs > Sharing > and turn off Web Sharing. Restarted MAMP and all worked perfectly.
You are my hero, thanks!
Todd said:
On December 31, 2009I’m on tiger and I have to set up using Netinfo Manager but i am very confused on how to properly set it up. I found the file I need to edit but I’m not sure how to manage it for Wordpress MU
Any help would be wonderful.