Additional Information for LEMP Stack on Debian 10

Installation of LEMP Stack and other components takes many minutes after EC2 instance launch. Please proceed to access it only after 10 minutes of launch.

If your installation also includes WordPress you should access the server 15 minutes after launch to give the installation time to complete.

SSH Access

For SSH access see this page for instructions.

Swap Memory

Swap memory has been created with a 1 GB swap file located at /var/myswap.

To know more about managing swap visit this page.

System disk size

EBS volume (system storage disk) has the default size as provided originally by Canonical.

We recommend you increase storage to atleast 10 GB. Visit this page to know how to modify EBS volume size.

Remember to extend the Linux file system after increasing EBS volume size.

Debian 10 Server Administration

To administer Debian 10 Server directly using SSH, refer to this guide.

SSL Certificates (only if your launch included a Certbot install)

Certbot has been installed to fetch free Let's Encrypt SSL certificates for hosted websites.

Before you proceed ensure you have updated or added server block (website) configurations under /etc/nginx/sites-available directory for the domains/sub-domains for which you wish to get SSL certificates via Certbot.

You can configure it for websites hosted on your EC2 instance using SSH access.

To begin run the command: sudo certbot --nginx

Visit this page for more commands from the official Certbot user guide.

Suggested Next Steps

Set/Reset the MariaDB root password

To set MariaDB (identical to MySQL database server) root password, connect to this instance via SSH access, and run the following command at the prompt:

sudo mysql_secure_installation

Setup DNS records for Domain or Sub-domain

If you intend to use one or more domains or sub-domains with your EC2 instance, you should setup an 'A' record in your domain DNS settings pointing to your instance's public IP.

For example, if the domain name that you want pointing to your server is then your DNS records should be added as follows:

dns a-record for ec2 instance

To get the public IP for your EC2 instance launched using our service, click here.

If you need to register a new domain name for the purpose, click here.

Setup Server Blocks (website) configuration(s)

Whether you wish you use multiple websites on your Debian server or you wish to have WordPress or one website running in nginx's default server block configuration, you need to know how to setup and configure them. read tutorial from Step 6

Install phpMyAdmin

phpMyAdmin lets you manage MySQL databases on your server using just your web browser.

To install, connect the EC2 instance via SSH access and run the following command:

sudo apt-get install phpmyadmin

LEMP Stack Apps

If your instance is not as expected, contact our helpdesk here for clarification.