<?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>OSSN Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ossn/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 12 Nov 2018 23:38:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Open Source Social Network on Ubuntu Server 18.04?</title>
		<link>https://www.osradar.com/install-open-source-social-network-on-ubuntu/</link>
					<comments>https://www.osradar.com/install-open-source-social-network-on-ubuntu/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 13 Nov 2018 02:30:09 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[Open Source Social Network]]></category>
		<category><![CDATA[OSSN]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=7204</guid>

					<description><![CDATA[<p>Social networks are a current event. With them, it is possible to follow in real time everything. Thanks to Open Source Social Network (OSSN) you can create one on your own server in an easy and simple way. So, it is important to a company to have one. Open Source Social Network emerges as a [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-open-source-social-network-on-ubuntu/">How to install Open Source Social Network on Ubuntu Server 18.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>Social networks are a current event. With them, it is possible to follow in real time everything. Thanks to Open Source Social Network (<a href="http://opensource-socialnetwork.org/">OSSN</a>) you can create one on your own server in an easy and simple way. So, it is important to a company to have one.</p>
<p>Open Source Social Network emerges as a response to the many data security issues of the major companies behind the major social networks in the world. With a powerful but very intuitive web interface, it allows you to create your own social network.</p>
<p>So, let&#8217;s install it on <a href="https://www.osradar.com/how-to-install-glpi-on-ubuntu-server-18-04/">Ubuntu Server 18.04</a>.</p>
<h1>1. Upgrade the system</h1>
<p>Before starting the whole installation process, it is advisable to update the whole system. This ensures that you have the security patches installed on your computer.</p>
<pre class="">:~$ sudo apt update &amp;&amp; sudo apt upgrade</pre>
<figure id="attachment_7205" aria-describedby="caption-attachment-7205" style="width: 800px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7205" src="https://www.osradar.com/wp-content/uploads/2018/11/1.jpg" alt="1. Upgrade the system" width="800" height="450" srcset="https://www.osradar.com/wp-content/uploads/2018/11/1.jpg 800w, https://www.osradar.com/wp-content/uploads/2018/11/1-300x169.jpg 300w, https://www.osradar.com/wp-content/uploads/2018/11/1-768x432.jpg 768w, https://www.osradar.com/wp-content/uploads/2018/11/1-696x392.jpg 696w, https://www.osradar.com/wp-content/uploads/2018/11/1-747x420.jpg 747w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption id="caption-attachment-7205" class="wp-caption-text">1. Upgrade the system</figcaption></figure>
<p>As I said before, with this you will have a more stable and safer system.</p>
<h1>2. Install Apache web server</h1>
<p>Open Source Social Network is a web-based solution. Therefore, it is necessary to install an HTTP web server to host it on a server. In this case, the chosen one will be apache for its simplicity of use.</p>
<pre class="">:~$ sudo apt install apache2</pre>
<figure id="attachment_7206" aria-describedby="caption-attachment-7206" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7206" src="https://www.osradar.com/wp-content/uploads/2018/11/2-9.png" alt="2.- Installing Apache web server" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/2-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/2-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/2-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/2-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/2-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/2-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/2-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7206" class="wp-caption-text">2.- Installing Apache web server</figcaption></figure>
<p>Then, enable and start the service. Next, check the service status.</p>
<pre class="">:~$ sudo systemctl enable apache2 
:~$ sudo systemctl start apache2
:~$ sudo systemctl status apache2</pre>
<figure id="attachment_7207" aria-describedby="caption-attachment-7207" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7207" src="https://www.osradar.com/wp-content/uploads/2018/11/3-8.png" alt="3.- Starting the apache web server service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/3-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/3-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/3-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/3-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/3-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/3-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/3-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7207" class="wp-caption-text">3.- Starting the Apache web server service</figcaption></figure>
<figure id="attachment_7208" aria-describedby="caption-attachment-7208" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7208" src="https://www.osradar.com/wp-content/uploads/2018/11/4-9.png" alt="4.- Apache service status" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/4-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/4-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/4-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/4-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/4-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/4-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/4-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7208" class="wp-caption-text">4.- Apache service status</figcaption></figure>
<p>Finally, open a web browser and go to <code>HTTP://IP_SERVER</code>. If you see something like this, apache is correctly installed.</p>
<figure id="attachment_7209" aria-describedby="caption-attachment-7209" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7209" src="https://www.osradar.com/wp-content/uploads/2018/11/5-9.png" alt="5.- Apache default page" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/11/5-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/5-9-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/5-9-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/5-9-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/5-9-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/5-9-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/11/5-9-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/5-9-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/5-9-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7209" class="wp-caption-text">5.- Apache default page</figcaption></figure>
<p>It Works!!</p>
<h1>3. Install PHP 7.1</h1>
<p>Here&#8217;s a little problem. Ubuntu 18.04 comes with PHP 7.2 in its official repositories, however, Open Source Social Network does not support PHP 7.2. So, you have to install PHP 7.1 from an external repository. It&#8217;s not complicated, you&#8217;ll see.</p>
<pre class="">:~$ sudo add-apt-repository ppa:ondrej/php</pre>
<figure id="attachment_7210" aria-describedby="caption-attachment-7210" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7210" src="https://www.osradar.com/wp-content/uploads/2018/11/6-9.png" alt="6.- Adding an external repository to install PHP 7.1" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/6-9.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/6-9-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/6-9-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/6-9-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/6-9-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/6-9-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/6-9-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7210" class="wp-caption-text">6.- Adding an external repository to install PHP 7.1</figcaption></figure>
<p>Then, install PHP 7.1</p>
<pre class="">sudo apt install php7.1 php7.1-mysql php7.1-curl php7.1-json php7.1-cgi libapache2-mod-php7.1 php7.1-mcrypt php7.1-xmlrpc php7.1-gd php7.1-mbstring php7.1 php7.1-common php7.1-xmlrpc php7.1-soap php7.1-xml php7.1-intl php7.1-cli php7.1-ldap php7.1-zip php7.1-readline php7.1-imap php7.1-tidy php7.1-recode php7.1-sq php7.1-intl</pre>
<figure id="attachment_7211" aria-describedby="caption-attachment-7211" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7211" src="https://www.osradar.com/wp-content/uploads/2018/11/7-8.png" alt="7.- Installing PHP 7.1" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/7-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/7-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/7-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/7-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/7-8-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/7-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/7-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7211" class="wp-caption-text">7.- Installing PHP 7.1</figcaption></figure>
<p>Now you have to check that PHP is working properly with apache. Create a file named <code>example.php</code> in <code>/var/www/html</code> and add the following.</p>
<pre class="">:~$ nano /var/www/html/example.php</pre>
<pre class="">&lt;?php
phpinfo();
?&gt;</pre>
<figure id="attachment_7212" aria-describedby="caption-attachment-7212" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7212" src="https://www.osradar.com/wp-content/uploads/2018/11/8-7.png" alt="8.- Creating a PHP file to test it" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/8-7.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/8-7-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/8-7-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/8-7-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/8-7-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/8-7-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/8-7-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7212" class="wp-caption-text">8.- Creating a PHP file to test it</figcaption></figure>
<p>Now, open your web browser and open it. <code>HTTP://IP_SERVER/example.php</code> if you see the PHP info, then, everything is OK.</p>
<figure id="attachment_7213" aria-describedby="caption-attachment-7213" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7213" src="https://www.osradar.com/wp-content/uploads/2018/11/9-6.png" alt="9.- PHP info" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/11/9-6.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/9-6-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/9-6-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/9-6-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/9-6-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/9-6-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/11/9-6-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/9-6-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/9-6-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7213" class="wp-caption-text">9.- PHP info</figcaption></figure>
<h1>4. Install MariaDB</h1>
<p>Now you have to install and configure <a href="https://www.osradar.com/how-to-install-the-lastest-version-of-mariadb-on-debian-9/">MariaDB</a> as a database manager. This is the default Open Source Social Network. Fortunately, MariaDB is very popular and is available in the main repositories.</p>
<pre class="">:~$ sudo apt install mariadb-server</pre>
<figure id="attachment_7214" aria-describedby="caption-attachment-7214" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7214" src="https://www.osradar.com/wp-content/uploads/2018/11/10-5.png" alt="10.- Installing MariaDB" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/10-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/10-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/10-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/10-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/10-5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/10-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/10-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7214" class="wp-caption-text">10.- Installing MariaDB</figcaption></figure>
<p>Next, you have to secure the installation with <code>mysql_secure_installation</code> script. With that script, you can set a root password and other things more.</p>
<pre class="">:~$ sudo mysql_secure_installation</pre>
<figure id="attachment_7215" aria-describedby="caption-attachment-7215" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7215" src="https://www.osradar.com/wp-content/uploads/2018/11/11-3.png" alt="11.- Using mysql_secure_installation script" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/11-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/11-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/11-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/11-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/11-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/11-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/11-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7215" class="wp-caption-text">11.- Using mysql_secure_installation script</figcaption></figure>
<p>As you can see, I answered the question that way: Y, N, Y, Y.</p>
<p>Next, you have to create a database and an user for Open Source Social Netwok.</p>
<pre class="">:~$ sudo mysql -u root -p</pre>
<pre class="">CREATE DATABASE ossndb;
USE ossndb;
GRANT ALL PRIVILEGES ON ossndb.* TO 'ossnuser'@'localhost' IDENTIFIED BY 'ossnpss';
FLUSH PRIVILEGES;
exit;</pre>
<figure id="attachment_7216" aria-describedby="caption-attachment-7216" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7216" src="https://www.osradar.com/wp-content/uploads/2018/11/12-3.png" alt="12.- Creating the databse for Open Source Social Network" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/12-3.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/12-3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/12-3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/12-3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/12-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/12-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/12-3-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7216" class="wp-caption-text">12.- Creating the database for Open Source Social Network</figcaption></figure>
<p>You can install Open Source Social Network.</p>
<h1>5. Install Open Source Social Network</h1>
<p>Finally, you can install it. First, download it.</p>
<pre class="">:~$ cd /tmp/
:~$ wget https://www.opensource-socialnetwork.org/download_ossn/latest/build.zip</pre>
<figure id="attachment_7217" aria-describedby="caption-attachment-7217" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7217" src="https://www.osradar.com/wp-content/uploads/2018/11/13-2.png" alt="13.- Downloading the application" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/13-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/13-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/13-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/13-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/13-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/13-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/13-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7217" class="wp-caption-text">13.- Downloading the application</figcaption></figure>
<p>Then, decompress it.</p>
<pre class="">:~$ unzip build.zip</pre>
<figure id="attachment_7218" aria-describedby="caption-attachment-7218" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7218" src="https://www.osradar.com/wp-content/uploads/2018/11/14-2.png" alt="14.- Decompressing the file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/14-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/14-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/14-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/14-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/14-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/14-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/14-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7218" class="wp-caption-text">14.- Decompressing the file</figcaption></figure>
<p>The next step is to copy the folder to the Apache directory. Create a new folder for the application data and assign them writing permission.</p>
<pre class="">:~$ sudo cp -r ossn /var/www/html/
:~$ sudo mkdir /var/www/html/ossn_data
:~$ sudo chown -R www-data:www-data /var/www/html/ossn/
:~$ sudo chmod -R 755 /var/www/html/ossn/
:~$ sudo chown -R www-data:www-data /var/www/html/ossn_data</pre>
<figure id="attachment_7219" aria-describedby="caption-attachment-7219" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7219" src="https://www.osradar.com/wp-content/uploads/2018/11/15-2.png" alt="15.- Setting folders permissions" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/15-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/15-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/15-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/15-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/15-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/15-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/15-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7219" class="wp-caption-text">15.- Setting folders permissions</figcaption></figure>
<p>Next, create a <a href="https://www.osradar.com/how-to-configure-an-apache-virtual-host-on-debian-9/">virtual host</a> for Open Source Social Network.</p>
<pre class="">:~$  sudo nano /etc/apache2/sites-available/ossn.conf</pre>
<p>And add the following:</p>
<pre class="">&lt;VirtualHost *:80&gt;
ServerAdmin angelo@osradar.com
DocumentRoot /var/www/html/ossn
ServerName ossn.osradar.local

&lt;Directory /var/www/html/ossn/&gt;
Options FollowSymlinks
AllowOverride All
Require all granted
&lt;/Directory&gt;

ErrorLog ${APACHE_LOG_DIR}/ossn_error.log
CustomLog ${APACHE_LOG_DIR}/ossn_access.log combined

&lt;/VirtualHost&gt;</pre>
<figure id="attachment_7220" aria-describedby="caption-attachment-7220" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7220" src="https://www.osradar.com/wp-content/uploads/2018/11/16-2.png" alt="16.- Creating a virtualhost for OSSN" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/16-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/16-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/16-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/16-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/16-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/16-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/16-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7220" class="wp-caption-text">16.- Creating a virtual host for OSSN</figcaption></figure>
<p>Then, enable it and enable the rewrite module. Finally, restart apache.</p>
<pre class="">:~$ sudo a2ensite ossn.conf
:~$ sudo a2enmod rewrite
:~$ sudo systemctl restart apache2</pre>
<figure id="attachment_7221" aria-describedby="caption-attachment-7221" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7221" src="https://www.osradar.com/wp-content/uploads/2018/11/17-2.png" alt="17.- Enabling virtualhost" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/11/17-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/17-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/17-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/17-2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/17-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/17-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/17-2-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7221" class="wp-caption-text">17.- Enabling virtual host</figcaption></figure>
<p>Next, edit your /etc/hosts.</p>
<pre class="">:~$ sudo nano /etc/hosts</pre>
<p>And add the configuration to access. In short, the IP address and the server name.</p>
<pre class="">192.168.1.36 www.ossn.osradar.local ossn.osradar.local</pre>
<p>And that&#8217;s it. You can finish the installation from the web interface.</p>
<h1>6. Completing the installation</h1>
<p>Now, access from the web browser. In my case, the direction is: HTTP://ossn.osradar.local. In the next screen, you will see all the installation prerequisites. If all of them are in green color, then you can continue.</p>
<figure id="attachment_7223" aria-describedby="caption-attachment-7223" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7223" src="https://www.osradar.com/wp-content/uploads/2018/11/18-2.png" alt="18.- All prerequisites complete" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/11/18-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/18-2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/18-2-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/18-2-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/18-2-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/18-2-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/11/18-2-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/18-2-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/18-2-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7223" class="wp-caption-text">18.- All prerequisites complete</figcaption></figure>
<p>Next, you have to set the site settings. Add the database information previously configured.</p>
<figure id="attachment_7224" aria-describedby="caption-attachment-7224" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7224" src="https://www.osradar.com/wp-content/uploads/2018/11/19-2.png" alt="19.- Database settings" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/11/19-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/19-2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/19-2-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/19-2-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/19-2-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/19-2-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/11/19-2-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/19-2-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/19-2-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7224" class="wp-caption-text">19.- Database settings</figcaption></figure>
<p>Next, create the admin account.</p>
<figure id="attachment_7225" aria-describedby="caption-attachment-7225" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7225" src="https://www.osradar.com/wp-content/uploads/2018/11/20-2.png" alt="20. Creating the admin account" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/11/20-2.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/20-2-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/20-2-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/20-2-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/20-2-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/20-2-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/11/20-2-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/20-2-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/20-2-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7225" class="wp-caption-text">20. Creating the admin account</figcaption></figure>
<p>If everything went right, you&#8217;ll see a screen like this.</p>
<figure id="attachment_7226" aria-describedby="caption-attachment-7226" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7226" src="https://www.osradar.com/wp-content/uploads/2018/11/21-1.png" alt="21.- Everything is OK" width="1366" height="615" srcset="https://www.osradar.com/wp-content/uploads/2018/11/21-1.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/21-1-300x135.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/21-1-768x346.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/21-1-1024x461.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/21-1-696x313.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/21-1-1068x481.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/21-1-933x420.png 933w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7226" class="wp-caption-text">21.- Everything is OK</figcaption></figure>
<p>Now, you can log in with your credentials.</p>
<figure id="attachment_7227" aria-describedby="caption-attachment-7227" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7227" src="https://www.osradar.com/wp-content/uploads/2018/11/22.png" alt="22.- Login screen" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/11/22.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/22-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/22-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/22-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/22-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/22-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/11/22-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/22-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/22-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7227" class="wp-caption-text">22.- Login screen</figcaption></figure>
<p>And you will see the dashboard.</p>
<figure id="attachment_7228" aria-describedby="caption-attachment-7228" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-7228" src="https://www.osradar.com/wp-content/uploads/2018/11/23.png" alt="23.- Open Source Social Network dashboard" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/11/23.png 1366w, https://www.osradar.com/wp-content/uploads/2018/11/23-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/11/23-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/11/23-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/11/23-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/11/23-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2018/11/23-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2018/11/23-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/11/23-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-7228" class="wp-caption-text">23.- Open Source Social Network dashboard</figcaption></figure>
<p>And now you can use the program.</p>
<h1>Conclusion</h1>
<p>The OSSN installation is not duplicated in Ubuntu 18.04 and can help you to create your own social network using a web interface in an easy and dynamic way.</p>
<p>Please share this article with your friends.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-open-source-social-network-on-ubuntu/">How to install Open Source Social Network on Ubuntu Server 18.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-open-source-social-network-on-ubuntu/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
