Open Source Social Network or simply OSSN is PHP based social networking application. Using OSSN you can create your own social network website and build relationships with your members. In this article we will explain how to install OSSN on a CentOS 7 VPS with Apache, MariaDB and PHP.
The installation is pretty simple. In order to run Open Source Social Network, your server needs to meet the several requirements
– PHP 5.3 or newer
– MySQL 5 or newer
– Apache web server
– Apache mod_rewrite
– PHP Function curl
– PHP GD Library
– JSON Support
– XML
Log in to your server as user root and make sure that all service are up to date by executing the following command
Install MariaDB database server on your CentOS 7 machine
Start the MariaDB database server and enable it to start on boot
Run the ‘mysql_secure_installation’ script to secure the database server and set your MariaDB root password
Log in to the MariaDB server using the ‘root’ user and create a new database and user for OSSN:
Next, we will install Apache web server
Same as we did with MariaDB, start the Apache web server and add it to automatically start on the system start-up
OSSN is PHP based application, so we need to install PHP among with few PHP modules
Go to OSSN’s official website and download the latest stable release which currently is OSSN version 2.3
Unpack the OSSN files to the document root directory on your server
This will create new ‘ossn’ directory inside the document root.
Change the ownership of the directory
To find out where is your document root directory you can use the following command
OSSN needs a directory for storing the uploaded files such as profile icons and photos. For security reasons we will create this directory outside of the document root directory
Next, create Apache virtual host for your domain. Create ‘/etc/httpd/conf.d/vhosts.conf’ directory with the following content
Create the virtual host
and finally restart Apache for the changes to take effect.
Now, open a web browser and head it to http://yourdomain.com to finish the OSSN installation
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install Open Source Social Network for you. They are available 24×7 and will take care of your request immediately. You might also want to consider reading How to Install Open Classifieds on CentOS 7.
PS. 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.
CONFIGURATION DIRECTORY IS NOT WRITEABLE
i get this error message; i’ve tried to chmod 666 the /var/www/html but no luck; could someone help me with this ? thanks
Change the ownership of the directory:
chown -R apache:apache /var/www/html/ossn
“/etc/httpd/vhosts.d/yourdomain.com.conf” E212: Can’t open file for writing
i get this error message …could someone help me out!!!!
You can get this error if the directory you are trying to create the file does not exist. Also, make sure that you have permissions to write into that directory.