Ruinan Ma, Haochen Jiang, Will Luo
We use SSH to log in to our server, so please download the grader_key (private key) and use the following command to log into the server (replace the path):
ssh -i /path/to/private_key/grader_key [email protected]
We recommend you to save the private key to your .ssh directory or other hidden directory. If it prompts to ask you to continue connecting, just type yes.
Note: If you see an error message like "WARNING: UNPROTECTED PRIVATE KEY FILE!", please enter the command: (replace the path)
chmod 600 /path/to/private_key/grader_key
Then you should be good to log in. If there're still issues to log in, please contact [email protected].
The sudo password is cse135grader.
Homepage: https://cse135.monster/
Ruinan's page: https://cse135.monster/members/ruinan/
Haochen's page: https://cse135.monster/members/haochen/
Will's page: https://cse135.monster/members/will_luo/
robots.txt: https://cse135.monster/robots.txt
hw1/hello.php: https://cse135.monster/hw1/hello.php
hw1/report.html: https://cse135.monster/hw1/report.html
matomo analytics (extra credit): https://cse135.monster/matomo/
deploy.sh that simply executes git pull.webhook_server.py that listen the 8080 port and run the script when there is an new push.Payload URL to be https://134.209.213.47:8080. Content type to be application/json.nohup python3 webhook_server.py > ~/output.log 2>&1 &, we can run the python program at backend, and check the log. There, we could successfully deploy the site.
Note: The source code of deploy.sh and webhook_server.py could be found ender opt directory.Username: grader.
Password: Cse135Grader
We see that our HTML files are compressed when they are transported from the server, so the content-encoding header shows its gzip. But after the client side receives the file, the content does not change.
We followed along the tutorial found here.
First, install the Apache mod_security module.
$ sudo apt install libapache2-mod-security2
$ sudo a2enmod security2
Then, add the two lines in /etc/apache2/apache2.conf:
ServerTokens Full
SecServerSignature "CSE 135 Server"
Finally restart the web server.
sudo systemctl restart apache2
link
Matomo Account and Password: See matomo.txt we submitted.
First, Install the necessary dependencies.
sudo apt update
sudo apt upgrade
sudo apt install -y mysql-server php libapache2-mod-php php-mysql php-cli php-curl php-gd php-mbstring php-xml php-zip
Then, we created a MySQL user for matomo:
sudo mysql -u root -p
CREATE DATABASE matomo;
CREATE USER 'matomo'@'localhost' IDENTIFIED BY 'some_password';
GRANT ALL PRIVILEGES ON matomo.* TO 'matomo'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Then, install matomo:
cd /tmp
wget https://builds.matomo.org/matomo-latest.zip
unzip matomo-latest.zip
sudo mv matomo/* /var/www/cse135.monster/public_html/
Reload the server:
sudo systemctl reload apache2
After that, matomo is installed to our server. We could visit http://cse135.monster/matomo to follow the guide and finally set it up.