{"id":19870,"date":"2016-09-16T07:48:03","date_gmt":"2016-09-16T12:48:03","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=19870"},"modified":"2022-12-16T04:14:58","modified_gmt":"2022-12-16T10:14:58","slug":"install-open-source-social-network-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-open-source-social-network-on-ubuntu-16-04\/","title":{"rendered":"Install Open Source Social Network on Ubuntu 16.04"},"content":{"rendered":"
<\/p>\n
In this tutorial, we are going to provide you with step by step instructions on how to install Open Source Social Network with Apache on an Ubuntu 16.04 VPS<\/a><\/strong>.<\/p>\n Open Source Social Network (OSSN)<\/a> is a social networking software written in PHP used by website developers to create social networking websites. The installation process is easy and it takes only a couple of minutes.<\/p>\n At the time of writing this tutorial, the latest stable version of Open Source Social Network is 4.2 and it requires:<\/p>\n <\/p>\n This install guide assumes that Apache is already installed and configured on your virtual server<\/a>.<\/p>\n Let’s start with the installation. Make sure your server OS packages are fully up-to-date:<\/p>\n Enable Apache rewrite module if it is not already done so:<\/p>\n Install required PHP packages:<\/p>\n Restart the Apache service for the changes to take effect:<\/p>\n Download the latest version of Open Source Social Network available at http:\/\/www.opensource-socialnetwork.org\/download to a directory on the server and extract it using the following commands:<\/p>\n Create a new MySQL database and user for OSSN:<\/p>\n Do not forget to replace ‘y0ur-pAssW0RD’ with a strong password.<\/p>\n Edit the PHP configuration file (\/etc\/php\/7.0\/cli\/php.ini):<\/p>\n and modify these lines:<\/p>\n OSSN needs a directory for storing the uploaded files such as images. For security reasons we will create this directory outside of the document root directory:<\/p>\n All files have to be readable by the web server, so set a proper ownership:<\/p>\n Create a new virtual host directive in Apache. For example, create a new Apache configuration file named \u2018ossn.conf\u2019 on your virtual server:<\/p>\n Then, add the following lines:<\/p>\n Remove the 000-default.conf file:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n Open your favorite web browser, navigate to http:\/\/your-domain.com\/ , verify that all installation prerequisites are met and the OSSN installer should be starting. You should follow the easy instructions on the install screen inserting the necessary information as requested. Do not forget to set data directory to ‘\/var\/www\/ossndatadir’. That is it. The Open Source Social Network has been installed on your server.<\/p>\n Log in to the OSSN administration back-end at http:\/\/your-domain.com\/administrator and configure OSSN according to your needs.<\/p>\n <\/p>\n <\/p>\n Of course, you don\u2019t have to do any of this if you use one of our OSSN VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Open Source Social Network<\/strong> for you. They are available 24×7 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" In this tutorial, we are going to provide you with step by step instructions on how to install Open Source … <\/p>\n\n
apt-get update \r\napt-get upgrade<\/pre>\n
a2enmod rewrite<\/pre>\n
apt-get install php7.0-cli php7.0-common php7.0-json php7.0-mcrypt php7.0-mysql php7.0-xml php7.0-curl php7.0-zip php7.0-gd<\/pre>\n
service apache2 restart<\/pre>\n
cd \/opt\/\r\nwget https:\/\/www.opensource-socialnetwork.org\/download_ossn\/latest\/build.zip -O ossn.zip\r\nunzip ossn.zip -d \/var\/www\/html\/\r\n<\/pre>\n
mysql -u root -p\r\nmysql> SET GLOBAL sql_mode='';\r\nmysql> CREATE DATABASE ossndb;\r\nmysql> CREATE USER 'ossnuser'@'localhost' IDENTIFIED BY 'y0ur-pAssW0RD';\r\nmysql> GRANT ALL PRIVILEGES ON ossndb.* TO 'ossnuser'@'localhost';\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> quit<\/pre>\n
vi \/etc\/php\/7.0\/cli\/php.ini<\/pre>\n
allow_url_fopen = On\r\nfile_uploads = On\r\nupload_max_filesize = 32M<\/pre>\n
mkdir -p \/var\/www\/ossndatadir<\/pre>\n
chown www-data:www-data -R \/var\/www\/html\/ossn\/<\/pre>\n
touch \/etc\/apache2\/sites-available\/ossn.conf\r\nln -s \/etc\/apache2\/sites-available\/ossn.conf \/etc\/apache2\/sites-enabled\/ossn.conf\r\nvi \/etc\/apache2\/sites-available\/ossn.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@your-domain.com\r\nDocumentRoot \/var\/www\/html\/ossn\/\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\n<Directory \/var\/www\/html\/ossn\/>\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nOrder allow,deny\r\nallow from all\r\n<\/Directory>\r\nErrorLog \/var\/log\/apache2\/your-domain.com-error_log\r\nCustomLog \/var\/log\/apache2\/your-domain.com-access_log common\r\n<\/VirtualHost>\r\n<\/pre>\n
rm \/etc\/apache2\/sites-enabled\/000-default.conf<\/pre>\n
service apache2 restart<\/pre>\n
\n<\/span><\/p>\n
\n