Published on March 14, 2020
Note: This is not an how to ultimate guide, it's my personal documentation how I manage to set this up and for future cheatsheet.
A key pair consists of a public key that AWS stores, and a private key file that you store. Together, they allow you to connect to your instance securely. For Windows AMIs, the private key file is required to obtain the password used to log into your instance. For Linux AMIs, the private key file allows you to securely SSH into your instance.
You have to download the private key file (*.pem file) before you can continue. Store it in a secure and accessible location. You will not be able to download the file again after it's created.
Once the instance already created, you can now access the server using ssh
Checking web server
Now Nginx appears starterd successfully.
To check on the browser, call the public IP address that you can get on the instance page, then you can see the Welcome to NGINX!
For more detailed instruction I followed this tutorial!
✏️ Note to self: Write Nginx cheatsheet for my future self!
Enable your new server block by creating a symbolic link from your new server block configuration file (in the
/etc/nginx/sites-available/ directory) to the
To test your new configuration
Reload NGINX to make the necessary changes
To test in the browser, create PHP file wit phpinfo();
It should display the PHP info.
🤔 What is the difference of Mysql and MariaDB?