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.
Swap memory has been created with a 1 GB swap file located at /var/myswap.
To know more about managing swap visit this page.
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:
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 paymypage.com then your DNS records should be added as follows:
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
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
Once the background installation is complete after the launch of your EC2, you can setup your WordPress blog or website by visiting the public Hostname/DNS for your EC2 instance. You can look up the public hostname from your EC2 launch history.
The WordPress database name, database username, database password, and the MySQL root password will be stored in the file /var/log/wpdbsetup.log
Before you begin setup, you should map the domain/sub-domain under which you will run WordPress:
- By adding a CNAME record for the hostname in your domain name's DNS settings.
- Then update or add a VirtualHost configuration for that domain/sub-domain under the /etc/apache2/sites-available directory.
Setup a SSL certificate using Certbot (see below), or an external source. This helps if done before you start the WordPress setup wizard.
Here are some recommended plugins you should install for improved functionality before you start using WordPress:
- All in One SEO Pack
- All in One WP Migration
- Simple Tags
- WP Mail SMTP
- Google Analytics for WordPress
Official WordPress usage guide can be found here.