Skip to content

Installation in Detail

Elad Avron edited this page Feb 20, 2020 · 6 revisions

Ubuntu 18.04

Initial Server Setup

SSH to Server as initial user

setup new sudo user with password

  • sudo adduser username
  • sudo usermod -aG sudo username
  • sudo vi /etc/ssh/sshd_config and set PasswordAuthentication yes
  • sudo systemctl restart sshd
  • Login as the new user

Apache2 Setup

Install Apache

  • sudo apt update
  • sudo apt install apache2 and go to your server root to see if it worked

Install Let's Encrypt

Make sure htaccess files will work

  • sudo vi /etc/apache2/sites-available/YOURCONFIG-le-ssl.conf
  • add the following block <Directory /var/www/YOURPATH/> AllowOverride All </Directory>
  • sudo apache2ctl configtest
  • sudo systemctl restart apache2

MySQL (You can also use MariaDB)

Install

  • sudo apt install mysql-server
  • sudo mysql_secure_installation NOTE: the VALIDATE PASSWORD PLUGIN can cause issues. Use with caution if at all.

Create the MySQL table and user

  • mysql -u root -p
  • CREATE DATABASE csb DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
  • GRANT ALL ON csb.* TO 'csbuser'@'localhost' IDENTIFIED BY 'password';

Install PHP

  • sudo apt install php libapache2-mod-php php-mysql

Install PEAR

  • sudo apt-get install php-pear
  • sudo pear install mail
  • sudo pear install Net_SMTP
  • sudo pear install Auth_SASL
  • sudo pear install mail_mime

Install SASS (Development Only)

see SASS

  • sudo apt install nodejs
  • sudo apt install npm
  • sudo npm install -g sass

Launch installer

  • go to where you want to install CSB, example cd /var/www/html
  • sudo git clone https://github.com/CosmoQuestX/CSB7.0.git
  • Make the software owned by apache sudo chown -R www-data CSB7.0
  • go to https://YOURDOMAIN/CSB7.0/csb-installer/ and follow instructions