-
-
Notifications
You must be signed in to change notification settings - Fork 15
Installation in Detail
Elad Avron edited this page Feb 20, 2020
·
6 revisions
SSH to Server as initial user
ssh -i KEYNAME.pem [email protected]
setup new sudo user with password
sudo adduser username
sudo usermod -aG sudo username
-
sudo vi /etc/ssh/sshd_config
and setPasswordAuthentication yes
sudo systemctl restart sshd
- Login as the new user
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
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';
sudo apt install php libapache2-mod-php php-mysql
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
see SASS
sudo apt install nodejs
sudo apt install npm
sudo npm install -g sass
- 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