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

REQUIREMENTS

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

UPDATE THE SYSTEM

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

INSTALL phpBB

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 https://download.phpbb.com/pub/release/3.1/3.1.2/phpBB-3.1.2.zip

After the download is finished, unzip the archive.

# unzip phpBB-3.1.2.zip

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

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

SET THE CORRECT DIRECTORY AND FILE PERMISSIONS

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

CREATE MYSQL DATABASE

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

Enter MySQL as root and create the needed database:

Need a fast and easy fix?
✔ Unlimited Managed Support
✔ Supports Your Software
✔ 2 CPU Cores
✔ 2 GB RAM
✔ 50 GB PCIe4 NVMe Disk
✔ 1854 GeekBench Score
✔ Unmetered Data Transfer
NVME 2 VPS

Now just $43 .99
/mo

GET YOUR VPS
# mysql -u root -p

mysql> CREATE DATABASE phpbb;

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

mysql> FLUSH PRIVILEGES;

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 http://192.168.1.2:3000/install)

    * @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->

    Reply

Leave a Comment