1. Home
  2. Docs
  3. GCP Marketplace
  4. GCP LAMP 8.1 on Ubuntu 22.04

GCP LAMP 8.1 on Ubuntu 22.04

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

This AMI supports following versions.

PHP 8.1
Apache 2.4
MySQL 8.0
phpMyAdmin 8.1

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

You can find the password from VM management console System Log

  1. Go to GCP VM2 console at https://console.cloud.google.com/logs/.
  2. Chose your Instance and click on the three-dot menu → View logs

Get 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

phpMyAdmin

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

For phpMyAdmin please refer to phpMyAdmin User Guide

Disable Unattended Upgrades

Unattended Upgrades Are Turned On by default. If you want to turn unattended upgrades off please following this instruction:

  1. Run sudo dpkg-reconfigure -plow unattended-upgrades and select “No” when Configuring unattended-upgrades prompted, OR
  2. sudo apt remove unattended-upgrades to remove

Reference

Tags ,
Was this article helpful to you? Yes No

How can we help?