Giter Club home page Giter Club logo

ossninstaller's Introduction

OSSN Installer

An installer script for Open Source Social Network

Introduction

This script will install all of the required programs, services, and dependencies needed to run OSSN. I wrote this after reading so many people were struggling with the installation process, namely permissions and configuring Apache. This script serves as an easy install point to get anyone up and running.

It should be stated that this script has only been tested on a fresh installation of Ubuntu 16.04, but will work on later versions as well. Do not use if you're running multiple Apache virtual hosts on the same server. This script will break it upon reconfiguring the 000-default.conf for OSSN in most cases. OSSN uses the default Apache configuration out of the box.

That being said, please use a fresh installation of Ubuntu 16.04 and higher before running. I've found issues exist on servers where many of the components were installed, but removed. Walking users through a complete removal of every component is outside the scope of this install script.

Requirements

  • Ubuntu Server 16.04 and higher
  • Access to server command line via ssh or direct
  • A user account with super-user (sudo) privileges
  • Basic knowledge of the Linux command line

How to use

Step 1: Download the Script

wget https://raw.githubusercontent.com/themattbook/ossninstaller/master/ossn_installer_ubuntu.sh

Step 2: Make installer script executable

chmod +x ./ossn_installer_ubuntu.sh

Step 3: Install OSSN

sudo ./ossn_installer_ubuntu.sh

You will be prompted for MySQL credentials a few times throughout the installation process. Upon completion, navigate your browser to the URL of IP of your server. You should be greeted with an Installation page for OSSN showing that all requirements are in blue, meaning they're satisfied and ready to proceed.

OSSN Installed

Additional Information

Future Development

Currently, only Ubuntu 16.04 is supported. I will eventually add additional Linux distros to the project. Each distro will have its own script file.

MySQL setup

As the script goes through the installation process, you will be prompted for MySQL credentials and input on how to configure mysql_secure_installation and phpmyadmin. For mysql_secure_installation, simply answer "N" to the first two prompts and "Y" for the remainder. For phpmyadmin, be sure to select "Apache" and for any other prompts, just press ENTER to set default values.

Support

While my time is limited and spent on other projects, feel free to report an issue if you encounter any bugs or quirks that you feel aren't expected behavior. Rest assured, improvements will be made over time. For the meantime, this should get a lot of people up and running. Enjoy.

ossninstaller's People

Contributors

lianglee avatar nodesleep avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ossninstaller's Issues

OSSN only shows a blank page successful installation

I ran your script on a fresh install of 16.04 in a VM. The script finished OK and I configured OSSN, which completed successfully. After the page reload to http:///administrator, I'm left with a blank page. Apache's logs show:

[Wed Apr 29 08:48:02.951967 2020] [mpm_prefork:notice] [pid 30253] AH00169: caught SIGTERM, shutting down
[Wed Apr 29 08:48:03.997389 2020] [mpm_prefork:notice] [pid 30327] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Apr 29 08:48:03.997432 2020] [core:notice] [pid 30327] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 29 08:48:13.042241 2020] [mpm_prefork:notice] [pid 30327] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Apr 29 08:48:13.074339 2020] [mpm_prefork:notice] [pid 30327] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Wed Apr 29 08:48:13.074351 2020] [core:notice] [pid 30327] AH00094: Command line: '/usr/sbin/apache2'
[Wed Apr 29 08:49:02.863220 2020] [:error] [pid 31526] [client 192.168.122.1:41616] PHP Notice:  A session had already been started - ignoring session_start() in /var/www/public_html/system/start.php on line 33, referer: http://192.168.122.11/installation/?page=settings
[Wed Apr 29 08:49:30.143723 2020] [:error] [pid 31525] [client 192.168.122.1:41708] PHP Notice:  A session had already been started - ignoring session_start() in /var/www/public_html/system/start.php on line 33, referer: http://192.168.122.11/installation/?page=account
[Wed Apr 29 08:49:34.876844 2020] [:error] [pid 31525] [client 192.168.122.1:41708] PHP Notice:  A session had already been started - ignoring session_start() in /var/www/public_html/system/start.php on line 33, referer: http://192.168.122.11/installation/?page=installed

But that's it. No matter what I do, I'm left with a blank page. I realise you've probably never hit this, but any suggestions appreciated. Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.