Alright! This tutorial is based on a friend’s request who wished to install a local copy of bbPress on his laptop so that he can play around with it. Moreover I use it offline to develop themes and plugins. If you have ever installed WordPress or bbPress manually, then its exactly the same procedure but if you have only tried with One-click installations, then this is new for you. Without any further delay, here is what you need to do.
- Install XAMPP on your computer. (Download XAMPP)
- Now Start Apache & MySql from XAMPP and type localhost in your browser.
- Select phpMyAdmin from the left and create a new database.
- Download the lastest copy of bbPress available from bbress.org
- Unzip the compressed file of bbPress under the htdocs folder of XAMPP folder (By default it is installed in C:\XAMPP\)
- Rename the bb-config-sample.php to bb-config.php and open it any editor for editing. (I use Notepad++ Portable)
- Come back to the bb-config.php file and fill your database name (the name you chose while creating the database), username (root) and leave the password entry as blank.
It should look like this (I chose bbPress as my database name):define('DB_NAME', 'bbpress'); define('DB_USER', 'root'); define('DB_PASSWORD', ''); define('DB_HOST', 'localhost'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');
When you have filled in your Sql settings, then save the file and exit the editor.
- Now open localhost/bbpress in your browser. Fill in the details and click Install bbPress.
- Copy your randomly generated password and login into your bbPress dashboard. Remember to change the password to something that you can remember easily.
- That’s it. Just open localhost/bbpress/ in your browser and it will point to the local copy of bbPress installation.
If you are getting any warnings or errors related to deprecation then have a look at fixing bbPress 1.0.2 installation guide on PHP 5.3 or later.
I am all open for help. Have your say in the comments.
Comments
11 responses to “Install bbPress locally offline on your computer”
I feel that its a good practice to change your root password in MySQL rather than leaving it blank.
You don’t need to that on a local installation. There is no use of it.
I receive the following error message after creating a new database, then going to loalhost/bbpress. Config file was made just like uppet, database’s name is bbpress.
The error message is the following:
Deprecated: Assigning the return value of new by reference is deprecated in D:\Program Files\xampp\htdocs\bbpress\bb-settings.php on line 186
Deprecated: Assigning the return value of new by reference is deprecated in D:\Program Files\xampp\htdocs\bbpress\bb-includes\backpress\functions.wp-object-cache.php on line 108
Deprecated: Assigning the return value of new by reference is deprecated in D:\Program Files\xampp\htdocs\bbpress\bb-includes\backpress\pomo\mo.php on line 171
Deprecated: Assigning the return value of new by reference is deprecated in D:\Program Files\xampp\htdocs\bbpress\bb-includes\functions.bb-l10n.php on line 484
Warning: Cannot modify header information – headers already sent by (output started at D:\Program Files\xampp\htdocs\bbpress\bb-settings.php:186) in D:\Program Files\xampp\htdocs\bbpress\bb-includes\functions.bb-pluggable.php on line 232
Do you have any idea?
I have switched to Win 7 and I got exactly the same messages when trying to install it under localhost. I need to take a look. Keep yourself subscribed to my updates.
Well, I’m using Windows XP Pro SP3. I’ve used xampp before to install WordPress on localhost, there was no problem with it. So I’m a little confused, what’s the problem should me.
Anyways, I’ll look after for your reply!
I have solved the problem. Fix will be coming up as a new post. 🙂
Its live – http://blog.ashfame.com/2010/01/fix-bbpress-installation-problem/
Still got some problem:
Warning: require_once(D:\Program Files\xampp\htdocs\bbpress/bb-includes/backpress/class.bp-log.php) [function.require-once]: failed to open stream: No such file or directory in D:\Program Files\xampp\htdocs\bbpress\bb-settings.php on line 107
It says “No such file or directory”.
Make sure you have overwritten all the files. Try deleting and then pasting the new files again.
Oh I thought, that I need to totally clear the bbPress directory and replace it with the trunk version. Anyways, it works now, thanks for the support!
You are welcome! 🙂