I am following the steps on this page https://cloud.google.com/debugger/docs/setup/php?authuser=1 for the App Engine Flex.
At once, the docs asks the following:
Install the stackdriver_debugger extension from PECL:
pecl install stackdriver_debugger-alpha
If your php.ini file does not include extension=stackdriver_debugger.so after running this step, add it manually.
My app is running on App engine flex. How to access the php.ini on the App Engine Flex?
Thanks
If you want to access or update your files in App Engine Flexible you need to SSH to your App Engine Flex instance and edit the file/s, follow the steps below:
gcloud
command:gcloud app --project [PROJECT-ID] instances enable-debug
sudo docker ps
sudo docker exec -it [CONTAINER-NAME] /bin/bash
ls
then to edit your files execute the ff:A. I'm using nano to edit my files. At first there is no package cache in the image, you need to run the ff before you can install the nano and use it:
apt-get update
B. Now, install the nano
apt-get install nano
nano php.ini
Then save Ctrl+x
,Y
and hit Enter
. When you are finished debugging or updating the file/s, enter exit
to exit the container, then exit
again to exit the SSH session.
Lastly, disable debugging for your instance to allow it to resume normal operation.
gcloud app --project [PROJECT-ID] instances disable-debug