How to install Open Source Social Network 4.6 on Ubuntu 18.04

To install Open Source Social Network 4.6 on Ubuntu 18.04
Open Source-Social Network (OSSN) is a social networking software written in PHP. It allows you to make a social networking website and helps your members build social relationships, with people who share similar professional or personal interests. In this tutorial, we will cover the installation of OSSN on Ubuntu 18.04.

Prerequisites
Install LAMP(Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user )

Php installation with required following modules

add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0 
php7.0-common  php7.0-xmlrpc php7.0-soap  php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Download a OSSN package on terminal using the wget command

root@linuxhelp1:~# wget https://www.opensource-socialnetwork.org/download_ossn/latest/build.zip
--2018-07-07 02:56:09--  https://www.opensource-socialnetwork.org/download_ossn/latest/build.zip
Resolving www.opensource-socialnetwork.org (www.opensource-socialnetwork.org)... 104.27.132.60, 104.27.133.60, 2400:cb00:2048:1::681b:853c, ...
Connecting to www.opensource-socialnetwork.org (www.opensource-socialnetwork.org)|104.27.132.60|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.opensource-socialnetwork.org/downloads/ossn-v4.6-1513783390.zip [following]
--2018-07-07 02:56:10--  https://www.opensource-socialnetwork.org/downloads/ossn-v4.6-1513783390.zip
Reusing existing connection to www.opensource-socialnetwork.org:443.
HTTP request sent, awaiting response... 200 OK
Length: 2304895 (2.2M) [application/zip]
Saving to: ‘ build.zip’ 

build.zip                        100%[==========================================================> ]   2.20M   718KB/s    in 3.1s    

2018-07-07 02:56:15 (718 KB/s) - ‘ build.zip’  saved [2304895/2304895]

After Downloading extract the downloaded package

root@linuxhelp1:~# unzip build.zip
Archive:  build.zip
   creating: OSSN/
  inflating: OSSN/.gitignore         
  inflating: OSSN/.travis.yml        
   creating: OSSN/actions/
   creating: OSSN/actions/administrator/
   creating: OSSN/actions/administrator/cache/
.
.
  inflating: OSSN/vendors/tinymce/skins/lightgray/img/trans.gif  
  inflating: OSSN/vendors/tinymce/skins/lightgray/img/wline.gif  
  inflating: OSSN/vendors/tinymce/skins/lightgray/skin.ie7.min.css  
  inflating: OSSN/vendors/tinymce/skins/lightgray/skin.min.css  
   creating: OSSN/vendors/tinymce/themes/
   creating: OSSN/vendors/tinymce/themes/modern/
  inflating: OSSN/vendors/tinymce/themes/modern/theme.min.js  
  inflating: OSSN/vendors/tinymce/tinymce.min.js  

Move the extracted file into the HTML directory

root@linuxhelp1:~# mv OSSN /var/www/

Navigate to the apache document root directory

root@linuxhelp1:~# cd /var/www/

Change ownership and permission of the as OSSN CMS follows

root@linuxhelp1:/var/www# chown -R www-data.www-data ossn    
root@linuxhelp1:/var/www# chmod -R 775 ossn

Create a new virtual host configuration for accessing the OSSN CMS

root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/ossn.conf
< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/ossn/

< Directory /var/www/ossn/> 
AllowOverride All
allow from all
< /Directory> 

< /virtualHost> 

Enable site access

root@linuxhelp1:/var/www# a2ensite ossn.conf
Enabling site ossn.
To activate the new configuration, you need to run:
  systemctl reload apache2

Disable default access

root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
  systemctl reload apache2

Enable rewrite module

root@linuxhelp1:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
  systemctl restart apache2

Restart the apache service to make the changes effect

root@linuxhelp1:/var/www# systemctl restart apache2

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name

Verify the prerequisites for installing OSSN as shown below

Configure the Site information and Database setup as follow

Configure the Admin user setup

After the configuration, you can access the login page by, click -> finish as shown below

Log in using the admin user credentials

After the Successful login, you will see the Admin dashboard of OSSN as shown below


Version of OSSN

With this, the method to install Open Source Social Network 4.6 on Ubuntu 18.04 comes to an end.

Comment
linuxhelp
Apr 06 2019
check the apache syntax,
# apache2ctl -t
then you can identify the configuration error.
lin
Mar 29 2019
I Have problem and i need help please
when i use a2ensite ossn.conf ,a2dissite 000-default.conf i got these error when i try to restart apache2
i have that errors ** Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
**
please help
Add a comment
FAQ
Q
error message state that Qt library versions are incompatible? How to get over this?
A
remove Qt libraries created by Geny motion by " rm libQt* " which may incompatible with the one available in the system
Q
How can I establish a TCP session to my virtual device?
A
ADB forwards the packets to the virtual device for you, to establish a TCP session to your virtual device,
Q
My installer doesn't start? What to do now?
A
You can check its integrity by "sha1sum /genymotion-.bin"
Q
Does it come with the manual update?
A
Yes it has the manual as well as you can enable automatic updates too
Q
Why can't I start Genymotion remotely? And what tools are used for accessing it in remote?
A
TightVNC on Windows, macOS screen sharing and x11vnc on Linux.(Tools support remote control)