https://www.skills.google/games/7176/labs/44468
commit, pull request
=======================================
WELCOME TO DR ABHISHEK CLOUD...
=======================================
Please enter your GCP Zone:
us-east5-a
Creating a new VM instance... Please wait.
Created [https://www.googleapis.com/compute/v1/projects/qwiklabs-gcp-04-f17fcc1c50f8/zones/us-east5-a/instances/lamp-1-vm].
WARNING: Some requests generated warnings:
- The resource 'projects/debian-cloud/global/images/debian-12-bookworm-v20240709' is deprecated. A suggested replacement is 'projects/debian-cloud/global/images/debian-12-bookworm-v20240815'.
NAME: lamp-1-vm
ZONE: us-east5-a
MACHINE_TYPE: e2-medium
PREEMPTIBLE:
INTERNAL_IP: 10.202.0.2
EXTERNAL_IP: 34.162.174.97
STATUS: RUNNING
Creating a firewall rule to allow HTTP traffic...
Creating firewall...working..Created [https://www.googleapis.com/compute/v1/projects/qwiklabs-gcp-04-f17fcc1c50f8/global/firewalls/allow-http].
Creating firewall...done.
NAME: allow-http
NETWORK: default
DIRECTION: INGRESS
PRIORITY: 1000
ALLOW: tcp:80
DENY:
DISABLED: False
Generating SSH keys...
WARNING: The private SSH key file for gcloud does not exist.
WARNING: The public SSH key file for gcloud does not exist.
WARNING: You do not have an SSH key for gcloud.
WARNING: SSH keygen will be executed to generate a key.
Generating public/private rsa key pair.
Your identification has been saved in /home/student_04_050654231c24/.ssh/google_compute_engine
Your public key has been saved in /home/student_04_050654231c24/.ssh/google_compute_engine.pub
The key fingerprint is:
SHA256:CXqWWR02OW/AFOihFy1jBHDoy2URA1TVIYW5CG+zgO4 student_04_050654231c24@cs-899854132843-default
The key's randomart image is:
+---[RSA 3072]----+
| .+=*=+XO+ |
| o...X+Bo |
| o o.*.*.+ |
| . o.O=+. o |
| . ..*=+S . |
| . oo. |
| . |
| E |
| |
+----[SHA256]-----+
Updating project ssh metadata...working.Updated [https://www.googleapis.com/compute/v1/projects/qwiklabs-gcp-04-f17fcc1c50f8].
Updating project ssh metadata...done.
You should now be able to use ssh/scp with your instances.
For example, try running:
$ ssh lamp-1-vm.us-east5-a.qwiklabs-gcp-04-f17fcc1c50f8
Installing Apache and PHP on the VM...
Warning: Permanently added 'compute.7906744901899109588' (ED25519) to the list of known hosts.
Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B]
Get:5 file:/etc/apt/mirrors/debian-security.list Mirrorlist [39 B]
Get:2 https://deb.debian.org/debian bookworm InRelease [151 kB]
Get:7 https://packages.cloud.google.com/apt google-compute-engine-bookworm-stable InRelease [1321 B]
Get:3 https://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 https://deb.debian.org/debian bookworm-backports InRelease [59.4 kB]
Get:6 https://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:8 https://packages.cloud.google.com/apt cloud-sdk-bookworm InRelease [1656 B]
Get:12 https://packages.cloud.google.com/apt google-compute-engine-bookworm-stable/main amd64 Packages [3130 B]
Get:9 https://deb.debian.org/debian bookworm/main Sources [9495 kB]
Get:13 https://packages.cloud.google.com/apt google-compute-engine-bookworm-stable/main all Packages [2856 B]
Get:10 https://deb.debian.org/debian bookworm/main amd64 Packages [8792 kB]
Get:11 https://deb.debian.org/debian bookworm/main Translation-en [6108 kB]
Get:14 https://deb.debian.org/debian bookworm-updates/main Sources.diff/Index [21.8 kB]
Ign:14 https://deb.debian.org/debian bookworm-updates/main Sources.diff/Index
Get:15 https://deb.debian.org/debian bookworm-updates/main amd64 Packages.diff/Index [21.8 kB]
Ign:15 https://deb.debian.org/debian bookworm-updates/main amd64 Packages.diff/Index
Get:16 https://deb.debian.org/debian bookworm-updates/main Translation-en.diff/Index [20.7 kB]
Ign:16 https://deb.debian.org/debian bookworm-updates/main Translation-en.diff/Index
Get:17 https://deb.debian.org/debian bookworm-backports/main Sources.diff/Index [63.3 kB]
Ign:17 https://deb.debian.org/debian bookworm-backports/main Sources.diff/Index
Get:18 https://deb.debian.org/debian bookworm-backports/main amd64 Packages.diff/Index [63.3 kB]
Ign:18 https://deb.debian.org/debian bookworm-backports/main amd64 Packages.diff/Index
Get:19 https://deb.debian.org/debian bookworm-backports/main Translation-en.diff/Index [63.3 kB]
Ign:19 https://deb.debian.org/debian bookworm-backports/main Translation-en.diff/Index
Get:20 https://deb.debian.org/debian bookworm-updates/main Sources [3288 B]
Get:21 https://deb.debian.org/debian bookworm-updates/main amd64 Packages [6924 B]
Get:22 https://deb.debian.org/debian bookworm-updates/main Translation-en [5448 B]
Get:23 https://deb.debian.org/debian bookworm-backports/main Sources [302 kB]
Get:24 https://deb.debian.org/debian bookworm-backports/main amd64 Packages [306 kB]
Get:25 https://deb.debian.org/debian bookworm-backports/main Translation-en [258 kB]
Get:26 https://deb.debian.org/debian-security bookworm-security/main Sources [192 kB]
Get:27 https://deb.debian.org/debian-security bookworm-security/main amd64 Packages [299 kB]
Get:28 https://deb.debian.org/debian-security bookworm-security/main Translation-en [183 kB]
Get:29 https://packages.cloud.google.com/apt cloud-sdk-bookworm/main amd64 Packages [4767 kB]
Get:30 https://packages.cloud.google.com/apt cloud-sdk-bookworm/main all Packages [2027 kB]
Fetched 33.3 MB in 5s (6610 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4 liblua5.3-0 ssl-cert
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libjansson4 liblua5.3-0 ssl-cert
0 upgraded, 11 newly installed, 0 to remove and 129 not upgraded.
Need to get 2409 kB of archives.
After this operation, 8536 kB of additional disk space will be used.
Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B]
Get:2 file:/etc/apt/mirrors/debian-security.list Mirrorlist [39 B]
Get:3 https://deb.debian.org/debian bookworm/main amd64 libapr1 amd64 1.7.2-3+deb12u1 [102 kB]
Get:4 https://deb.debian.org/debian bookworm/main amd64 libaprutil1 amd64 1.6.3-1 [87.8 kB]
Get:5 https://deb.debian.org/debian bookworm/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.3-1 [13.6 kB]
Get:6 https://deb.debian.org/debian bookworm/main amd64 libaprutil1-ldap amd64 1.6.3-1 [11.8 kB]
Get:7 https://deb.debian.org/debian bookworm/main amd64 libjansson4 amd64 2.14-2 [40.8 kB]
Get:8 https://deb.debian.org/debian bookworm/main amd64 liblua5.3-0 amd64 5.3.6-2 [123 kB]
Get:9 https://deb.debian.org/debian-security bookworm-security/main amd64 apache2-bin amd64 2.4.67-1~deb12u2 [1402 kB]
Get:10 https://deb.debian.org/debian-security bookworm-security/main amd64 apache2-data all 2.4.67-1~deb12u2 [160 kB]
Get:11 https://deb.debian.org/debian-security bookworm-security/main amd64 apache2-utils amd64 2.4.67-1~deb12u2 [216 kB]
Get:12 https://deb.debian.org/debian-security bookworm-security/main amd64 apache2 amd64 2.4.67-1~deb12u2 [231 kB]
Get:13 https://deb.debian.org/debian bookworm/main amd64 ssl-cert all 1.1.2 [21.1 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 2409 kB in 0s (12.7 MB/s)
Selecting previously unselected package libapr1:amd64.
(Reading database ... 68822 files and directories currently installed.)
Preparing to unpack .../00-libapr1_1.7.2-3+deb12u1_amd64.deb ...
Unpacking libapr1:amd64 (1.7.2-3+deb12u1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../01-libaprutil1_1.6.3-1_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.3-1) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.3-1_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.3-1) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../03-libaprutil1-ldap_1.6.3-1_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.3-1) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../04-libjansson4_2.14-2_amd64.deb ...
Unpacking libjansson4:amd64 (2.14-2) ...
Selecting previously unselected package liblua5.3-0:amd64.
Preparing to unpack .../05-liblua5.3-0_5.3.6-2_amd64.deb ...
Unpacking liblua5.3-0:amd64 (5.3.6-2) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../06-apache2-bin_2.4.67-1~deb12u2_amd64.deb ...
Unpacking apache2-bin (2.4.67-1~deb12u2) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../07-apache2-data_2.4.67-1~deb12u2_all.deb ...
Unpacking apache2-data (2.4.67-1~deb12u2) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../08-apache2-utils_2.4.67-1~deb12u2_amd64.deb ...
Unpacking apache2-utils (2.4.67-1~deb12u2) ...
Selecting previously unselected package apache2.
Preparing to unpack .../09-apache2_2.4.67-1~deb12u2_amd64.deb ...
Unpacking apache2 (2.4.67-1~deb12u2) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../10-ssl-cert_1.1.2_all.deb ...
Unpacking ssl-cert (1.1.2) ...
Setting up libapr1:amd64 (1.7.2-3+deb12u1) ...
Setting up libjansson4:amd64 (2.14-2) ...
Setting up ssl-cert (1.1.2) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Setting up liblua5.3-0:amd64 (5.3.6-2) ...
Setting up apache2-data (2.4.67-1~deb12u2) ...
Setting up libaprutil1:amd64 (1.6.3-1) ...
Setting up libaprutil1-ldap:amd64 (1.6.3-1) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.3-1) ...
Setting up apache2-utils (2.4.67-1~deb12u2) ...
Setting up apache2-bin (2.4.67-1~deb12u2) ...
Setting up apache2 (2.4.67-1~deb12u2) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
service → /lib/systemd/system/apache-htcacheclean.service.
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u7) ...
Fetching Instance ID...
Setting up Uptime Monitoring...
Created uptime [projects/qwiklabs-gcp-04-f17fcc1c50f8/uptimeCheckConfigs/lamp-uptime-check-Y_Hi1UCaPpg].
Creating an email notification channel...
Created notification channel [projects/qwiklabs-gcp-04-f17fcc1c50f8/notificationChannels/7619447071393352114].
Fetching channel ID...
Creating an alert policy for network traffic...
Created alert policy [projects/qwiklabs-gcp-04-f17fcc1c50f8/alertPolicies/1654107899770770952].
Created uptime [projects/qwiklabs-gcp-04-f17fcc1c50f8/uptimeCheckConfigs/lamp-uptime-check-_n9PwgPD-JU].
=======================================================
LAB COMPLETED SUCCESSFULLY!
=======================================================
https://www.youtube.com/@drabhishek.5460/videos
student_04_050654231c24@cloudshell:~ (qwiklabs-gcp-04-f17fcc1c50f8)$