<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=FreeBSD_13.2_Jail_Local_Mediawiki_Nginx_MySQL</id>
	<title>FreeBSD 13.2 Jail Local Mediawiki Nginx MySQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=FreeBSD_13.2_Jail_Local_Mediawiki_Nginx_MySQL"/>
	<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Jail_Local_Mediawiki_Nginx_MySQL&amp;action=history"/>
	<updated>2026-04-30T02:33:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Jail_Local_Mediawiki_Nginx_MySQL&amp;diff=408&amp;oldid=prev</id>
		<title>Noob: /* Enable and Start php-fpm */</title>
		<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Jail_Local_Mediawiki_Nginx_MySQL&amp;diff=408&amp;oldid=prev"/>
		<updated>2023-05-10T11:10:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Enable and Start php-fpm&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:10, 10 May 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l172&quot;&gt;Line 172:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 172:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:    In the same configuration file, ensure that the listen.owner, listen.group, and listen.mode directives are set as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:    In the same configuration file, ensure that the listen.owner, listen.group, and listen.mode directives are set as follows:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* If you see these lines already in &#039;&#039;&#039;/usr/local/etc/php-fpm.d/www.conf&#039;&#039;&#039; make sure to remove the &#039;&#039;&#039;;&#039;&#039;&#039; comment from the start of the line.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;listen.owner = www&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;listen.owner = www&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Noob</name></author>
	</entry>
	<entry>
		<id>https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Jail_Local_Mediawiki_Nginx_MySQL&amp;diff=407&amp;oldid=prev</id>
		<title>Noob: /* Create a new Nginx server block configuration file for your MediaWiki site. */</title>
		<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Jail_Local_Mediawiki_Nginx_MySQL&amp;diff=407&amp;oldid=prev"/>
		<updated>2023-05-10T11:07:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Create a new Nginx server block configuration file for your MediaWiki site.&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:07, 10 May 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l200&quot;&gt;Line 200:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 200:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;user www www;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;worker_processes  1;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;worker_processes  1;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l245&quot;&gt;Line 245:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 246:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;the key components of the file:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;the key components of the file:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:    &#039;&#039;&#039;user www www;&#039;&#039;&#039;: specifies the user and group that the Nginx worker processes will run as. In this case, both the user and group are set to www.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:    &amp;#039;&amp;#039;&amp;#039;worker_processes 1;&amp;#039;&amp;#039;&amp;#039;: This directive sets the number of worker processes, which handle incoming connections and process requests. In this case, it&amp;#039;s set to 1, meaning only one worker process will handle requests.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:    &amp;#039;&amp;#039;&amp;#039;worker_processes 1;&amp;#039;&amp;#039;&amp;#039;: This directive sets the number of worker processes, which handle incoming connections and process requests. In this case, it&amp;#039;s set to 1, meaning only one worker process will handle requests.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Noob</name></author>
	</entry>
	<entry>
		<id>https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Jail_Local_Mediawiki_Nginx_MySQL&amp;diff=405&amp;oldid=prev</id>
		<title>AwesomO: Created page with &quot;==Hosting a Local Wiki in a FreeBSD Jail==  View the FreeBSD 13.2 Jails page to setup a jail in freebsd This tut will will assume you have: * Jail setup at path &#039;&#039;&#039;/pods/mediawiki&#039;&#039;&#039; * Allowed Jail IP through Firewall * copied over your &#039;&#039;&#039;resolv.conf&#039;&#039;&#039; to jail  ===jail.conf===   Create a configuration file for your jail. The following example assumes you&#039;re using the jail utility provided by FreeBSD:  Edit &#039;&#039;&#039;/etc/jail.conf&#039;&#039;&#039; and add the followi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Jail_Local_Mediawiki_Nginx_MySQL&amp;diff=405&amp;oldid=prev"/>
		<updated>2023-05-05T19:03:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Hosting a Local Wiki in a FreeBSD Jail==  &lt;a href=&quot;/noobs/FreeBSD_13.2_Jails&quot; title=&quot;FreeBSD 13.2 Jails&quot;&gt;View the FreeBSD 13.2 Jails page to setup a jail in freebsd&lt;/a&gt; This tut will will assume you have: * Jail setup at path &amp;#039;&amp;#039;&amp;#039;/pods/mediawiki&amp;#039;&amp;#039;&amp;#039; * Allowed Jail IP through Firewall * copied over your &amp;#039;&amp;#039;&amp;#039;resolv.conf&amp;#039;&amp;#039;&amp;#039; to jail  ===jail.conf===   Create a configuration file for your jail. The following example assumes you&amp;#039;re using the jail utility provided by FreeBSD:  Edit &amp;#039;&amp;#039;&amp;#039;/etc/jail.conf&amp;#039;&amp;#039;&amp;#039; and add the followi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Hosting a Local Wiki in a FreeBSD Jail==&lt;br /&gt;
