Steve’s Ubuntu Weblog

Mainly (but not only) about Ubuntu

Copy a PHPBB3 forum to a new server

I am moving all of my services from an old server to a new one. Moving the PHPBB3 forum was easy once I figured it out. Here’s how to do it.

1) On the old server make a copy of the forum database, for instance using phpMyAdmin-Export. Also make a copy of config.php from YOUR_WEBPAGE/phpbb3 (usually /var/www/phpbb3).
2) On the new server install PHPBB3 via synaptic or apt.
3) Make the forum available to the webserver by entering sudo ln -s /usr/share/phpbb3/www /var/www/phpbb and restarting Apache with sudo /etc/init.d/apache2 restart.
4) Check that PHPBB3 is installed correctly by opening a browser and going to /localhost/phpbb3. To login use “admin” for both username and password.
5) Using phpMyAdmin or command line import the database that you saved in step 1).
6) In /var/www/phpbb3 rename the file config.php to configOrig.php and copy the config.php from the old server into the directory.
7) Reload /localhost/phpbb3 and your old forum should be there.

24 January, 2010 Posted by | Ubuntu | , , , | 6 Comments