Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-11-20 Thread Vick Khera
On Thursday, April 20, 2017 at 2:34:02 PM UTC-4, Takashi Matsuo (Google) wrote: > > > There are two extensions for using memcached; `memcache` and `memcached` > extensions. Yeah it's confusing, but in short, the `memcache` is an old > one, and not actively maintained. On our runtime, we only pro

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-26 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, I think you can use dispatch file or `target` in `cron.yaml` . Feel free to let us know if

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-23 Thread Yao Li
I removed login:admin in app.yaml and it works for cron jobs. Is there anyway to run cron jobs for specific service? (for example, I have 3 services, www, default, custom, they use different databases, how can I run a cron job only for service custom?) On Monday, May 22, 2017 at 10:17:18 PM UTC

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-22 Thread Yao Li
I investigated 403 check before accessing static file but there is no problem there. The only code to check 403 is the before() function which is executed before run cron job, but it didn't print out the debug code I added in the before() function, there is only one line log: 21:24:22.536GET40

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-22 Thread Yao Li
Is there a way to config cron job for specific service? (for example, I have 3 services, www, default, custom, they use different databases, how can I run a cron job only for service custom?) On Monday, May 8, 2017 at 1:19:44 PM UTC-7, Yao Li wrote: > > Yes, I found one (403 check) before access

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-08 Thread Yao Li
Yes, I found one (403 check) before accessing static file and I will figure out what happened there. On Friday, May 5, 2017 at 2:57:20 PM UTC-7, Takashi Matsuo (Google) wrote: > > > Sorry sent it too early... > > Do you have any other place to return 403 in the code path in your cron > handler?

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-05 Thread 'Takashi Matsuo' via Google App Engine
Sorry sent it too early... Do you have any other place to return 403 in the code path in your cron handler? Your logic seems fine. I suspect that there might be another check for signed in state of the user, and now it gives you 403. On Fri, May 5, 2017 at 11:35 AM Takashi Matsuo wrote: > > Do

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-05 Thread 'Takashi Matsuo' via Google App Engine
Do you have any other place to return 403 in your cron code path? On Fri, May 5, 2017 at 10:58 AM Yao Li wrote: > You are right, I found the code to check $_SERVER['HTTP_X_APPENGINE_CRON'] > > public function before() { > if ($_SERVER['HTTP_X_APPENGINE_CRON'] != 'true') { > a\Error::

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-05 Thread Yao Li
You are right, I found the code to check $_SERVER['HTTP_X_APPENGINE_CRON'] public function before() { if ($_SERVER['HTTP_X_APPENGINE_CRON'] != 'true') { a\Error::raiseHttp403(); } } It complains with 403 which means it's not from app engine? But I'm sure it's from app engine fle

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-04 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, App Engine Flex doesn't support the handler section in app.yaml. I think you're getting 403 because you're also restricting your cron handlers in your code somewhere. Can you do a quick code review on the cron handler, and change it to check the $_SERVER value as I mentioned? Thanks, On

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-04 Thread Yao Li
Yes, it's for authorized users and worked for standard env, handler part doesn't work for flex and I added routes file. As the log, it should come from App Engine. Do I need remove cron config part in app.yaml or even delete the whole handler setting? 03:20:40.199 GET 403 162 B 0 ms AppEngine

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-04 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, I think your handlers are protected only for authorized users, right? https://cloud.google.com/appengine/docs/flexible/nodejs/scheduling-jobs-with-cron-yaml#securing_urls_for_cron On App Engine flex, it changed how to secure your cron handlers. Check $_SERVER['HTTP_X_APPENGINE_CRON'] and

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-04 Thread Yao Li
cron.yaml cron: - description: check USPS Scanned every 4 hours url: /Cron/checkUSPSScanned schedule: every 4 hours retry_parameters: min_backoff_seconds: 5 max_doublings: 5 - description: check USPS Scanned every 4 hours (batch 2) url: /Cron/checkUSPSScannedBatch2 schedule: eve

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-04 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, Cron works for me on my Flex app. Can you show your cron.yaml, and app.yaml? On Thu, May 4, 2017 at 8:03 AM Yao Li wrote: > btw, I did add cron job routing when initializing app in flex env, the > cron routes are defined in app.yaml (handler part) for standard env. > > > On Thursday, M

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-04 Thread Yao Li
btw, I did add cron job routing when initializing app in flex env, the cron routes are defined in app.yaml (handler part) for standard env. On Thursday, May 4, 2017 at 7:57:49 AM UTC-7, Yao Li wrote: > > I add New Relic install script in Dockerfile of app level and it works, > thanks. > > The cr

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-04 Thread Yao Li
I add New Relic install script in Dockerfile of app level and it works, thanks. The cron job has 403 issue after I deploy the app in GAE flex env as default service, it works well (200) previously with app in GAE standard env. Do I need do some configuration for flex one? On Monday, May 1, 201

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-01 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, FYI, we released a new Runtime image which should capture the logs on stderr by default. On Mon, May 1, 2017 at 10:28 AM Yao Li wrote: > 1. I have to install New Relic agent on instance manually with scrip

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-01 Thread Yao Li
1. I have to install New Relic agent on instance manually with script currently after ssh, is there a way (API, script or something else) to install the following script automatically? ``` wget -r -l1 -nd -A"linux.tar.gz" https://download.newrelic.com/php_agent/release/ gzip -dc newrelic*.tar.g

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-01 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, > 1. flex env doesn't support handlers for routing? No Flex doesn't support handlers. Instead you can put a partial config file for nginx. Put a file named nginx-app.conf. The default configuration is as follows: ``` location / { # try to serve files directly, fallback to the front co

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-05-01 Thread Yao Li
How about deploying without specifying service name in app.yaml? It will replace the current default service, right? On Friday, April 28, 2017 at 4:51:26 PM UTC-7, Yao Li wrote: > > Two questions: > 1. flex env doesn't support handlers for routing? > 2. Can I migrate traffic from default service

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-28 Thread Yao Li
btw, default service (on standard environment) is using 1st gen cloud sql instance, monitor one (on flex) is using 2nd gen one. On Friday, April 28, 2017 at 4:51:26 PM UTC-7, Yao Li wrote: > > Two questions: > 1. flex env doesn't support handlers for routing? > 2. Can I migrate traffic from defa

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-28 Thread Yao Li
Two questions: 1. flex env doesn't support handlers for routing? 2. Can I migrate traffic from default service (on standard environment) to monitor one (on flex)? Or update monitor to default service? On Friday, April 28, 2017 at 3:50:41 PM UTC-7, Yao Li wrote: > > I found the possible reason:

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-28 Thread Yao Li
I found the possible reason: I defined routing in app.yaml and it works for standard environment but flex env, it seems flex env doesn't support handlers for routing. handlers: - url: /v\d+/.* script: api/index.php secure: always On Friday, April 28, 2017 at 1:52:22 PM UTC-7, Takashi Mats

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-28 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, On Fri, Apr 28, 2017 at 9:10 AM Yao Li wrote: > Hi Takashi, > > I did get New Relic installed successfully, thanks! > Great :) > > The current issue is 404 for API request from mobile app or Postman > software. > > I have the default service (f-s.appspot.com) in standard environment a

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-28 Thread Yao Li
Hi Takashi, I did get New Relic installed successfully, thanks! The current issue is 404 for API request from mobile app or Postman software. I have the default service (f-s.appspot.com) in standard environment and its API service works well, I copied code to monitor service (monitor-dot-f-s.

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-26 Thread 'Takashi Matsuo' via Google App Engine
I often do: ``` apt-get update && apt-get install -y vim less ``` If you're using runtime:custom, maybe you can install them during development phase On Wed, Apr 26, 2017 at 8:28 PM Yao Li wrote: > I want to check the log file in the docker container, but none of vi, vim, > nano works. Do I need

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-26 Thread Yao Li
I want to check the log file in the docker container, but none of vi, vim, nano works. Do I need to install text editor in the docker image or some other way to view the content? Or use scp to copy to my mac? On Wednesday, April 26, 2017 at 2:44:11 PM UTC-7, Takashi Matsuo (Google) wrote: > >

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-26 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, According to their docs, I think you need to use this method: PHP agent installation: Non-standard PHP (advanced) Unfortunately we're not using the debian's official ap

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-26 Thread Yao Li
Hi Takashi, I'm installing New Relic PHP agent based on php-nginx docker image, it does finish all commands in Dockerfile but not show New Relic in phpinfo() page (phpinfo() will show New Relic module if installed successfully), how to ensure run the installation command with root user in bash

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-26 Thread Yao Li
Ok, we can talk with Hangout. On Wednesday, April 26, 2017 at 11:26:36 AM UTC-7, Takashi Matsuo (Google) wrote: > > > Hi Yao, > > According to "Availability: dynamic", it looks to me that you look at the > App Engine Standard instance. Make sure you choose the Flex version. > > The VM runs a con

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-26 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, According to "Availability: dynamic", it looks to me that you look at the App Engine Standard instance. Make sure you choose the Flex version. The VM runs a container named `gaeapp` for your application. Did you do `docker ps` in the application container? I'm happy to explain this proc

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-26 Thread Yao Li
I can see ssh button in Firefox but Chrome, it should be a Chrome issue. I went to docker container gaeapp, but I didn't see any docker container is running (empty after docker ps), no images neither (empty after docker images). But I tried kill -HUP 1 and it does affect the application (shut d

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-25 Thread Yao Li
I cannot find ssh button (as top right corner in screenshot), is it because of permission or some other reason? On Tuesday, Apr

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-25 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, You can ssh into the VM; Go to the Cloud Console, and App Engine -> instances -> ssh. Once ssh into it, you can go into the docker container: ``` sudo docker exec -t -i gaeapp /bin/bash ``` Then you can restart everything in the Docker container by: ``` kill -HUP 1 ``` On Tue, Apr 25,

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-25 Thread Yao Li
Hi Takashi, I installed New Relic Agent in custom php-nginx docker image but it doesn't show any data and I'm investigating it. Is there a way to do restart (nginx, php-fpm, httpd, etc.) and ls (look up new relic extension in specific directory) in GAE Flex env? Right now I make a new image an

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-25 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, I asked a PM who is responsible for it (it turned out it's not Justin). I will reply you off-thread. On Tue, Apr 25, 2017 at 9:25 AM Yao Li wrote: > Hi Takashi, > > Could you ask Justin to send me a test (alpha) version including memcache? > > As the doc, Redis Lab Memcache supports mem

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-25 Thread Yao Li
Hi Takashi, Could you ask Justin to send me a test (alpha) version including memcache? As the doc, Redis Lab Memcache supports memcached, not memcache. https://cloud.google.com/appengine/docs/flexible/php/using-redislabs-memcache On Tuesday, April 25, 2017 at 8:42:17 AM UTC-7, Takashi Matsuo (Go

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-25 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, Yes, you are right. On Tue, Apr 25, 2017, 8:39 AM Yao Li wrote: > Hi Takashi, > > This instruction is only about Logging, doesn't include memcache, right? > > > On Monday, April 24, 2017 at 9:31:54 PM UTC-7, Takashi Matsuo (Google) > wrote: > >> Hi Yao, >> > Alright, I've just sent you

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-25 Thread Yao Li
Hi Takashi, This instruction is only about Logging, doesn't include memcache, right? On Monday, April 24, 2017 at 9:31:54 PM UTC-7, Takashi Matsuo (Google) wrote: > > Hi Yao, > Alright, I've just sent you the instructions. > > Thanks! > > On Mon, Apr 24, 2017 at 9:17 PM Yao Li > > wrote: > >> Y

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-24 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, Alright, I've just sent you the instructions. Thanks! On Mon, Apr 24, 2017 at 9:17 PM Yao Li wrote: > Yes, I'm interested in the alpha version and new log service. > > I tried Redis Lab Memcache, it doesn't support memcache, only memcached? > > > On Monday, April 24, 2017 at 8:45:36 PM

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-24 Thread Yao Li
Yes, I'm interested in the alpha version and new log service. I tried Redis Lab Memcache, it doesn't support memcache, only memcached? On Monday, April 24, 2017 at 8:45:36 PM UTC-7, Takashi Matsuo (Google) wrote: > > Adding our PM > > On Mon, Apr 24, 2017 at 8:29 PM Yao Li > > wrote: > >> I'm i

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-24 Thread 'Takashi Matsuo' via Google App Engine
Adding our PM On Mon, Apr 24, 2017 at 8:29 PM Yao Li wrote: > I'm interested in App Engine Flex PHP alpha version and did fill the > register form but have not received any response. > I think you are referring to the alpha program of the memcache service. If that's the case, Justin knows more

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-24 Thread Yao Li
I'm interested in App Engine Flex PHP alpha version and did fill the register form but have not received any response. On Monday, April 24, 2017 at 6:32:12 PM UTC-7, Takashi Matsuo (Google) wrote: > > > Hi Yao, > > > I copied data from a 1st generation cloud sql instance to a 2nd one, > data is

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-24 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, > I copied data from a 1st generation cloud sql instance to a 2nd one, data is exactly same but the size is doubled, is it because of the 2nd generation one specific attribute? Sorry I'm not an expert on that topic. Maybe you can try google-cloud-sql-discuss

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-24 Thread Yao Li
1. *CloudSQL* I did connect successfully by setting default socket in php.ini. Thanks. I copied data from a 1st generation cloud sql instance to a 2nd one, data is exactly same but the size is doubled, is it because of the 2nd generation one specific attribute? 2. *Log* I did choose the lognam

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-24 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, *1. CloudSQL* Yes, we recommend that you use the unix socket. If you're using mysql_connect, you may be able to use 'localhost:/cloudsql/CONNECTION_NAME' as the host name. ```php.ini extension=mysql.so sql.safe_mode=false ``` Then: $db = mysql_connect('localhost:/cloudsql/CONNECTION_NAM

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-24 Thread Yao Li
I want to install New Relic agent in the custom image (php-nginx) to monitor app level performance, as the code in php-docker (deb-package-builder) repo, GAE flex env is based on Debian, is there any libs or scripts to install software (new relic) in this environment? https://github.com/Google

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-24 Thread Yao Li
1. Cloud SQL It doesn't expose mysql unix_socket in the company framework but host, I did try to config host as the cloud sql instance ip or 'localhost' for host parameter, but nether of them work. Can I use host (cloud sql instance ip) for mysql configuration in this case or only unix_socket wo

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-22 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, On Fri, Apr 21, 2017 at 11:29 PM Yao Li wrote: > > 1. I use Second Generation Instance for Cloud SQL in flex environment, did > enable 'sqladmin' on my project. > > The cloud sql instance log shows: > 10:12:52.4252017-04-21T17:12:52.425362Z 7115 [Note] Aborted connection 7115 > to db:

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-21 Thread Yao Li
1. I use Second Generation Instance for Cloud SQL in flex environment, did enable 'sqladmin' on my project. The cloud sql instance log shows: 10:12:52.4252017-04-21T17:12:52.425362Z 7115 [Note] Aborted connection 7115 to db: 'f_s' user: 'f-s' host: '66.*.*.210' (Got timeout reading communicat

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-21 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, Sorry! I was wrong. The constants STDERR is only available for CLI SAPI. Also, the current php-fpm.conf just throws the logs on STDERR away (my fault). We will fix this early next week, but for a time being, you can put a file named php-fpm.conf in the project root with the following: ``

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-21 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, > 1 Cloud SQL Connection. I set cloud_sql_instances connection name but it doesn't work. I tried use its actual IP or 'localhost' as host name, neither of them work. Do you use Cloud SQL first generation? If so, unfortunately it's not supported on App Engine Flex. Here is the document fo

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-21 Thread Yao Li
1 Cloud SQL Connection. I set cloud_sql_instances connection name but it doesn't work. I tried use its actual IP or 'localhost' as host name, neither of them work. 2. Logging. It has some issue to open logfile:/dev/stderr as the following log file, Aura use several levels, info, warning, error.

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-20 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, On Thu, Apr 20, 2017 at 2:41 PM Yao Li wrote: > It works like a charm after add memcache extension, thanks! > Glad to hear! > > In the very beginning, I deployed a default service in standard > environment (my-company.appspot.com) and then a monitor service in flex > environment now (

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-20 Thread Yao Li
It works like a charm after add memcache extension, thanks! In the very beginning, I deployed a default service in standard environment (my-company.appspot.com) and then a monitor service in flex environment now (monitor-dot-my-company.appspot.com). 1. The default service could access Cloud SQL

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-20 Thread 'Takashi Matsuo' via Google App Engine
The `Memcache` class comes with `memcache` extension. To enable `memcache` extension on App Engine flex, you can add a dependency in your `composer.json`. ``` $ composer require 'ext-memcache:*' ``` Then our runtime will automatically enable the memcache extension for you. The memcache service fo

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-20 Thread Yao Li
As the following doc, Memcache is not available at GAE flex environment. https://cloud.google.com/appengine/docs/flexible/php/upgrading On Thursday, April 20, 2017 at 8:56:24 AM UTC-7, Yao Li wrote: > > I do have the plan to upgrade to 7.0+, but current system is in 5.6 and I > have to figure ou

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-20 Thread Yao Li
I do have the plan to upgrade to 7.0+, but current system is in 5.6 and I have to figure out it. Actually it's not XCache issue, it's Memcache issue. My company PHP framwork use Memcache for session handler and it works in standard environment, but failed when I do new \Memcache(). I cmd + cli

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, So adding to my previous e-mail, the `opcache` zend extension is also an extension for opcode caching. XCache used to be a viable option for opcode caching, but it is not very actively maintained. I recommend that you try using opcache, and see if there's enough performance gain. Speaki

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread Yao Li
I used XCache in GAE standard environment (PHP 5.5) and it works, but it doesn't in flex one (PHP 5.6). On Wednesday, April 19, 2017 at 2:11:54 PM UTC-7, Takashi Matsuo (Google) wrote: > > > Hi Yao, > > Thanks for the report. My understanding is XCache is for opcode caching, > and the last rele

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread 'Takashi Matsuo' via Google App Engine
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 foll

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread Yao Li
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.

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread 'Takashi Matsuo' via Google App Engine
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 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://gi

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread Yao Li
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 (Go

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread 'Takashi Matsuo' via Google App Engine
Hi Yao, On Wed, Apr 19, 2017 at 8:48 AM Yao Li 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

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread Yao Li
There is an error in the log: 07:47:37.000 [error] 37#0: *7 FastCGI sent in stderr: "PHP message: ALERT-SIMULATION - Unable to open logfile: /dev/stderr (attacker '', file '/app/vendor/my_company/my_framework/my_file.php', line 143) 07:47:37.000 PHP message: PHP Warning: SIMULATION - php_uname()

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread Yao Li
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/GoogleCl

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-19 Thread 'Takashi Matsuo' via Google App Engine
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 wrote: > > Hi Yao, > > If you put the index.php in the project root folder, you don't have to add > the document_root. > > Here

Re: [google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-18 Thread 'Takashi Matsuo' via Google App Engine
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 https://my-service-dot-my-app.appspot.com/ If it ret

[google-appengine] App Engine Flex Environment PHP Runtime document root not found

2017-04-18 Thread Yao Li
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 d