How to install Open Source Social Network 4.6 on CentOS 7

To install Open Source Social Network 4.6 on CentOS 7

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.

Prerequisites


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

For PHP

PHP installation with required following modules.

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php56w php56w-opcache php56w-mysql php56w-curl php56w-xml  php56w-mcrypt php56w-gd

Installing Open Source Social Network 4.6

First, make sure you switch to the following directory.

[root@linuxhelp1 ~]# cd /home/user1/

And then download an OSSN package using this following URL.

[root@linuxhelp1 user1]# wget https://www.opensource-socialnetwork.org/download_ossn/latest/build.zip --no-check-certificate
--2018-04-16 03:08:12--  https://www.opensource-socialnetwork.org/download_ossn/latest/build.zip
Resolving www.opensource-socialnetwork.org (www.opensource-socialnetwork.org)... 104.27.133.60, 104.27.132.60, 2400:cb00:2048:1::681b:843c, ...
Connecting to www.opensource-socialnetwork.org (www.opensource-socialnetwork.org)|104.27.133.60|:443... connected.
.
.
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’ 

100%[============================================================> ] 2,304,895    739KB/s   in 3.0s   

2018-04-16 03:08:18 (739 KB/s) - ‘ build.zip’  saved [2304895/2304895]

The downloaded package is a zip file, so we need to unzip the file.

[root@linuxhelp1 user1]# unzip build.zip
Archive:  build.zip
   creating: ossn/
  inflating: ossn/.gitignore        
  inflating: ossn/.travis.yml       
   creating: ossn/actions/
.
.
  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

And then, Move the extracted file to the following path.

[root@linuxhelp1 user1]# mv ossn /var/www/

And then switch to the following directory

[root@linuxhelp1 user1]# cd /var/www/

Change the ownership and permission of the file.

[root@linuxhelp1 www]# chown -R apache.apache ossn
[root@linuxhelp1 www]# chmod -R 775 ossn

Create a new virtual host configuration for accessing the OSSN application

[root@linuxhelp1 www]# vim /etc/httpd/conf.d/ossn.conf
< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/ossn/

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

< /VirtualHost> 

Then restart the httpd service to make the changes effect.

[root@linuxhelp1 www]# systemctl restart httpd

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name
.
verify whether it meets all the installation prerequisites

Next, configure the database setup as follows


And then set up the site configurations as follows

Next, configure the admin account setup as follows

click on finish once the configuration is done.

Now login using the admin account credentials

After the successful login, you will see the admin dashboard of Open Source-Social Network as shown below.

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

Tag : CentOS
FAQ
Q
How to create Ossn components?
A
For create the components of Open Source Social Network, use the following link as given below "https://www.opensource-socialnetwork.org/wiki/view/739/naming-convention-for-creating-components" and "https://www.opensource-socialnetwork.org/wiki/view/737/how-to-write-a-simple-component-for-ossn"
Q
Where to download the latest version of Open Source Social Network?
A
To download the latest version of Open Source Social Network visit https://www.opensource-socialnetwork.org/download_ossn/latest/
Q
What are the requirements of Open Source Social Network?
A
The requirements of PhantomJs are as follows,
To install LAMP(Apache, MariaDB, php7)
Configure Apache
In MariaDB (create database and user and give privileges to that user)
PHP 5.6 with following modules (php56w php56w-opcache php56w-mysql php56w-curl php56w-xml php56w-mcrypt php56w-gd)
Q
How to get the free components of the Open Source Social Network?
A
Get the free components for the Open Source Social Network, use the following link as given below
"https://www.opensource-socialnetwork.org/components/all"
Q
How to get the member access in Open Source Social Network?
A
To create or login into the Open Source Social Network, use the following link as given below
"https://www.opensource-socialnetwork.org/login"