Skip to content

Installation in Detail

Pamela Gay edited this page Feb 13, 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';