Hi Yao, Thanks for the report. My understanding is XCache is for opcode caching, and the last release is 20140918. We're using the standard `opcache` zend extension, and it has been working pretty well for us.
The runtime already has the extension, so only you need is to put php.ini with the following content. ```php.ini zend_extension=opcache.so ``` Please try it out and let us know how it works for you! Thanks, On Wed, Apr 19, 2017 at 1:40 PM Yao Li <[email protected]> wrote: > BTW, XCache is used in my company PHP framework and it caused failure > without any error message when access the home page (root /), it works > after comment out the code with XCache. > > > On Wednesday, April 19, 2017 at 12:17:46 PM UTC-7, Takashi Matsuo (Google) > wrote: > >> >> Thanks! That makes sense. I will make the change soon and let you know >> when it's done! >> >> On Wed, Apr 19, 2017 at 10:10 AM Yao Li <[email protected]> wrote: >> > I add flag -m to preserve environment variable (composer_auth which has >>> gitlab token to composer install private repos) in composer.sh line 81: >>> >>> https://github.com/GoogleCloudPlatform/php-docker/blob/master/php-nginx/composer.sh >>> >>> >>> On Wednesday, April 19, 2017 at 9:57:03 AM UTC-7, Takashi Matsuo >>> (Google) wrote: >>> >>>> Hi Yao, >>>> >>> >>>> On Wed, Apr 19, 2017 at 8:48 AM Yao Li <[email protected]> wrote: >>>> >>>>> I found an error in the log, it complains "FastCGI sent in stderr: >>>>> "PHP message: ALERT-SIMULATION - Unable to open logfile: /dev/stderr". >>>>> >>>>> I did create a docker image for my business requirement (use own PHP >>>>> framework on nginx) based on Google Cloud Platform php-nginx. >>>>> https://github.com/GoogleCloudPlatform/php-docker/tree/master/php-nginx >>>>> >>>>> >>>>> >>>> Glad you figured it out, although it doesn't seem like the real issue. >>>> The 'ALERT_SIMULATION' indicates that the suhosin extension is just >>>> emitting a warning, and it shouldn't stop the app. >>>> >>>> Anyways, do you mind telling me what was the required change for you? >>>> Maybe we can incorporate your change so that you will be able to just use >>>> our image. >>>> >>>> Thanks! >>>> >>>> >>> On Wednesday, April 19, 2017 at 8:39:55 AM UTC-7, Takashi Matsuo >>>>> (Google) wrote: >>>>> >>>>>> >>>>>> Hi Yao, >>>>>> >>>>>> Also feel free to send the app to me if possible so that I can try to >>>>>> reproduce. I'm happy to debug it. >>>>>> >>>>>> Thanks, >>>>>> >>>>>> On Tue, Apr 18, 2017 at 6:32 PM Takashi Matsuo <[email protected]> >>>>>> wrote: >>>>>> >>>>> >>>>>>> Hi Yao, >>>>>>> >>>>>>> If you put the index.php in the project root folder, you don't have >>>>>>> to add the document_root. >>>>>>> >>>>>>> Here is the minimum app: >>>>>>> >>>>>>> ``` >>>>>>> $ tree >>>>>>> . >>>>>>> ├── app.yaml >>>>>>> └── index.php >>>>>>> >>>>>>> 0 directories, 2 files >>>>>>> tmatsuo@t-glaptop:~/work/simplestapp$ cat index.php >>>>>>> <?php >>>>>>> >>>>>>> echo 'Hello world'; >>>>>>> >>>>>>> tmatsuo@t-glaptop:~/work/simplestapp$ cat app.yaml >>>>>>> env: flex >>>>>>> runtime: php >>>>>>> service: my-service >>>>>>> ``` >>>>>>> >>>>>>> After deploying, I can access the app at >>>>>>> https://my-service-dot-my-app.appspot.com/ >>>>>>> >>>>>>> If it returns 500 HTTP error, I suggest that you go to the Logging >>>>>>> console at: >>>>>>> https://console.cloud.google.com/logs/viewer >>>>>>> >>>>>>> and see what's happening there. >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Tue, Apr 18, 2017 at 4:40 PM Yao Li <[email protected]> wrote: >>>>>>> >>>>>> I followed setting in the doc: >>>>>>>> >>>>>>>> https://cloud.google.com/appengine/docs/flexible/php/configuring-your-app-with-app-yaml#general >>>>>>>> >>>>>>>> There is a index.php file in my project root folder (for example, >>>>>>>> my project name is project_folder, it's app in the doc), as the above >>>>>>>> doc, >>>>>>>> I don't have to change the document root in app.yaml, but it failed >>>>>>>> and has >>>>>>>> 500 when visit service.myproject.appspot.com (I deployed it as a >>>>>>>> service in GAE Flex environment, I tested deployment in standard >>>>>>>> environment and it shows 'Hello World' as expected, everything is same >>>>>>>> except runtime, env and service in the app.yaml). >>>>>>>> >>>>>>>> I tried to define runtime_config: document_root as '/', or >>>>>>>> '/project_folder', neither of them work. >>>>>>>> >>>>>>>> I even created a folder web under root folder and a index.php test >>>>>>>> file as follow in app.yaml, but it still doesn't find the index.php >>>>>>>> file. >>>>>>>> >>>>>>>> >>>>>>>> runtime_config: >>>>>>>> document_root: web >>>>>>>> >>>>>>>> >>>>>>>> How to define document_root correctly? >>>>>>>> >>>>>>>> -- >>>>>>>> You received this message because you are subscribed to the Google >>>>>>>> Groups "Google App Engine" group. >>>>>>>> >>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>> send an email to [email protected]. >>>>>>>> To post to this group, send email to [email protected]. >>>>>>> >>>>>>> >>>>>>>> Visit this group at >>>>>>>> https://groups.google.com/group/google-appengine. >>>>>>>> To view this discussion on the web visit >>>>>>>> https://groups.google.com/d/msgid/google-appengine/cbdc1aee-26ec-4a26-947e-11a1799c82f1%40googlegroups.com >>>>>>>> <https://groups.google.com/d/msgid/google-appengine/cbdc1aee-26ec-4a26-947e-11a1799c82f1%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>>>> . >>>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>>> >>>>>>> -- >>>>>>> -- Takashi >>>>>>> >>>>>> -- >>>>>> -- Takashi >>>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Google App Engine" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at https://groups.google.com/group/google-appengine. >>>>> >>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/google-appengine/e99236a7-90ae-43f0-b272-4c5c8126edec%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/google-appengine/e99236a7-90ae-43f0-b272-4c5c8126edec%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>>> -- Takashi >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google App Engine" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/google-appengine. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-appengine/45ee3120-0859-46e9-ae39-3d201c3d85ed%40googlegroups.com >>> <https://groups.google.com/d/msgid/google-appengine/45ee3120-0859-46e9-ae39-3d201c3d85ed%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> -- Takashi >> > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-appengine. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/8b96613b-7abd-4809-880b-618071ccce62%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/8b96613b-7abd-4809-880b-618071ccce62%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- -- Takashi -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CADWEYXhaehneSG4xjG1228Up9%3DY7s9mVMbq4_Nxn2gdrQ0eQOw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
