As PHP version 5.5 is no longer supported by the community, we strongly recommend new apps use the PHP 7 runtime.

Installing an SDK

The preferred tooling for managing your App Engine applications in PHP 5 is Google Cloud SDK. Cloud SDK includes a local development server as well as the gcloudcommand-line tooling for deploying and managing your apps.

By downloading, you agree to be bound by the Terms that govern use of all SDKs for App Engine.

Installing Cloud SDK for PHP 5

Install Google Cloud SDK along with the corresponding gcloud component and other related tools and dependencies.
  1. Install and initialize Google Cloud SDK:
    Download and install
  2. Run the following command in your terminal to install the gcloud component that includes the App Engine extension for PHP 5:
    gcloud components install app-engine-php
  3. Download and install Git for access to code, samples, libraries, and tools in GitHub:
    Download and Install Git
  4. For Linux, install PHP version 5.5.34:
    Download and install

Updating Cloud SDK for PHP 5

If you already have the Google Cloud SDK installed, you can run the gcloud components update command to update the SDK to the latest version.

  1. Review the release notes to see what updates are available:
  2. Run the following command to update all the installed Google Cloud SDK components, including the App Engine extension for PHP 5:
    gcloud components update

If you have previously used the original App Engine SDK and need to continue to use the appcfg command, you can instead download and install the original App Engine SDK by following the instructions below. Cloud SDK does not include the appcfg command.

¿Te ha resultado útil esta página? Enviar comentarios:

Enviar comentarios sobre...

App Engine standard environment for PHP 5