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.
Comments ( 2 )
# apache2ctl -t
then you can identify the configuration error.
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