AWS Documentation

⌘K
  1. Home
  2. Docs
  3. AWS Documentation
  4. AWS LAMP with PHP 8.1 on Amazon Linux 2

AWS LAMP with PHP 8.1 on Amazon Linux 2

Amazon Linux 2 LAMP and phpMyAdmin AMI

This AMI is a LAMP Web Server with phpMyAdmin installed on Amazon Linux 2.

This AMI supports following versions.

  • PHP 8.1
  • Apache 2.4
  • MariaDB 10.5
  • phpMyAdmin 5.2

Web Server

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

DB Server Password

You can find the password from EC2 management console System Log.

Get System log

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

$ cat /home/ec2-user/credentials
////////////////////credentials info////////////////////
--- phpMyAdmin
----- Setting  : Success
--- MariaDB
----- User     : root
----- Password : ****************
////////////////////////////////////////////////////////

phpMyAdmin

You can access to phpMyAdmin after creating ssh tunnel.

How to Set up SSH Tunneling (Port Forwarding)

ex.) create ssh tunnel

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

http://localhost:8080/phpMyAdmin

For phpMyAdmin please refer to phpMyAdmin User Guide

Reference

Tags , ,

How can we help?