瀏覽代碼

0455: Running phpBB in Docker on Ubuntu Server

i12bretro 1 年之前
父節點
當前提交
17e0884265
共有 1 個文件被更改,包括 79 次插入0 次删除
  1. 79 0
      0455.html

+ 79 - 0
0455.html

@@ -0,0 +1,79 @@
+    <!DOCTYPE html>
+    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Running phpBB in Docker on Ubuntu Server</title>
+        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+        <meta charset="UTF-8">
+        <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Container,Containerization,Docker,Docker Container,Docker How To,Docker Installation Tutorial,Docker Made Simple,Docker Simplified,Homelab,Linux,PhpBB,Bulletin Board,Forum,Self-Hosted Forum,PHP Based Application,PHP Based Forum,How To,Tutorial,i12bretro">
+        <meta name="author" content="i12bretro">
+        <meta name="description" content="Running phpBB in Docker on Ubuntu Server">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <meta name="revised" content="08/20/2023 07:15:24 PM" />
+				          <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>Running phpBB in Docker on Ubuntu Server</h1>
+          </div>
+          <div></div>
+          <div id="content">
+          <h2>Installing Docker</h2>
+
+<ol>
+	<li>Log into the Linux host and run the following commands in a terminal window
+	<div class="codeBlock"># update software respositories<br />
+	sudo apt update<br />
+	# install available software updates<br />
+	sudo apt upgrade -y<br />
+	# install prerequisites<br />
+	sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y<br />
+	# add docker gpg key<br />
+	curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -<br />
+	# add docker apt repository<br />
+	sudo add-apt-repository &quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable&quot;<br />
+	# install docker<br />
+	sudo apt install docker-ce docker-compose containerd.io -y<br />
+	# add the current user to the docker group<br />
+	sudo usermod -aG docker $USER<br />
+	# reauthenticate for the new group membership to take effect<br />
+	su - $USER</div>
+	</li>
+</ol>
+
+<h2>Running phpBB Container</h2>
+
+<ol>
+	<li>Continue with the following commands in a terminal window
+	<div class="codeBlock"># create working directories<br />
+	mkdir /home/$USER/docker/phpBB -p &amp;&amp; mkdir /home/$USER/docker/mariadb -p<br />
+	# set owner of working directories<br />
+	sudo chown &quot;$USER&quot;:&quot;$USER&quot; /home/&quot;$USER&quot;/docker -R<br />
+	# create phpbbnet network<br />
+	docker network create phpbbnet<br />
+	# run the mariadb docker container<br />
+	docker run --name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=phpbb_rw -e MYSQL_PASSWORD=phpBBp@$$ -e MYSQL_DATABASE=phpbb -v /home/$USER/docker/mariadb:/var/lib/mysql --network phpbbnet -d mariadb:latest<br />
+	# run the phpbb docker container<br />
+	docker run -d --name phpBB -p 8080:8080 -e PHPBB_DATABASE_USER=phpbb_rw -e PHPBB_DATABASE_PASSWORD=phpBBp@$$ -e PHPBB_DATABASE_NAME=phpbb --network phpbbnet bitnami/phpbb</div>
+	</li>
+	<li>Open a web browser and navigate to http://DNSorIP:8080</li>
+	<li>Welcome to phpBB running in a Docker container</li>
+	<li>Click the Login link in the top left corner</li>
+	<li>Login with username user and password bitnami</li>
+	<li>Click the Administration Control Panel link at the very bottom of the page</li>
+	<li>Re-authenticate with the user/bitnami credentials</li>
+	<li>Click Manager Users in the left navigation menu</li>
+	<li>Search for user</li>
+	<li>Scroll down and enter and confirm a new password</li>
+	<li>Click the Submit button</li>
+</ol>
+
+<p>Source: <a href="https://hub.docker.com/r/bitnami/phpbb" target="_blank">https://hub.docker.com/r/bitnami/phpbb</a></p>          </div>
+        </div>
+      </body>
+    </html>
+