Install phpBB 3 on a Debian Wheezy VPS

PhpBBIn this tutorial we will show you how to install phpBB on a Debian Wheezy VPS.

phpBB is an Internet forum package written in the PHP scripting language, it is easy to use, powerful, and highly customizable. The name “phpBB” is an abbreviation of PHP Bulletin Board.

Features of phpBB include support for multiple database engines (PostgreSQL, SQLite, MySQL, Oracle Database, Microsoft SQL Server), flat message structure (as opposed to threaded), hierarchical subforums, topic split/merge/lock, user groups, multiple attachments per post, full-text search, plugins and various notification options (e-mail, Jabber instant messaging, ATOM feeds).

Before you start the installation, please make sure that you have LAMP stack installed on your server. If not, follow our excellent tutorial about how to set up LAMP (Linux, Apache, MariaDB, PHP) stack on Debian Wheezy


We will be using our SSD 1 Linux VPS hosting plan for this tutorial.


Login to your server as user ‘root’ and make sure your Debian 7 (Wheezy) VPS is fully up-to-date:

# ssh root@hostname
# apt-get update && apt-get upgrade -y


The current version of phpBB in the writing of this tutorial is 3.1.2. You can check that from their website. For our purposes we will download phpBB in to the opt directory by issuing the following commands:

# cd /opt

# wget --no-check-certificate

After the download is finished, unzip the archive.

# unzip

Let’s copy the installation files into Apache’s document root:

# cp -R phpBB3/* /var/www/


Enter Apache’s document root:

# cd /var/www/

With the command below we will set the required file permissions:

# for files in config.php cache files store images/avatars/upload/; do chmod 777 $files; done


Next thing we need to do is to create a MySQL database for phpBB.

Enter MySQL as root and create the needed database:

# mysql -u root -p

mysql> CREATE DATABASE phpbb;

mysql> GRANT ALL PRIVILEGES on phpbb.* TO 'phpbbuser'@'localhost' IDENTIFIED BY 'your_password';


mysql> quit;

You can now finish your phpBB installation by opening your favorite web browser and navigate to: http://your_ip_address/install

Enter the required database credentials like database name, database username etc…

You should see a successful database connection. Then, setup your admin username and password and in the following step if you have a custom SMTP server setup your email settings.

After finishing the installation it is recommended to delete the install directory in your Apache’s document root:

# rm -rf /var/www/install

That is it. You have successfully installed phpBB on your Debian Wheezy VPS.

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install phpBB for you.They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

2 thoughts on “Install phpBB 3 on a Debian Wheezy VPS”

  1. Thank you with very clear step by step intro. I follow it till the last step, but it does not do any action. And just display something like below. (I use Windows Firefox browse to access to

    * @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ /**#@+ * @ignore */ define(‘IN_PHPBB’, true); define(‘IN_INSTALL’, true); /**#@-*/ $phpbb_root_path = (defined(‘PHPBB_ROOT_PATH’)) ? PHPBB_ROOT_PATH : ‘./../’; $phpEx = substr(strrchr(__FILE__, ‘.’), 1); if (version_compare(PHP_VERSION, ‘5.3.3’) register(); $phpbb_class_loader = new \phpbb\class_loader(‘phpbb\\’, “{$phpbb_root_path}phpbb/”, $phpEx); $phpbb_class_loader->register(); $phpbb_class_loader_ext = new \phpbb\class_loader(‘\\’, “{$phpbb_root_path}ext/”, $phpEx); $phpbb_class_loader_ext->register(); // Set up container $phpbb_config_php_file = new \phpbb\config_php_file($phpbb_root_path, $phpEx); $phpbb_container_builder = new \phpbb\di\container_builder($phpbb_config_php_file, $phpbb_root_path, $phpEx); $phpbb_container_builder->set_use_extensions(false); $phpbb_container_builder->set_dump_container(false); $phpbb_container_builder->set_use_custom_pass(false); $phpbb_container_builder->set_inject_config(false); $phpbb_container_builder->set_compile_container(false); $other_config_path = $phpbb_root_path . ‘install/update/new/config/’; $config_path = file_exists($other_config_path . ‘services.yml’) ? $other_config_path : $phpbb_root_path . ‘config/’; $phpbb_container_builder->set_config_path($config_path); $phpbb_container_builder->set_custom_parameters(array( ‘core.root_path’ => $phpbb_root_path, ‘core.adm_relative_path’ => $phpbb_adm_relative_path, ‘core.php_ext’ => $phpEx, ‘core.table_prefix’ => ”, ‘cache.driver.class’ => ‘phpbb\cache\driver\file’, )); $phpbb_container = $phpbb_container_builder->get_container(); $phpbb_container->register(‘dbal.conn.driver’)->setSynthetic(true); $phpbb_container->compile(); $phpbb_class_loader->


Leave a Comment

To prove you are human please solve the following *