&lt;br /&gt;
[[FreeBSD_13.2_Jails|View the FreeBSD 13.2 Jails page to setup a jail in freebsd]] This tut will will assume you have:&lt;br /&gt;
* Jail setup at path &amp;#039;&amp;#039;&amp;#039;/pods/mediawiki&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Allowed Jail IP through Firewall&lt;br /&gt;
* copied over your &amp;#039;&amp;#039;&amp;#039;resolv.conf&amp;#039;&amp;#039;&amp;#039; to jail&lt;br /&gt;
&lt;br /&gt;
===jail.conf===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create a configuration file for your jail. The following example assumes you&amp;#039;re using the jail utility provided by FreeBSD:&lt;br /&gt;
&lt;br /&gt;
Edit &amp;#039;&amp;#039;&amp;#039;/etc/jail.conf&amp;#039;&amp;#039;&amp;#039; and add the following jail configuration:&lt;br /&gt;
: If &amp;#039;&amp;#039;&amp;#039;/etc/jail.conf&amp;#039;&amp;#039;&amp;#039; does not exist, create it with &amp;lt;code&amp;gt;touch /etc/jail.conf&amp;lt;/code&amp;gt; &lt;br /&gt;
&amp;lt;code&amp;gt;$EDITOR /etc/jail.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
localwiki {&lt;br /&gt;
  host.hostname = &amp;quot;local.wiki&amp;quot;;&lt;br /&gt;
  ip4.addr = &amp;quot;re0|192.168.0.33&amp;quot;;&lt;br /&gt;
  path = &amp;quot;/pods/mediawiki&amp;quot;;&lt;br /&gt;
  exec.start = &amp;quot;/bin/sh /etc/rc&amp;quot;;&lt;br /&gt;
  exec.stop = &amp;quot;/bin/sh /etc/rc.shutdown&amp;quot;;&lt;br /&gt;
  exec.clean;&lt;br /&gt;
  mount.devfs;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Replace&lt;br /&gt;
:** &amp;#039;&amp;#039;&amp;#039;localwiki&amp;#039;&amp;#039;&amp;#039; to what you would like your jail called&lt;br /&gt;
:** &amp;#039;&amp;#039;&amp;#039;host.hostname = &amp;quot;&amp;lt;the_host_name_for_jail&amp;gt;&amp;quot;;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:** &amp;#039;&amp;#039;&amp;#039;ip4.addr = &amp;lt;ip_address_for_jail_to_use&amp;gt;;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:*** &amp;#039;&amp;#039;&amp;#039;&amp;quot;re0|192.168.0.33&amp;quot;&amp;#039;&amp;#039;&amp;#039; where &amp;#039;re0&amp;#039; is my &amp;#039;&amp;#039;&amp;#039;Network Interface Card (NIC)&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
:*** You can find your &amp;#039;&amp;#039;&amp;#039;Network Interface Card (NIC)&amp;#039;&amp;#039;&amp;#039; by running the command &amp;lt;code&amp;gt;ifconfig&amp;lt;/code&amp;gt;.&lt;br /&gt;
:*** &amp;#039;&amp;#039;&amp;#039;192.168.0.33&amp;#039;&amp;#039;&amp;#039; is the IP address I want to assign to the jail within the 192.168.0.0/24 subnet of my network.&lt;br /&gt;
:** &amp;#039;&amp;#039;&amp;#039;path = &amp;quot;&amp;lt;/path/to/jail&amp;gt;&amp;quot;;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:*** The path where the jail resides (e.g., &amp;quot;/pods/mediawiki&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
:* NOTES (this was not needed):&lt;br /&gt;
:** &amp;#039;&amp;#039;&amp;#039;allow.sysvipc&amp;#039;&amp;#039;&amp;#039;: Allows System V IPC primitives to be used within the jail. This might be necessary for some PHP extensions or applications that rely on shared memory.&lt;br /&gt;
:** &amp;#039;&amp;#039;&amp;#039;allow.raw_sockets&amp;#039;&amp;#039;&amp;#039;: Allows raw sockets to be used within the jail. This might be required for certain PHP functions or extensions that use raw socket communication.&lt;br /&gt;
&lt;br /&gt;
===Login to jail and Install required &amp;#039;&amp;#039;&amp;#039;packages&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
* Start jail &amp;#039;&amp;#039;&amp;#039;localwiki&amp;#039;&amp;#039;&amp;#039; and login&lt;br /&gt;
&amp;lt;code&amp;gt;sudo jail -c localwiki&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo jexec localwiki /bin/sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Initialize pkg&lt;br /&gt;
&amp;lt;code&amp;gt;pkg update&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Install packages&lt;br /&gt;
&amp;lt;code&amp;gt;pkg install nginx mediawiki139-php82-1.39.3 py39-pygments mysql80-server unzip&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
Check for the latest packages required (info here):&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
The package names might have changed due to newer versions being available. You can search for the latest package names using the pkg search command.&lt;br /&gt;
&lt;br /&gt;
:*        mysql80-server&lt;br /&gt;
:**            &amp;lt;code&amp;gt;pkg search mysql | grep server&amp;lt;/code&amp;gt;&lt;br /&gt;
:**            mysql80-server is still the highest version number&lt;br /&gt;
&lt;br /&gt;
:*        py38-pygments&lt;br /&gt;
:**            &amp;lt;code&amp;gt;pkg search pygments&amp;lt;/code&amp;gt;&lt;br /&gt;
:**            A higher version is available: py39-pygments&lt;br /&gt;
&lt;br /&gt;
:*        Mediawiki&lt;br /&gt;
:**            &amp;lt;code&amp;gt;pkg search mediawiki&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Installing mediawiki from pkg will also install the php extensions required for mediawiki to work&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pkg install mediawiki139-php82-1.39.3&lt;br /&gt;
Updating FreeBSD repository catalogue...&lt;br /&gt;
FreeBSD repository is up to date.&lt;br /&gt;
All repositories are up to date.&lt;br /&gt;
Updating database digests format: 100%&lt;br /&gt;
The following 49 package(s) will be affected (of 0 checked):&lt;br /&gt;
&lt;br /&gt;
New packages to be INSTALLED:&lt;br /&gt;
	ca_root_nss: 3.89&lt;br /&gt;
	curl: 8.0.1&lt;br /&gt;
	cyrus-sasl: 2.1.28&lt;br /&gt;
	groff: 1.22.4_4&lt;br /&gt;
	hidapi: 0.13.1&lt;br /&gt;
	icu: 72.1,1&lt;br /&gt;
	indexinfo: 0.3.1&lt;br /&gt;
	libargon2: 20190702&lt;br /&gt;
	libcbor: 0.10.2&lt;br /&gt;
	libcjson: 1.7.15_1&lt;br /&gt;
	libedit: 3.1.20221030,1&lt;br /&gt;
	libevent: 2.1.12&lt;br /&gt;
	libfido2: 1.13.0&lt;br /&gt;
	libiconv: 1.17&lt;br /&gt;
	libidn2: 2.3.4&lt;br /&gt;
	liblz4: 1.9.4,1&lt;br /&gt;
	libnghttp2: 1.52.0&lt;br /&gt;
	libpaper: 1.1.28&lt;br /&gt;
	libpsl: 0.21.2_2&lt;br /&gt;
	libssh2: 1.10.0_1,3&lt;br /&gt;
	libunistring: 1.1&lt;br /&gt;
	libunwind: 20211201_1&lt;br /&gt;
	libxml2: 2.10.4&lt;br /&gt;
	mediawiki139-php82: 1.39.3&lt;br /&gt;
	mysql80-client: 8.0.32&lt;br /&gt;
	oniguruma: 6.9.8_1&lt;br /&gt;
	openldap26-client: 2.6.4&lt;br /&gt;
	pcre2: 10.42&lt;br /&gt;
	perl5: 5.32.1_3&lt;br /&gt;
	php82: 8.2.4&lt;br /&gt;
	php82-ctype: 8.2.4&lt;br /&gt;
	php82-dom: 8.2.4&lt;br /&gt;
	php82-fileinfo: 8.2.4&lt;br /&gt;
	php82-filter: 8.2.4&lt;br /&gt;
	php82-iconv: 8.2.4&lt;br /&gt;
	php82-intl: 8.2.4&lt;br /&gt;
	php82-mbstring: 8.2.4&lt;br /&gt;
	php82-mysqli: 8.2.4&lt;br /&gt;
	php82-readline: 8.2.4&lt;br /&gt;
	php82-session: 8.2.4&lt;br /&gt;
	php82-sockets: 8.2.4&lt;br /&gt;
	php82-xml: 8.2.4&lt;br /&gt;
	php82-xmlreader: 8.2.4&lt;br /&gt;
	php82-zlib: 8.2.4&lt;br /&gt;
	protobuf: 3.21.12,1&lt;br /&gt;
	psutils: 1.17_5&lt;br /&gt;
	readline: 8.2.0&lt;br /&gt;
	uchardet: 0.0.8&lt;br /&gt;
	zstd: 1.5.4&lt;br /&gt;
&lt;br /&gt;
Number of packages to be installed: 49&lt;br /&gt;
&lt;br /&gt;
The process will require 582 MiB more space.&lt;br /&gt;
88 MiB to be downloaded.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Start Nginx on FreeBSD and configure it to point to MediaWik==&lt;br /&gt;
&lt;br /&gt;
* Mediawiki when installed with &amp;#039;&amp;#039;&amp;#039;pkg&amp;#039;&amp;#039;&amp;#039; will install in path &amp;#039;&amp;#039;&amp;#039;/usr/local/www/mediawiki&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
To start Nginx on FreeBSD and configure it to point to MediaWiki installed in &amp;#039;&amp;#039;&amp;#039;/usr/local/www/mediawiki&amp;#039;&amp;#039;&amp;#039;, follow these steps:&lt;br /&gt;
&lt;br /&gt;
===Enable Nginx by adding the following line to the &amp;#039;&amp;#039;&amp;#039;/etc/rc.conf&amp;#039;&amp;#039;&amp;#039; file===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sysrc nginx_enable=&amp;quot;YES&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Start Nginx using the service command===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;service nginx start&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* can now test by visiting your jails IP on a web browser - should see &amp;#039;Welcome to nginx&amp;#039; page&lt;br /&gt;
** Note: use &amp;#039;&amp;#039;&amp;#039;http&amp;#039;&amp;#039;&amp;#039; and not &amp;#039;&amp;#039;&amp;#039;https&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
===Enable and Start &amp;#039;&amp;#039;&amp;#039;php-fpm&amp;#039;&amp;#039;&amp;#039;===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sysrc php_fpm_enable=&amp;quot;YES&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;service php-fpm start&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure the PHP-FPM pool is using the Unix socket &amp;#039;&amp;#039;&amp;#039;/var/run/php-fpm.sock&amp;#039;&amp;#039;&amp;#039;. Open the PHP-FPM configuration file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$EDITOR /usr/local/etc/php-fpm.d/www.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Look for the listen directive in the configuration file. If it&amp;#039;s set to an IP address and port (e.g., &amp;#039;&amp;#039;&amp;#039;listen = 127.0.0.1:9000&amp;#039;&amp;#039;&amp;#039;), change it to use the Unix socket &amp;#039;&amp;#039;&amp;#039;/var/run/php-fpm.sock&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;listen = /var/run/php-fpm.sock&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:    In the same configuration file, ensure that the listen.owner, listen.group, and listen.mode directives are set as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
listen.owner = www&lt;br /&gt;
listen.group = www&lt;br /&gt;
listen.mode = 0660&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These settings ensure that Nginx can access the PHP-FPM Unix socket.&lt;br /&gt;
&lt;br /&gt;
:    Save the configuration file and exit the editor.&lt;br /&gt;
&lt;br /&gt;
:    Restart PHP-FPM to apply the changes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;service php-fpm restart&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:    Check if the &amp;#039;&amp;#039;&amp;#039;/var/run/php-fpm.sock&amp;#039;&amp;#039;&amp;#039; file is now present:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ls -l /var/run/php-fpm.sock&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create a new Nginx server block configuration file for your MediaWiki site. ===&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;/usr/local/etc/nginx/nginx.conf&amp;#039;&amp;#039;&amp;#039; is already backed up in &amp;#039;&amp;#039;&amp;#039;/usr/local/etc/nginx/nginx.conf-dist&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$EDITOR /usr/local/etc/nginx/nginx.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:    Add the following server block configuration to the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
worker_processes  1;&lt;br /&gt;
&lt;br /&gt;
events {&lt;br /&gt;
    worker_connections  1024;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
http {&lt;br /&gt;
    include       mime.types;&lt;br /&gt;
    default_type  application/octet-stream;&lt;br /&gt;
&lt;br /&gt;
    sendfile        on;&lt;br /&gt;
&lt;br /&gt;
    keepalive_timeout  65;&lt;br /&gt;
&lt;br /&gt;
    server {&lt;br /&gt;
    listen       80;&lt;br /&gt;
    server_name  localhost;&lt;br /&gt;
&lt;br /&gt;
    root   /usr/local/www/mediawiki;&lt;br /&gt;
    index  index.php;&lt;br /&gt;
&lt;br /&gt;
    location / {&lt;br /&gt;
        try_files $uri $uri/ @mediawiki;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    location @mediawiki {&lt;br /&gt;
        rewrite ^/([^?]*)(?:\?(.*))? /index.php?title=$1&amp;amp;$2 last;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    location ~ \.php$ {&lt;br /&gt;
        try_files $uri =404;&lt;br /&gt;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;&lt;br /&gt;
        fastcgi_pass   unix:/var/run/php-fpm.sock;&lt;br /&gt;
        fastcgi_index  index.php;&lt;br /&gt;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;&lt;br /&gt;
        include        fastcgi_params;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
Explanation: &amp;lt;code&amp;gt;/usr/local/etc/nginx/nginx.conf&amp;lt;/code&amp;gt; Content:&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
the key components of the file:&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;worker_processes 1;&amp;#039;&amp;#039;&amp;#039;: This directive sets the number of worker processes, which handle incoming connections and process requests. In this case, it&amp;#039;s set to 1, meaning only one worker process will handle requests.&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;events { worker_connections 1024; }&amp;#039;&amp;#039;&amp;#039;: This block configures the event-driven processing model. The worker_connections directive sets the maximum number of simultaneous connections that each worker process can handle. In this case, it&amp;#039;s set to 1024.&lt;br /&gt;
&lt;br /&gt;
:*    The &amp;#039;&amp;#039;&amp;#039;http block&amp;#039;&amp;#039;&amp;#039; contains the main configuration settings for HTTP(S) servers. Within this block:&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;include mime.types;&amp;#039;&amp;#039;&amp;#039;: Includes the MIME types configuration file, which maps file extensions to their respective MIME types.&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;default_type application/octet-stream;&amp;#039;&amp;#039;&amp;#039;: Sets the default MIME type for files that don&amp;#039;t match any of the defined MIME types.&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;sendfile on;&amp;#039;&amp;#039;&amp;#039;: Enables the use of the sendfile() system call for more efficient file transfers.&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;keepalive_timeout 65;&amp;#039;&amp;#039;&amp;#039;: Sets the timeout for keep-alive connections, which allows multiple requests to be sent over a single connection.&lt;br /&gt;
&lt;br /&gt;
:*    The &amp;#039;&amp;#039;&amp;#039;server block&amp;#039;&amp;#039;&amp;#039; defines the configuration for a specific virtual server. Within this block:&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;listen 80;&amp;#039;&amp;#039;&amp;#039;: Specifies that the server listens on port 80 (the default HTTP port) for incoming connections.&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;server_name localhost;&amp;#039;&amp;#039;&amp;#039;: Sets the server name to &amp;quot;localhost&amp;quot; for this configuration.&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;root /usr/local/www/mediawiki;&amp;#039;&amp;#039;&amp;#039;: Sets the root directory for the Mediawiki website.&lt;br /&gt;
&lt;br /&gt;
:    &amp;#039;&amp;#039;&amp;#039;index index.php;&amp;#039;&amp;#039;&amp;#039;: Sets the default index file for directory requests.&lt;br /&gt;
&lt;br /&gt;
:*    The &amp;#039;&amp;#039;&amp;#039;location blocks&amp;#039;&amp;#039;&amp;#039; configure how Nginx handles different types of requests:&lt;br /&gt;
&lt;br /&gt;
:     The first location block attempts to serve the requested URI as a file or a directory. If that fails, it falls back to the @mediawiki named location.&lt;br /&gt;
&lt;br /&gt;
:     The @mediawiki location block rewrites the request URI to pass it to Mediawiki&amp;#039;s index.php script with the appropriate query parameters.&lt;br /&gt;
&lt;br /&gt;
:     The location ~ \.php$ block processes PHP files by passing them to the FastCGI server (PHP-FPM) using a Unix domain socket (unix:/var/run/php-fpm.sock). The fastcgi_param and include fastcgi_params; directives configure FastCGI settings.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:    Test the Nginx configuration:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;nginx -t&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:    If the configuration test is successful, reload Nginx to apply the changes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;service nginx reload&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you should be able to access your MediaWiki installation by visiting your domain name or IP address in your browser. &amp;#039;&amp;#039;&amp;#039;But Wait&amp;#039;&amp;#039;&amp;#039; there&amp;#039;s more, need to setup the MySQL database.&lt;br /&gt;
&lt;br /&gt;
==Setting up MySQL==&lt;br /&gt;
&lt;br /&gt;
Set up the MySQL server and create a database for MediaWiki on FreeBSD:&lt;br /&gt;
&lt;br /&gt;
===Initialize the MySQL server===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;/usr/local/libexec/mysqld --initialize --user=mysql --datadir=/var/db/mysql&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Explanation of the command and its options:&lt;br /&gt;
&lt;br /&gt;
:*    &amp;#039;&amp;#039;&amp;#039;/usr/local/libexec/mysqld&amp;#039;&amp;#039;&amp;#039;: The full path to the MySQL server binary on FreeBSD.&lt;br /&gt;
:*    &amp;#039;&amp;#039;&amp;#039;--initialize&amp;#039;&amp;#039;&amp;#039;: This option initializes the data directory and creates the system tables required for the MySQL server to function properly.&lt;br /&gt;
:*    &amp;#039;&amp;#039;&amp;#039;--user=mysql&amp;#039;&amp;#039;&amp;#039;: Specifies the system user that the MySQL server will run as. On FreeBSD, the default user for the MySQL server is &amp;#039;&amp;#039;&amp;#039;mysql&amp;#039;&amp;#039;&amp;#039;. This option ensures that the created files and directories have the proper ownership.&lt;br /&gt;
:*    &amp;#039;&amp;#039;&amp;#039;--datadir=/var/db/mysql&amp;#039;&amp;#039;&amp;#039;: Specifies the data directory for the MySQL server. The data directory is where the server stores its databases, tables, and related files. On FreeBSD, the default location for the MySQL data directory is &amp;#039;&amp;#039;&amp;#039;/var/db/mysql&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Output should be something like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# /usr/local/libexec/mysqld --initialize --user=mysql --datadir=/var/db/mysql&lt;br /&gt;
2023-05-01T18:17:53.389205Z 0 [System] [MY-013169] [Server] /usr/local/libexec/mysqld (mysqld 8.0.32) initializing of server in progress as process 2170&lt;br /&gt;
mysqld: Error on delete of &amp;#039;/var/db/mysql/auto.cnf&amp;#039; (OS errno 2 - No such file or directory)&lt;br /&gt;
2023-05-01T18:17:53.458035Z 0 [Warning] [MY-010107] [Server] World-writable config file &amp;#039;/var/db/mysql/auto.cnf&amp;#039; has been removed.&lt;br /&gt;
2023-05-01T18:17:53.471999Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.&lt;br /&gt;
2023-05-01T18:17:54.808131Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.&lt;br /&gt;
2023-05-01T18:17:58.661498Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: q17mjt8qnl:I&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will create the necessary system tables and set up the initial MySQL data directory structure. The output will also display a temporary password for the &amp;#039;&amp;#039;&amp;#039;root user&amp;#039;&amp;#039;&amp;#039;, which you will need to use when running &amp;#039;&amp;#039;&amp;#039;mysql_secure_installation&amp;#039;&amp;#039;&amp;#039;. Make sure to note this temporary password, as you will be prompted to change it during the &amp;#039;&amp;#039;&amp;#039;mysql_secure_installation&amp;#039;&amp;#039;&amp;#039; process.&lt;br /&gt;
&lt;br /&gt;
Enable the MySQL server to start automatically when the jail boots by appending the following line to the jail&amp;#039;s &amp;#039;&amp;#039;&amp;#039;rc.conf&amp;#039;&amp;#039;&amp;#039; file. Make sure to use &amp;gt;&amp;gt; to append the configuration without overwriting the existing content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sysrc mysql_enable=&amp;quot;YES&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Start the MySQL server===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;service mysql-server start&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Secure the MySQL installation by running the security script. You&amp;#039;ll be prompted to set the root password and answer a series of questions to secure the installation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mysql_secure_installation&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Log in to the MySQL server using the root user and the password you set during the security script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mysql -u root -p&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once logged in, create a new user and database for MediaWiki:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;CREATE USER &amp;#039;username&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;passwd&amp;#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;CREATE DATABASE my_wiki_db;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;GRANT ALL ON my_wiki_db.* TO &amp;#039;username&amp;#039;@&amp;#039;localhost&amp;#039;;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;FLUSH PRIVILEGES;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;quit;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;passwd&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;my_wiki_db&amp;#039;&amp;#039;&amp;#039; with the desired username, password, and database name.&lt;br /&gt;
&lt;br /&gt;
Now you should have a working MySQL server and a database ready for your MediaWiki installation. Proceed with configuring MediaWiki to use this database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Mediawiki==&lt;br /&gt;
&lt;br /&gt;
Visit the IP address of your jail in a web browser using &amp;#039;&amp;#039;&amp;#039;http&amp;#039;&amp;#039;&amp;#039; and NOT &amp;#039;&amp;#039;&amp;#039;https&amp;#039;&amp;#039;&amp;#039; (we have not setup and ssl certs)&lt;br /&gt;
&lt;br /&gt;
You will now find yourself on the mediawiki setup landing page.&amp;lt;br \&amp;gt;&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
MediaWiki 1.39.3&lt;br /&gt;
LocalSettings.php not found.&lt;br /&gt;
Please complete the installation and download LocalSettings.php.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Click &amp;lt;b&amp;gt;complete the installation&amp;lt;/b&amp;gt;&amp;lt;br \&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
Language Page&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
Just pick a language mate&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
Welcome to MediaWiki!&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
read and click Continue&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
Connect to database - going to need the details from when you created the database.&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
Database host:&amp;#039;&amp;#039;&amp;#039;localhost&amp;#039;&amp;#039;&amp;#039;&amp;lt;br \&amp;gt;&lt;br /&gt;
Database name:&amp;#039;&amp;#039;&amp;#039;my_wiki_db&amp;#039;&amp;#039;&amp;#039;&amp;lt;br \&amp;gt;&lt;br /&gt;
Database table prefix (no hyphens): &amp;lt;b&amp;gt;LEAVE BLANK&amp;lt;/b&amp;gt;&amp;lt;br \&amp;gt;&lt;br /&gt;
Database username:&amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039;&amp;lt;br \&amp;gt;&lt;br /&gt;
Database password:&amp;#039;&amp;#039;&amp;#039;passwd&amp;#039;&amp;#039;&amp;#039;&amp;lt;br \&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace: &amp;#039;&amp;#039;&amp;#039;my_wiki_db&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;username&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;passwd&amp;#039;&amp;#039;&amp;#039; with your &amp;#039;&amp;#039;&amp;#039;Database Name&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Database Username&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;Database Password&amp;#039;&amp;#039;&amp;#039; you setup in the MySQL stage.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
Database Settings&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
Database account for web access&amp;lt;br \&amp;gt;&lt;br /&gt;
[x]Use the same account as for installation&amp;lt;br \&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Leave ticked&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;toccolours mw-collapsible mw-collapsed&amp;quot;&amp;gt;&lt;br /&gt;
Name&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-collapsible-content&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Name of wiki:&amp;lt;/b&amp;gt;LocalWiki&amp;lt;br \&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Project namespace:&amp;lt;/b&amp;gt;&amp;lt;br \&amp;gt;&lt;br /&gt;
[x]Same as the wiki name:&amp;lt;br \&amp;gt;&lt;br /&gt;
[ ]Project&amp;lt;br \&amp;gt;&lt;br /&gt;
[ ]Other (specify)&amp;lt;br \&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Administrator account&amp;lt;/b&amp;gt;&lt;br /&gt;
Will be the admin account on the wiki.&lt;br /&gt;
&amp;lt;br \&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;CLICK I&amp;#039;m bored already, just install the wiki.&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
At the end you would of downloaded a file called &amp;lt;b&amp;gt;LocalSettings.php&amp;lt;/b&amp;gt;&amp;lt;br \&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now lets send it to the mediawiki jail.&lt;br /&gt;
&lt;br /&gt;
In my case the &amp;#039;&amp;#039;&amp;#039;jail&amp;#039;&amp;#039;&amp;#039; is running on a headless nuc &amp;#039;&amp;#039;&amp;#039;home server&amp;#039;&amp;#039;&amp;#039; and i have the file on a ubuntu &amp;#039;&amp;#039;&amp;#039;laptop&amp;#039;&amp;#039;&amp;#039; so:&lt;br /&gt;
:1. Send &amp;#039;&amp;#039;&amp;#039;LocalSettings.php&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;home server&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;scp Downloads/LocalSetting.php &amp;lt;user&amp;gt;@&amp;lt;home_server_IP&amp;gt;:/usr/home/&amp;lt;user&amp;gt;/&amp;lt;/code&amp;gt;&lt;br /&gt;
:2. Send to mediawiki directory in &amp;#039;&amp;#039;&amp;#039;jail&amp;#039;&amp;#039;&amp;#039; &amp;lt;code&amp;gt;cp LocalSettings.php /pods/mediawiki/usr/local/www/mediawiki/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Do Not Refresh the Web Page or you will Redownload &amp;#039;&amp;#039;&amp;#039;LocalSettings.php&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Revisit your jails IP in web browser and you should see your wiki up and running.&lt;br /&gt;
&lt;br /&gt;
===Add Extensions to Mediawiki===&lt;br /&gt;
&lt;br /&gt;
====Youtube====&lt;br /&gt;
&lt;br /&gt;
https://www.mediawiki.org/wiki/Extension:YouTube&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;wget https://extdist.wmflabs.org/dist/extensions/YouTube-REL1_39-f272bb3.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;tar -xzf YouTube-REL1_39-f272bb3.tar.gz -C /var/www/html/mediawiki/extensions/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* FreeBSD&lt;br /&gt;
&amp;lt;code&amp;gt;fetch  https://extdist.wmflabs.org/dist/extensions/YouTube-REL1_39-f272bb3.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;tar -xzf YouTube-REL1_39-f272bb3.tar.gz -C /usr/local/www/mediawiki/extensions/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Append to &amp;#039;&amp;#039;&amp;#039;LocalSettings.php&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;code&amp;gt;wfLoadExtension( &amp;#039;YouTube&amp;#039; );&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* On wiki page&lt;br /&gt;
** https://www.youtube.com/watch?v=wB4gvSgYmfY&lt;br /&gt;
** After &amp;#039;&amp;#039;&amp;#039;watch?v=&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
** &amp;lt;nowiki&amp;gt;&amp;lt;youtube&amp;gt;wB4gvSgYmfY&amp;lt;/youtube&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;youtube&amp;gt;wB4gvSgYmfY&amp;lt;/youtube&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Defaults &amp;#039;&amp;#039;&amp;#039;width&amp;#039;&amp;#039;&amp;#039;=640 pixels &amp;#039;&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;#039;=385 pixels&lt;br /&gt;
* Change defaults &amp;lt;nowiki&amp;gt;&amp;lt;youtube width=&amp;quot;800&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;wB4gvSgYmfY&amp;lt;/youtube&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;youtube width=&amp;quot;800&amp;quot; height=&amp;quot;400&amp;quot;&amp;gt;wB4gvSgYmfY&amp;lt;/youtube&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Syntax highlighting===&lt;br /&gt;
&lt;br /&gt;
We have already Installed &amp;lt;b&amp;gt;pygments&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add to LocalSettings:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;wfLoadExtension( &amp;#039;SyntaxHighlight_GeSHi&amp;#039; );&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Importing a mediawiki xml dump to your localwiki==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;fetch https://xml.completenoobs.com/xmlDumps/01_05_23.Noobs/01_05_23.Noobs.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;php /usr/local/www/mediawiki/maintenance/importDump.php --conf /usr/local/www/mediawiki/LocalSettings.php 01_05_23.Noobs.xml&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;php /usr/local/www/mediawiki/maintenance/rebuildrecentchanges.php &amp;amp;&amp;amp; php /usr/local/www/mediawiki/maintenance/initSiteStats.php &amp;amp;&amp;amp; php /usr/local/www/mediawiki/maintenance/rebuildall.php&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Visit Jails IP Address on web browser==&lt;br /&gt;
&lt;br /&gt;
A Basic local wiki should be run and running&lt;/div&gt;</summary>
		<author><name>AwesomO</name></author>
	</entry>
</feed>