AWS Documentation

  1. Home
  2. Docs
  3. AWS Documentation
  4. AWS Drupal 10 Nginx 1.22, MariaDB 10.5,php 8.2 on Amazon Linux 2 by Classmethod

AWS Drupal 10 Nginx 1.22, MariaDB 10.5,php 8.2 on Amazon Linux 2 by Classmethod

  • Amazon Linux 2 AMI (HVM) kernel 5.10
  • Nginx 1.22
  • PHP 8.2
  • MariaDB 10.5
  • phpMyAdmin 5.2
  • Drupal 10.1.6

Web Server

We prepared SSL/TLS so you can access to top page using http:// or https://.

Drupal10 Installation

Once the instance is running, please access your Drupal10 hosting domain or enter the public DNS provided by AWS (IPv4 Public IP) into your browser.


Step 1: Choose language

You will see the Drupal10 application. Chose your language settings.

Step 2: Select an Installation profile

Usually to select Standard

Step 3: Database Configuration

Find database password

You can find the database server password by accessing the System Log in the EC2 management console:

  1. Go to the Amazon EC2 console at
  2. Chose your Instance and Click on Actions → Monitor and troubleshoot → Get System Log.
  1. Get System log as shown below.

You can also SSH into your instance and find the login credential using the following command.

$ cat /home/ec2-user/credentials 
////////////////////credentials info////////////////////
--- drupal
----- Setting  : Success
--- phpMyAdmin
----- Setting  : Success
--- MariaDB
----- User     : root
----- Password : xq6npkp2WnyYqywf
----- User     : drupal
----- DB name  : drupal
----- Password : dnzehWu8iwGp6ukr

Step 4: Configure site

Click Save and continue


You can access phpMyAdmin after creating ssh tunnel.

ex.) create ssh tunnel

$ ssh ec2-user@{ipaddress} -i {ssh-key-file.pem} -N -L 8080:localhost:80


For phpMyAdmin please refer to phpMyAdmin User Guide


Tags , , ,

How can we help?