AWS Documentation

  1. Home
  2. Docs
  3. AWS Documentation
  4. AWS LAMP Stack with PHP 7.3 by Classmethod

AWS LAMP Stack with PHP 7.3 by Classmethod

LAMP and phpMyAdmin AMI

AWS Marketplace AMI User Guide

This AMI is a LAMP Web Server with phpMyAdmin installed.

This AMI supports following versions.

LAMP Base Version
– PHP 7.2
– Apache 2.4
– Amazon Linux 2 AMI (HVM)
– MariaDB 10.2
– phpMyAdmin 4.9.0.1

LAMP PHP 7.3 Version
– PHP 7.3
– Apache 2.4
– Amazon Linux 2 AMI (HVM)
– MariaDB 10.3
– phpMyAdmin 5.0.2

LAMP PHP 7.4 Version
– PHP 7.4
– Apache 2.4
– Amazon Linux 2 AMI (HVM)
– MariaDB 10.4
– phpMyAdmin 5.0.2

This is the configuration for V4.0.0

Amazon Linux 2 Kernel 5.10 LAMP and phpMyAdmin AMI

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

This AMI supports following versions.

  • Amazon Linux 2 Kernel 5.10
  • PHP 7.3
  • 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://.

When we access phpMyAdmin page, you will receive certificate error like this image below. It is due to the fact that the setting for SSL/TLS on Web server is self-signed dummy certificate.

LAMP PHP 7.4 warning

For simplicity, click on the Advanced button, and click Proceed to {ip-address} (unsafe) to access phpMyAdmin

If you want to set up a CA signed certificate, please refer to the following document for ‘Step 2: Obtain a CA-signed Certificate

DB Server Password

You can find DB Server password from EC2 management console System Log.

– Go to Amazon EC2 console at https://console.aws.amazon.com/ec2/.
– Chose your Instance and Click Actions → Monitor and troubleshoot → Get System log

Get System Log

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

$ cat /home/centos/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?