

Using your browser, go to or if you installed phpBB in a separate directory.

# chmod 770 store/ cache/ files/ Completing the installation Give appropriate permissions to the config file and the following directories: # chmod 660 images/avatars/upload/ config.php Note: Replace your_phpBB_directory with the directory you installed phpBB in. If you installed phpBB in a separate directory make sure to change your working directory to that directory: cd /var/www/html/your_phpBB_directory forumĬhange the owner to the www-data user for all the files and sub-directories in /var/www/html: # chown -R www-data:www-data /var/www/html/ Note: If you installed phpBB in a separate directory you can type in the following command if you want to rename the phpBB3 directory to something else like forum so phpBB would be accessible at : # mv. Move all the contents from the extracted directory to the current directory(Skip this step and the next step if you have another site’s contents in the /var/Delete the empty phpBB3 directory: # rm -rf. *ĭownload the latest phpBB version to your server(At the time of writing 3.2.0 is the latest version of phpBB): # wget Įxtract phpBB to the current directory: # unzip phpBB-3.2.0.zipĭelete the archive file as we no longer need it: # rm phpBB-3.2.0.zip Grant all privileges to the user on the phpBB database: mysql> grant all privileges on phpBB.* to the privileges we just gave to the user to the server: mysql> flush privileges Installing phpBBĬhange to Apache’s document root directory: # cd /var/www/htmlĭelete Apache default files(You should skip this step if you have another site’s contents in this directory and install phpBB in a separate directory instead): # rm -rf. mysql> create user identified by 'randomgeneratedpassword'

Now run this command to install the LAMP stack with PHP7: # apt-get -y install apache2 mysql-server mysql-client libapache2-mod-php7.0 php7.0-mysql php7.0-gd imagemagick unzip Creating a database for phpBBĬreate a blank database for phpBB to use: mysql> create database phpBB Ĭreate the database user, make sure to change the password randomgeneratedpassword with your own password. Make sure your packages are up to date: # apt-get update Installing the LAMP stackįirst login as root so we don’t have to type sudo in front of every command: # sudo su In this tutorial, we will show you how to install phpBB on an Ubuntu 16.04 VPS. With phpBB’s extensive features you can create your own forum in a matter of minutes and what’s most important, it’s completely free. It has a huge variety of features like flat topic structure, sub-forums, forum-specific styles, user groups, group-based permissions, database query and template caching, support for PHP 7, multiple database engines and much more. PhpBB is an open source bulletin board forum software that provides a virtual space for discussion among the members of your website.
