<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>flarum Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/flarum/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 31 Jan 2021 20:24:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to Install Flarum Forum on Ubuntu 20.04</title>
		<link>https://www.osradar.com/install-flarum-forum-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-flarum-forum-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 03 Feb 2021 03:22:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[flarum]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[forum]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28171</guid>

					<description><![CDATA[<p>Hello, friends. Developing a forum for our site can be a very useful idea. That’s why, in this post, we’ll help you to install Flarum Forum on Ubuntu 20.04 Flarum Forum Flarum is a delightfully simple discussion platform for your website. It’s fast and easy to use, with all the features you need to run [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-flarum-forum-ubuntu-20-04/">How to Install Flarum Forum on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Developing a forum for our site can be a very useful idea. That’s why, in this post, we’ll help you to install Flarum Forum on Ubuntu 20.04</p>



<h2 id="flarum-forum"><a href="#flarum-forum" name="flarum-forum"></a>Flarum Forum</h2>



<p><a href="https://flarum.org/" target="_blank" rel="noreferrer noopener">Flarum</a> is a delightfully simple discussion platform for your website. It’s fast and easy to use, with all the features you need to run a successful community.</p>



<p>Flarum is the combined successor of esoTalk (opens new window)and FluxBB (opens new window). It is designed to be:</p>



<ul><li>Fast and simple. No clutter, no bloat, no complex dependencies. Flarum is built with PHP so it’s quick and easy to deploy. The interface is powered by Mithril (opens new window), a performant JavaScript framework with a tiny footprint.</li><li>Beautiful and responsive. This is forum software for humans. Flarum is carefully designed to be consistent and intuitive across platforms, out-of-the-box.</li><li>Powerful and extensible. Customize, extend, and integrate Flarum to suit your community. Flarum’s architecture is amazingly flexible, with a powerful Extension API.</li><li>Free and open. Flarum is released under the MIT license (opens new window).</li></ul>



<p>All this information is taken from the official Flarum documentation.</p>



<p>So let’s install it and have a look at it.</p>



<h2 id="install-flarum-forum-on-ubuntu-20.04"><a href="#install-flarum-forum-on-ubuntu-20.04" name="install-flarum-forum-on-ubuntu-20.04"></a>Install Flarum Forum on Ubuntu 20.04</h2>



<p><strong>Note: Flarum Forum is still in beta. This indicates that it is not ready for production even though it is quite usable. So use it for testing or to collaborate with development.</strong></p>



<h3 id="getting-lamp-on-ubuntu-20.04"><a href="#getting-lamp-on-ubuntu-20.04" name="getting-lamp-on-ubuntu-20.04"></a>Getting LAMP on Ubuntu 20.04</h3>



<p>Before starting with the installation, it is advisable to make some minor adjustments and installations on the system.</p>



<p>First, update the distribution completely from the terminal:</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>After that, it is necessary to <a href="https://www.osradar.com/install-lamp-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">install LAMP on Ubuntu 20.04</a> because Flarum Forum requires a web environment.</p>



<p>To install Flarum Forum you also need to install these necessary PHP modules and packages.</p>



<pre class="wp-block-preformatted">php libapache2-mod-php php-cli php-fpm php-common php-common php-mbstring php-gd php-xml php-mysql php-curl zip unzip curl wget git</pre>



<p>Now we can continue.</p>



<h3 id="creating-the-database-for-flarum-forum"><a href="#creating-the-database-for-flarum-forum" name="creating-the-database-for-flarum-forum"></a>Creating the database for Flarum Forum</h3>



<p>Now it is necessary to create a new database and a user so that Flarum Forum can handle the data that is created.</p>



<pre class="wp-block-preformatted">sudo mysql -u root -p</pre>



<p>And now create the database and the new user:</p>



<pre class="wp-block-preformatted">CREATE DATABASE flarum;
GRANT ALL ON flarum.* TO 'flarumuser' IDENTIFIED BY 'flarumpss';
FLUSH PRIVILEGES;
exit;</pre>



<h3 id="installing-composer"><a href="#installing-composer" name="installing-composer"></a>Installing Composer</h3>



<p>Now it’s time to install Composer which is necessary to perform the installation. To install Composer run each of these commands:</p>



<pre class="wp-block-preformatted">php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer</pre>



<p>And test it by running:</p>



<pre class="wp-block-preformatted">composer -V</pre>



<p>We can continue.</p>



<h3 id="download-flarum-forum"><a href="#download-flarum-forum" name="download-flarum-forum"></a>Download Flarum Forum</h3>



<p>Before downloading the application, let’s create a folder where we will do the download and make the current user the owner. This is to avoid using Composer as the root user.</p>



<pre class="wp-block-preformatted">sudo mkdir -p /var/www/flarum
sudo chown -R $USER:$USER /var/www/flarum</pre>



<p>Access the folder you created and install Flarum Forum by running</p>



<pre class="wp-block-preformatted">cd /var/www/flarum
composer create-project flarum/flarum . --stability=beta</pre>



<p>Then, make Apache the owner of the folder:</p>



<pre class="wp-block-preformatted">sudo chown -R www-data:www-data /var/www/flarum</pre>



<p>The next step is to create a new VirtualHost to manage our site:</p>



<pre class="wp-block-preformatted">sudo nano /etc/apache2/sites-available/flarum.conf</pre>



<p>And add the following content:</p>



<pre class="wp-block-preformatted">&lt;VirtualHost *:80>
     ServerAdmin admin@your_domain.com
     DocumentRoot /var/www/flarum/public
     ServerName your-server
 <code> </code>
     <code>&lt;Directory /var/www/flarum/public></code>
              <code>Options FollowSymlinks</code>
              <code>AllowOverride All</code>
              <code>Require all granted</code>
     <code>&lt;/Directory></code>

 ErrorLog ${APACHE_LOG_DIR}/your-domain.com_error.log
 CustomLog ${APACHE_LOG_DIR}/your-domain.com_access.log combined
&lt;/VirtualHost></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="884" height="365" src="https://www.osradar.com/wp-content/uploads/2021/01/1-14.png" alt="1.- Creating a new VirtualHost" class="wp-image-28266" srcset="https://www.osradar.com/wp-content/uploads/2021/01/1-14.png 884w, https://www.osradar.com/wp-content/uploads/2021/01/1-14-300x124.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/1-14-768x317.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/1-14-696x287.png 696w" sizes="(max-width: 884px) 100vw, 884px" /><figcaption>1.- Creating a new VirtualHost</figcaption></figure>



<p>Replace <code>ServerName</code> with your domain name. Save the changes and close the editor.</p>



<p>Now, enable the new VirtualHost, the Apache rewrite module, and apply the changes by restarting the service.</p>



<pre class="wp-block-preformatted">sudo a2ensite flarum
sudo a2enmod rewrite
sudo systemctl restart apache2</pre>



<h3 id="install-flarum-forum-on-ubuntu-20.04"><a href="#install-flarum-forum-on-ubuntu-20.04" name="install-flarum-forum-on-ubuntu-20.04"></a>Install Flarum Forum on Ubuntu 20.04</h3>



<p>So, now you can open a web browser and access Flarum Forum to complete the installation. In short, you can access it via <code>http://your-domain</code></p>



<p>In this screen, you will have to complete the installation and define a name for the Forum as well as the database parameters.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/01/2-14-1024x506.png" alt="2.- Install Flarum Forum on Ubuntu 20.04" class="wp-image-28267" srcset="https://www.osradar.com/wp-content/uploads/2021/01/2-14-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/2-14-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/2-14-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/2-14-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/2-14-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/2-14.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Install Flarum Forum on Ubuntu 20.04</figcaption></figure>



<p>Below you will be able to create the administrator account needed for access.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/01/3-12-1024x506.png" alt="3.- Flarum Forum" class="wp-image-28268" srcset="https://www.osradar.com/wp-content/uploads/2021/01/3-12-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/3-12-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/3-12-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/3-12-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/3-12-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/3-12.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Flarum Forum</figcaption></figure>



<p>Then, you will then be able to see the dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="506" src="https://www.osradar.com/wp-content/uploads/2021/01/4-7-1024x506.png" alt="4.- Flarum Forum running" class="wp-image-28269" srcset="https://www.osradar.com/wp-content/uploads/2021/01/4-7-1024x506.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/4-7-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/4-7-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/4-7-696x344.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/4-7-1068x528.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/4-7.png 1354w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Flarum Forum running</figcaption></figure>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>In summary, Flarum is a project that looks great and that we can already enjoy in beta status. Setting it up is quite easy and that’s what you have learned in this post.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-flarum-forum-ubuntu-20-04/">How to Install Flarum Forum on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-flarum-forum-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
