First step connect to SSH,
ssh -i .pem ubuntu@<PUBLIC-DNS / IP>
Once you're in console you can start by following steps to setup lamp
sudo apt update
sudo apt install -y apache2
| <?php | |
| // Put your device token here (without spaces): | |
| $deviceToken = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
| // Put your private key's passphrase here: | |
| $passphrase = 'xxxxxxx'; | |
| // Put your alert message here: | |
| $message = 'A push notification has been sent!'; |
| n1, n2 = 0, 1 | |
| count = 0 | |
| while count < 25: | |
| print(n1) | |
| nt = n1 + n2 | |
| n1 = n2 | |
| n2 = nt | |
| count += 1 |
| #!/bin/bash | |
| # This will remove Apache | |
| sudo service apache2 stop | |
| sudo apt-get purge apache2 apache2-utils apache2.2-bin | |
| sudo apt remove apache2.* | |
| sudo apt-get autoremove | |
| whereis apache2 | |
| sudo rm -rf /etc/apache2 |