1. Home
  2. Docs
  3. GCP Marketplace
  4. GCP LAMP 7.4 on Ubuntu 20.04

GCP LAMP 7.4 on Ubuntu 20.04

This AMI is a LAMP Web Server with phpMyAdmin installed on Ubuntu 20.04. Package include Linux, Apache2, MySQL, and phpMyAdmin.

This AMI supports following versions.

PHP 7.4
Apache 2.4
MySQL 8.0
phpMyAdmin 7.4

Web Server

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

Create VM instance

We recommend using minimum machine type e2-standard-8 for this LAMP server. For more machine types please refer to GCP General purpose machines documentation.

DB Server Password

Please follow these steps to rest the MySQL root password.

Troubleshooting MySQL Root Password

If the root user’s password isn’t showing up in the console, you can reset it by following these steps:

Step 1: Switch to Root User

Open your terminal and execute the following command to become the root user:

Step 2: View debian-sys-maint User and Password

Execute this command to display the Debian System Maintenance (debian-sys-maint) user and its password:

Note down the debian-sys-maint user’s password for use in the next step.

Step 3: Connect to the Local MySQL Server

Use the debian-sys-maint credentials to connect to your MySQL server:

Note down the debian-sys-maint user’s password for use in the next step.

Step 4: Reset Root User Password

Inside the MySQL interface, execute the following command to reset the root user password. Replace 'yourpassword' with your desired password.

Step 5: Verify Root User Login

Finally, validate that you can log in with the new root user password:

External IP address

Note the external IP from VM instance console

You can access to Apache Ubuntu by accessing http://{externalIP}/.

When you access Google Chrome with warning.

Click anywhere on the browser and type thisisunsafe to bypass when there is no danger to your connection.

Then this default welcome page will show ups


You can access to phpMyAdmin at http://{externalIP}/phpMyAdmin.

How to Set up SSH Tunneling (Port Forwarding)

ex.) create ssh tunnel

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

For phpMyAdmin please refer to phpMyAdmin User Guide


Tags ,

How can we help?