Arcade Voyage: App Modernization | GSP069
Solution for Arcade Voyage: App Modernization | GSP069. 1 lab: GSP069. Fast copy-paste commands for Google Cloud.
GSP069 — App Engine: Qwik Start - PHP
Estimated time: 10 minutes
# 🚀 App Engine: Qwik Start - PHP > ⚠️ **Disclaimer:** This is an independent, community-made walkthrough created for educational purposes, hands-on practice, and Google Cloud certification preparation. This guide is designed to help learners understand Google Cloud services and complete practical exercises. Always attempt the lab yourself first and follow Google Cloud Skills Boost / Qwiklabs Terms of Service. This walkthrough is not affiliated with or endorsed by Google, Google Cloud, or Qwikl
clear
CYAN='\e[1;36m'
BLUE='\e[1;34m'
RESET='\e[0m'
BOLD='\e[1m'
GREEN='\e[1;32m'
YELLOW='\e[1;33m'
MAGENTA='\e[1;35m'
echo -e "${CYAN}${BOLD}"
cat << "EOF"
____ _ _ _ __ ___
/ __ \ | | (_) | / _| / _ \
| | | |_ __| |__ _| |_ ___ | |_ | | | |_ __ ___
| | | | '__| '_ \| | __| / _ \ | _|| | | | '_ \/ __|
| |__| | | | |_) | | |_ | (_) | | | | |_| | |_) \__ \
\____/|_| |_.__/|_|\__| \___/ |_| \___/| .__/|___/
| |
|_|
EOF
echo -e "${RESET}"
echo -e "${BLUE}${BOLD}╔════════════════════════════════════════════════════════════╗${RESET}"
echo -e "${BLUE}${BOLD}║ 🚀 BROUGHT TO YOU BY ORBIT OF OPS ║${RESET}"
echo -e "${BLUE}${BOLD}╚════════════════════════════════════════════════════════════╝${RESET}\n"
echo -e "${MAGENTA}${BOLD}Please check your lab instructions panel for your assigned Region.${RESET}"
read -p "Enter your Region (e.g., us-central1): " REGION
echo ""
export PROJECT_ID=$(gcloud config get-value core/project 2>/dev/null)
gcloud config set compute/region "${REGION}" --quiet >/dev/null 2>&1
echo -e "${CYAN}Task 1: Enabling App Engine Admin API...${RESET}"
gcloud services enable appengine.googleapis.com --quiet
echo -e "${CYAN}Task 2: Downloading the PHP Hello World app & Updating Runtime...${RESET}"
cd ~
rm -rf php-docs-samples
git clone https://github.com/GoogleCloudPlatform/php-docs-samples.git >/dev/null 2>&1
cd php-docs-samples/appengine/standard/helloworld
# Updating runtime to php83 as strictly required by the lab grader
sed -i 's/^runtime: php.*/runtime: php83/' app.yaml
echo -e "${CYAN}Task 3: Initializing App Engine & Deploying the App (Takes ~2 minutes)...${RESET}"
# Creates the App Engine app in your specific region to prevent interactive prompts
gcloud app create --region="${REGION}" --quiet 2>/dev/null || true
gcloud app deploy --quiet
echo -e "\n${GREEN}${BOLD}🎉 AUTOMATION COMPLETE! Click 'Check my progress' on the final task to collect your 100% score!${RESET}"
echo -e "${GREEN}${BOLD}# ─────────────────────────────────────────────────────────────${RESET}"
echo -e "${GREEN}${BOLD}# Lab cleared? Like the video and subscribe to Orbit of Ops 🚀${RESET}"
echo -e "${GREEN}${BOLD}# youtube.com/@orbitofops${RESET}"
echo -e "${GREEN}${BOLD}# ─────────────────────────────────────────────────────────────${RESET}"