0273.html 5.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Installing phpBB Forum/Bulletin Board on Debian</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Installing phpBB Forum/Bulletin Board on Debian">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="11/30/2023 05:51:12 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Installing phpBB Forum/Bulletin Board on Debian</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Log into the Debian device</li>
  27. <li>Run the following commands in a terminal:
  28. <div class="codeBlock"># update repositories and install any available software updates<br />
  29. sudo apt update<br />
  30. sudo apt upgrade -y<br />
  31. # install Apache HTTPD and MySQL<br />
  32. sudo apt-get install apache2 mariadb-server mariadb-client curl<br />
  33. # install PHP components<br />
  34. 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 />
  35. # configure the MySQL database<br />
  36. sudo su<br />
  37. mysql_secure_installation</div>
  38. </li>
  39. <li>Press Enter to login as root</li>
  40. <li>Type Y and press Enter to set a root password, type the password twice to confirm</li>
  41. <li>Type Y and press Enter to remove anonymous users</li>
  42. <li>Type Y and press Enter to disallow root login remotely</li>
  43. <li>Type Y and press Enter to remove the test database</li>
  44. <li>Type Y and press Enter to reload privilege tables</li>
  45. <li>Run the following command to login into MySQL:
  46. <div class="codeBlock">mysql -u root -p</div>
  47. </li>
  48. <li>Authenticate with the root password set earlier</li>
  49. <li>Run the following commands to create the phpbb database and database user
  50. <div class="codeBlock">CREATE DATABASE phpbb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;<br />
  51. GRANT ALL ON phpbb.* TO &#39;phpbb_rw&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;!!phpBB##&#39;;<br />
  52. FLUSH PRIVILEGES;<br />
  53. EXIT;<br />
  54. exit</div>
  55. </li>
  56. <li>Continue with the following commands to download and extract phpBB in the Apache webroot
  57. <div class="codeBlock"># download latest phpbb version<br />
  58. sudo wget -O phpbb.tar.gz https://download.phpbb.com/pub/release/3.3/3.3.2/phpBB-3.3.2.tar.bz2<br />
  59. # extract phpbb.tar.gz<br />
  60. sudo tar xvf phpbb.tar.gz --directory /var/www<br />
  61. # rename phpbb folder<br />
  62. sudo mv /var/www/phpBB* /var/www/phpbb<br />
  63. # create a new phpbb.conf file to configure the site<br />
  64. sudo nano /etc/apache2/sites-available/phpbb.conf</div>
  65. </li>
  66. <li>Paste the following configuration into phpbb.conf<br />
  67. <p>Alias /phpbb &quot;/var/www/phpbb/&quot;<br />
  68. &lt;Directory /var/www/phpbb/&gt;<br />
  69. &nbsp; &nbsp; AllowOverride All<br />
  70. &lt;/Directory&gt;</p></li>
  71. <li>Press CTRL+O, Enter, CTRL+X to write the changes to phpbb.conf</li>
  72. <li>Continue with the following commands to enable the site and restart Apache:
  73. <div class="codeBlock"># enable the phpbb site and required PHP modules<br />
  74. sudo a2ensite phpbb<br />
  75. sudo a2enmod rewrite<br />
  76. # set the owner of the new phpbb directory to www-data<br />
  77. sudo chown -R www-data:www-data /var/www/phpbb<br />
  78. # restart apache2 service<br />
  79. sudo systemctl restart apache2</div>
  80. </li>
  81. <li>Open a web browser and navigate to http://DNSorIP/phpbb</li>
  82. <li><label for="cb_li_138017_24">The phpBB introduction screen should be displayed</label></li>
  83. <li><label for="cb_li_138017_24">Click the Install tab</label></li>
  84. <li><label for="cb_li_138017_24">Click the Install button</label></li>
  85. <li>Input an administrator username, email address and password &gt; Click Submit</li>
  86. <li>Enter the database hostname, username, password and database name &gt; Click Submit</li>
  87. <li>Click the Submit button on the&nbsp;Server configuration page</li>
  88. <li>Click the Submit button on the E-mail configuration page</li>
  89. <li>Enter a title and short description on the&nbsp;Bulletin board configuration page &gt; Click Submit</li>
  90. <li>When the installation completes run the following command in terminal to delete the /install directory<br />
  91. sudo rm /var/www/phpbb/install -r</li>
  92. <li>In a web browser, navigate to http://DNSorIP/phpbb</li>
  93. <li>Welcome to your very own, self-hosted forum with phpBB</li>
  94. </ol> </div>
  95. </div>
  96. </body>
  97. </html>