PHP 5 ha raggiunto la fine del supporto e verrà
ritirato
il 31 gennaio 2026. Dopo il ritiro, non potrai eseguire il deployment di applicazioni PHP 5, anche se la tua organizzazione ha utilizzato in precedenza un criterio dell'organizzazione per riattivare i deployment di runtime legacy. Le tue applicazioni PHP
5 esistenti continueranno a essere eseguite e a ricevere traffico dopo la
data di ritiro. Ti consigliamo di eseguire la migrazione all'ultima versione supportata di PHP.
L'agente di servizio dell'ambiente standard di App Engine
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Oltre all'account di servizio predefinito di App Engine, l'ambiente standard di App Engine include un agente di servizio per l'ambiente standard di App Engine. L'agente di servizio consente al tuo Google Cloud progetto di interagire con le risorse della tua app
separatamente da altri Google Cloud servizi.
Google crea automaticamente questo account quando esegui il deployment della prima app di un progetto
nell'ambiente standard di App Engine utilizzando gli strumenti di App Engine,
come il comando gcloud app deploy.
L'agente di servizio non è elencato nella pagina Account di servizio della Google Cloud console e presenta le seguenti limitazioni:
Non revocare i ruoli concessi all'agente di servizio.
Nell'angolo in alto a destra della pagina Autorizzazioni, seleziona la casella di controllo Includi concessioni di ruoli fornite da Google.
Nell'elenco Principali, individua l'ID dell'agente di servizio dell'ambiente standard App Engine, che utilizza l'ID service-PROJECT_NUMBER@gcp-gae-service.iam.gserviceaccount.com.
Verifica che all'agente di servizio sia stato assegnato il ruolo Agente di servizio per l'ambiente standard di App Engine.
Ruolo Agente di servizio
L'agente di servizio dispone del
ruolo Agente di servizio dell'ambiente standard di App Engine.
Il ruolo include un insieme di autorizzazioni necessarie per l'ambiente standard PHP 5 per gestire le app dell'ambiente standard. Ad esempio, questo ruolo include le autorizzazioni per eseguire le seguenti attività:
Ottieni un token di accesso per le istanze App Engine per accedere ad altre Google Cloud risorse, ad esempio un bucket Cloud Storage.
Utilizza l'API Blobstore dai servizi integrati legacy di App Engine.
Il ruolo Agente di servizio dell'ambiente standard di App Engine è riservato all'agente di servizio. Non concedere questo
ruolo IAM a nessun altro account, perché le
autorizzazioni incluse nel ruolo possono cambiare senza preavviso.
Ripristino di un agente di servizio eliminato
Se elimini accidentalmente l'agente di servizio ambiente standard App Engine,
ripristinalo seguendo questi passaggi:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThe App Engine standard environment includes a service agent that enables your Google Cloud project to interact with your app's resources separately from other Google Cloud services.\u003c/p\u003e\n"],["\u003cp\u003eThis service agent is automatically created when you deploy a project's first app to the App Engine standard environment and is not listed on the Service Accounts page.\u003c/p\u003e\n"],["\u003cp\u003eIt's crucial not to revoke the roles granted to the service agent or grant its specific role to any other account, as this can impact app deployment.\u003c/p\u003e\n"],["\u003cp\u003eYou can verify the existence and role of the service agent by checking the Permissions page in the Google Cloud console and locating the service agent ID, which is \u003ccode\u003eservice-PROJECT_NUMBER@gcp-gae-service.iam.gserviceaccount.com\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIf the service agent is accidentally deleted, you can restore it by adding a new principal with the service agent's ID and assigning it the "App Engine standard environment Service Agent" role in the Permissions page.\u003c/p\u003e\n"]]],[],null,["# The App Engine standard environment service agent\n\nIn addition to the [App Engine default service\naccount](/appengine/docs/legacy/standard/php/service-account), the\nApp Engine standard environment includes a *App Engine standard environment service agent*. The service agent\nenables your Google Cloud project to interact with the resources of your app\nseparately from other Google Cloud services.\n\nGoogle automatically creates this account when you deploy a project's first app\nto the App Engine standard environment using App Engine tooling,\nsuch as the `gcloud app deploy` command.\n\nThe service agent is not listed on the Service\nAccounts page of the Google Cloud console and has the following restrictions:\n\n- Do not revoke the roles that are granted to the service agent.\n- Do not grant the related [App Engine standard environment service agent\n role](#service_agent_role) to any other account because the permissions that the role includes can change without notice.\n\n| **Warning:** Removing the service agent removes the binding for the service agent from your Google Cloud project. If you remove the binding or change the permissions for the service agent, any deployment to your app in the standard environment might fail.\n\nVerifying the App Engine standard environment service agent\n-----------------------------------------------------------\n\nTo verify that the service agent exists\nin your Google Cloud project, perform the following steps:\n\n1. Open the Google Cloud console:\n\n [Go to the Permissions\n page](https://console.cloud.google.com/iam-admin/iam)\n2. In the upper-right corner of the **Permissions** page, select the\n **Include Google-provided role grants** checkbox.\n\n3. In the **Principals** list, locate the ID of the App Engine standard environment service\n agent, which uses the ID \n\n `service-`\u003cvar translate=\"no\"\u003ePROJECT_NUMBER\u003c/var\u003e`@gcp-gae-service.iam.gserviceaccount.com`.\n\n4. Verify that the service agent has been\n granted the **App Engine standard environment Service Agent** role.\n\nService Agent role\n------------------\n\nThe service agent has the\n[App Engine standard environment Service Agent role](/iam/docs/understanding-roles#appengine.serviceAgent).\nThe role includes a set of permissions needed by PHP 5 standard environment to\nmanage your standard environment apps. For example,\nthis role includes permissions to perform the following tasks:\n\n- Get an access token for App Engine instances to access other Google Cloud resources, such as a Cloud Storage bucket.\n- Use the [Blobstore API](/appengine/docs/legacy/standard/php/blobstore) from App Engine legacy bundled services.\n\nThe App Engine standard environment Service Agent role is reserved for the\nservice agent. Do not grant this\n[IAM role](/iam/docs/overview#roles) to any other account, because the\npermissions that the role includes can change without notice.\n\nRestoring a deleted service agent\n---------------------------------\n\nIf you accidentally delete the App Engine standard environment service agent,\nrestore it by performing the following steps:\n\n1. Open the Google Cloud console:\n\n [Go to the Permissions\n page](https://console.cloud.google.com/iam-admin/iam)\n2. Click **Add**.\n\n3. Enter the service agent ID using the format \n\n `service-`\u003cvar translate=\"no\"\u003ePROJECT_NUMBER\u003c/var\u003e`@gcp-gae-service.iam.gserviceaccount.com`.\n\n4. Select the **App Engine standard environment Service Agent** role.\n\n5. Click **Save**."]]