-
-
Notifications
You must be signed in to change notification settings - Fork 15
Installation in Detail
Pamela Gay edited this page Feb 13, 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';