<\/span><\/h2>\nYour database will hold all of the text and information about your phpBB website. phpBB supports several different database servers, but we will use MariaDB. MariaDB is functionally identical to MySQL while being open-source. You can install it like so:<\/p>\n
sudo apt install mariadb-server mariadb-client<\/pre>\nOnce your database server is installed, it’s important to run the first-time setup command:<\/p>\n
mysql_secure_installation<\/pre>\nWith this command, you configure a new root password for the database server, as well as set important security settings. You will be asked for a root password at the start – this is NOT your operating system root password! Instead, this is the root password of the database server<\/em>. This is set to<\/strong> nothing <\/strong>by default, so just press the [Enter] key on your keyboard when prompted without typing any text.<\/p>\nHere is an example of our recommended answers to the questions asked during the setup:<\/p>\n
<\/p>\n
These are the settings to use for a production system. Now that the database server has been added, we will need to create a database for phpBB to use.<\/p>\n
<\/span>4. Configuring the database server<\/span><\/h2>\nTo log into the database command line, run this command:<\/p>\n
mysql -u root -p<\/pre>\nType in the root password that you set when running the first-time setup command. You should now be logged into the command line of the database manager.<\/p>\n
Create a database, replacing <database name> with the name of your database (do not add the ‘<‘ and ‘>’ characters)<\/p>\n
CREATE DATABASE <database name>;<\/pre>\nNow we need a user for this database. We will create one like this:<\/p>\n
CREATE USER 'usernamehere'@'localhost' IDENTIFIED BY 'changethispassword';<\/pre>\nThen, we give that new user complete access to the database we made earlier:<\/p>\n
GRANT ALL on <database name>.* TO 'usernamehere'@'localhost';<\/pre>\nFinally, commit the changes made to the privileges:<\/p>\n
FLUSH PRIVILEGES;<\/pre>\nYou can exit the command line by typing QUIT;<\/code>. Just like that, we now have a database, as well as a user that will allow phpBB to access the database.<\/p>\n<\/span>5. Installing phpBB on Debian 11<\/span><\/h2>\nWith everything set up, we can finally download and set up phpBB. Download it to your web root by running this command:<\/p>\n
wget -P \/var\/www\/html\/ https:\/\/download.phpbb.com\/pub\/release\/3.3\/3.3.9\/phpBB-3.3.9.zip<\/pre>\nNow we’ll enter our web root folder and unzip the archive:<\/p>\n
cd \/var\/www\/html\/ && unzip phpBB-*<\/pre>\nUnfortunately, since phpBB is saved in a subfolder, we will need to move all of the contents out of there and into the web root folder:<\/p>\n
cp -Rp phpBB3\/* . && rm -rf phpBB3<\/pre>\nThis command copies all of the contents of the subfolder (including hidden files) into the folder we are currently in (\/var\/www\/html) and deletes the directory it was in originally. You can ignore any errors as they are expected with copying the hidden files.<\/p>\n
We now need to adjust the file ownership for the web server. This allows the webserver to edit the files as needed:<\/p>\n
chown -R www-data:www-data \/var\/www\/html\/*<\/pre>\nYou should now be able to access the installation wizard at https:\/\/yourdomainorip\/ –\u00a0 the webpage should show up automatically.<\/p>\n
<\/p>\n
To start installing, click on the Install tab, then click on the Install button. You will be asked to fill in some information:<\/p>\n
<\/p>\n
Make sure to pick your own username, email, and password. The harder they are to guess, the harder it will be for someone to log into your website. Click on Submit when done. You will now need to set up your database credentials:<\/p>\n
<\/p>\n
You need to use the credentials that you set up earlier in the tutorial. The values in the screenshot only serve as example values. We recommend using 127.0.0.1 for the database connection instead of localhost. You can leave the server port field blank. Change the table prefix if you plan on setting up more than one phpBB instance inside of one database. Click on Submit to continue.<\/p>\n
The next step is setting up your server configuration:<\/p>\n
<\/p>\n
Since we are not using SSL (https:\/\/) we should leave Cookie secure set to No. Make sure to leave the Server protocol set to http:\/\/ unless you have configured an SSL certificate already. Under the Domain name, your server IP or domain should already be present there. We suggest leaving “Force server URL settings” set to No unless you know how your server is set up already. Click on Submit to continue.<\/p>\n
Up next is the email configuration:<\/p>\n
<\/p>\n
If you do not plan on using email on your website, you can set “Enable board-wide emails” to Disable. Note that user creation\u00a0 If you plan on using SMTP, you can set your SMTP server details here. Click on Submit when done.<\/p>\n
Finally, we can configure our bulletin board information:<\/p>\n
<\/p>\n
Set your board title, language, and a short description. Click on Submit when done. The installation will begin now. When finished, you can click on the “Take me to the ACP” link to go to the admin control panel.<\/p>\n
You have successfully installed phpBB on Debian 11<\/a>! You can now create forums, boards, posts, and more.<\/p>\nWas this guide helpful in getting your forum board online? We would appreciate you mentioning us on social media or even on your new board. Thank you for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"
In this guide, we’ll go over everything you need to install phpBB on Debian 11. Running your own platform where … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":44846,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,13],"tags":[48,360],"yoast_head":"\nHow to Install phpBB on Debian 11 - RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n \n \n\t \n\t \n\t \n