1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Installing phpBB Forum/Bulletin Board on Debian</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Browser Based,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Bulletin Board,Forum,Homelab,MariaDB,MySQL,PHP,PHP Based Application,PHP Based Forum,PhpBB,Self-Hosted Forum,Debian,Linux,Ubuntu,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Installing phpBB Forum/Bulletin Board on Debian">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="11/30/2023 05:51:12 AM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Installing phpBB Forum/Bulletin Board on Debian</h1>
- </div>
- <div></div>
- <div id="content">
- <ol>
- <li>Log into the Debian device</li>
- <li>Run the following commands in a terminal:
- <div class="codeBlock"># update repositories and install any available software updates<br />
- sudo apt update<br />
- sudo apt upgrade -y<br />
- # install Apache HTTPD and MySQL<br />
- sudo apt-get install apache2 mariadb-server mariadb-client curl<br />
- # install PHP components<br />
- sudo apt install php php-mysql php-cli php-json php-opcache php-gd php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip<br />
- # configure the MySQL database<br />
- sudo su<br />
- mysql_secure_installation</div>
- </li>
- <li>Press Enter to login as root</li>
- <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
- <li>Type Y and press Enter to remove anonymous users</li>
- <li>Type Y and press Enter to disallow root login remotely</li>
- <li>Type Y and press Enter to remove the test database</li>
- <li>Type Y and press Enter to reload privilege tables</li>
- <li>Run the following command to login into MySQL:
- <div class="codeBlock">mysql -u root -p</div>
- </li>
- <li>Authenticate with the root password set earlier</li>
- <li>Run the following commands to create the phpbb database and database user
- <div class="codeBlock">CREATE DATABASE phpbb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;<br />
- GRANT ALL ON phpbb.* TO 'phpbb_rw'@'localhost' IDENTIFIED BY '!!phpBB##';<br />
- FLUSH PRIVILEGES;<br />
- EXIT;<br />
- exit</div>
- </li>
- <li>Continue with the following commands to download and extract phpBB in the Apache webroot
- <div class="codeBlock"># download latest phpbb version<br />
- sudo wget -O phpbb.tar.gz https://download.phpbb.com/pub/release/3.3/3.3.2/phpBB-3.3.2.tar.bz2<br />
- # extract phpbb.tar.gz<br />
- sudo tar xvf phpbb.tar.gz --directory /var/www<br />
- # rename phpbb folder<br />
- sudo mv /var/www/phpBB* /var/www/phpbb<br />
- # create a new phpbb.conf file to configure the site<br />
- sudo nano /etc/apache2/sites-available/phpbb.conf</div>
- </li>
- <li>Paste the following configuration into phpbb.conf<br />
- <p>Alias /phpbb "/var/www/phpbb/"<br />
- <Directory /var/www/phpbb/><br />
- AllowOverride All<br />
- </Directory></p></li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to phpbb.conf</li>
- <li>Continue with the following commands to enable the site and restart Apache:
- <div class="codeBlock"># enable the phpbb site and required PHP modules<br />
- sudo a2ensite phpbb<br />
- sudo a2enmod rewrite<br />
- # set the owner of the new phpbb directory to www-data<br />
- sudo chown -R www-data:www-data /var/www/phpbb<br />
- # restart apache2 service<br />
- sudo systemctl restart apache2</div>
- </li>
- <li>Open a web browser and navigate to http://DNSorIP/phpbb</li>
- <li><label for="cb_li_138017_24">The phpBB introduction screen should be displayed</label></li>
- <li><label for="cb_li_138017_24">Click the Install tab</label></li>
- <li><label for="cb_li_138017_24">Click the Install button</label></li>
- <li>Input an administrator username, email address and password > Click Submit</li>
- <li>Enter the database hostname, username, password and database name > Click Submit</li>
- <li>Click the Submit button on the Server configuration page</li>
- <li>Click the Submit button on the E-mail configuration page</li>
- <li>Enter a title and short description on the Bulletin board configuration page > Click Submit</li>
- <li>When the installation completes run the following command in terminal to delete the /install directory<br />
- sudo rm /var/www/phpbb/install -r</li>
- <li>In a web browser, navigate to http://DNSorIP/phpbb</li>
- <li>Welcome to your very own, self-hosted forum with phpBB</li>
- </ol> </div>
- </div>
- </body>
- </html>
-
|