Google App Engine with PHP part I

Google App Engine with PHP part I

1.Create a new clound platform project using cloud platform console
2. Try to download the google sdk for app engine


export CLOUD_SDK_REPO=”cloud-sdk-$(lsb_release -c -s)”
echo “deb $CLOUD_SDK_REPO main” | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl | sudo apt-key add –
sudo apt-get update && sudo apt-get install google-cloud-sdk
gcloud init

3. Download the hello world app
git clone
composer install
php -S localhsot:8000 -t web

4. Deploy and run Hello world on App Engine
gcloud app deploy

App Engine Flexible Environment.

The Flexible environment differs from the Standard environment in that it gives you more control over the individual instances that are running your deployed application. It does this by hosting your application within Docker on Compute Engine virtual machines.

Therefore, you will need to enable the Compute Engine API for your project so that the GCloud tool can start new Compute Engine virtual machines when you deploy your application.

Note: Since the Flexible environment uses Compute Engine resources, you will also need to enable billing for your project.

gcloud app browse


I like to study together. If you think like me please contact as below. Thanks for your watching.

Contact info:
email: [email protected]

One thought on “Google App Engine with PHP part I

Leave a Reply

Your email address will not be published. Required fields are marked *