Installing BuddyPress Locally on a Mac

July 3, 2009 in How To, Screencasts

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.

31 responses to Installing BuddyPress Locally on a Mac

  1. Cool! Thanks Andy

  2. thanks super.

  3. VirtualHost 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.

  4. I use WAMP, NetBeans 6.7, and XDebug on Vista 64 with no issues, and it’s setup in a similar fashion.

  5. NCB said on July 3, 2009

    Thanks! This was very helpful

  6. Thanks for sharing, Andy! This will save me a ton of time as I setup my development environment.

  7. Ah. Cool :)

  8. The 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!!!

  9. Elio said on July 3, 2009

    Talking 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/

  10. great 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

  11. When 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!

  12. URLs 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 :)

  13. Ha! 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.

  14. Looking forward to (attemepting) to wrap my head around WordPress MU and Buddypress.

    Great job al!

  15. Very useful, thanks Andy.

  16. Vik said on July 15, 2009

    Everthing 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?

  17. Sorry 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?

  18. managed to find it in the end… thanks for the help

  19. When 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

  20. Also when I try to write the same information from the video hosts file, the system don’t let me save it.

  21. Andy,
    I’m glad you understand that some of us (me) are visual learners. This was the easiest tutorial I have ever used. Great work!!!

  22. Ricky, glad you liked it.

  23. Thanks a lot Andy i was looking for this installation guide from many days. At last found it here. Keep up the good work.

  24. This 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

  25. When 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

  26. If the hosts file is empty you probably have the wrong file.

  27. Andy 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!

  28. I’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.

  29. The current version of MAMP is way different now, I got it up and working really easily but I never saw anything at all about sub domains. I’ve also never seen that built in wordpress wp-config.php file editor, how did you get that?

  30. Hey Andy,

    Nice presentation; however, at this point – a bit dated. Any chance you can get this updated using latest WordPress 3.0.1 AND showing how to do this using subdomains. I’ve already got a hosted site using WP 3.0.1 + multiuser (subdomain option) + Buddypress and I”m trying to get it loaded to a local server so I can work with the WP files using Dreamweaver CS5 for dynamic live code view, etc. Much thanks and great efforts.

    Brian

Leave a Reply

Your email address will not be published. Required fields are marked *

If you need help with your BuddyPress powered site, please open a new topic in our support forums.

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>