• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Saturday, May 24, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

How to Install and Configure Open Source Social Network on Ubuntu 16.04

How VPS by How VPS
January 1, 2020
in Linux
0
0
SHARES
81
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Introduction
  2. Prerequisites
  3. Step 1: Update The System
  4. Step 2: Installing LAMP
  5. Step 3: Installing Open Source Social Network
  6. Step 4: Configuring Database for Open Source Social Network
  7. Step 5: Configuring Apache for OSSN
  8. Step 6: Accessing OSSN Web Interface
  9. Want to contribute?


Introduction

Open source social network also known as OSSN is a PHP based social networking tool that allows you to make your own social networking website and build relationship with members.

In this tutorial, we will explain how to install OSSN on your Ubuntu 16.04 server.

Prerequisites

  • A newly deployed Vultr Ubuntu 16.04 server instance.
  • A sudo user.

Step 1: Update The System

Before starting, you should update the system to the latest stable version with the following commands:

sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot

Step 2: Installing LAMP

In order to install OSSN, you will need to install the LAMP stack and some additional PHP modules on your server using the following commands:

sudo apt-get install apache2 libapache2-mod-php7.0 mariadb-server php7.0 php7.0-mysql php7.0-curl php7.0-gd     
php7.0-json php7.0-opcache php7.0-xml mcrypt php7.0-mcrypt php7.0-cgi php7.0-json php7-0-zip

Step 3: Installing Open Source Social Network

First you will need to download the latest stable version of OSSN from OSSN’s website https://www.opensource-socialnetwork.org/download.
You can download it with the wget command:
wget https://www.opensource-socialnetwork.org/downloads/ossn-v4.2-1468404691.zip

Next, unzip the downloaded archive to the /var/www/html directory.

sudo unzip  ossn-v4.2-1468404691.zip -d /var/www/html

You will need to ensure the correct ownership of the ossn directory:

sudo chown -R www-data.www-data /var/www/html/ossn/

Step 4: Configuring Database for Open Source Social Network

It is recommended that you run the mysql_secure_installation command to improve MySQL’s security:

sudo mysql_secure_installation

You will be presented with a few questions to which you will need to provide an answer. Next, using the MySQL command line, create a database for OSSN:

mysql -u root -p

Enter your MySQL/MariaDB root password and hit enter. Once you are logged in, you can create a database for OSSN as follows:

 MariaDB [(none)]> SET GLOBAL sql_mode='';
 MariaDB [(none)]> CREATE DATABASE ossndb;
 MariaDB [(none)]> CREATE USER 'ossnuser'@'localhost' IDENTIFIED BY 'password-here';
 MariaDB [(none)]> GRANT ALL PRIVILEGES ON ossndb.* TO 'ossnuser'@'localhost';
 MariaDB [(none)]> FLUSH PRIVILEGES; 
 MariaDB [(none)]> /q

Step 5: Configuring Apache for OSSN

Once the database is created, you need to create a new virtual host file, e.g. ossn.conf in the Apache sites’ directory:

 sudo nano /etc/apache2/sites-available/ossn.conf

Add the following lines:

 <VirtualHost *:80>
     ServerAdmin [email protected]
     DocumentRoot /var/www/html/ossn/
     ServerName example.com
     ServerAlias www.example.com
     <Directory /var/www/html/ossn/>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        allow from all
     </Directory>
     ErrorLog /var/log/apache2/ossn_log
     CustomLog /var/log/apache2/ossn_custom_log common
 </VirtualHost>

Once you are finished, enable virtual host by running the following commands:

 sudo a2ensite ossn.conf
 sudo  service apache2 reload

You will also need to enable rewrite module:

 sudo a2enmod rewrite

You will also need to make some PHP configuration changes by editing php.ini:

 sudo nano /etc/php/7.0/cli/php.ini

Changes the values for allow_url_fopen, file_uploads, and upload_max_filesize as shown below:

 allow_url_fopen = On
 file_uploads = On
 upload_max_filesize = 32M

Next, create a directory named data outside the document root directory for storing the uploaded files:

 sudo mkdir /var/www/ossn_data

Finally, restart Apache service to effect the changes:

 sudo systemctl restart apache2

Step 6: Accessing OSSN Web Interface

Once done, visit http://192.0.2.2 in your browser to complete all the required steps to finish your OSSN installation.

Don’t forget to replace example.com and 192.0.2.2 with your actual domain name your server’ IP addresses.

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
Previous Post

How to Install Seafile Server on Ubuntu 16.10

Next Post

Getting Started With SaltStack on Ubuntu 17.04

Next Post

Getting Started With SaltStack on Ubuntu 17.04

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Thabet