gae php helloworld在gce debian和centos实例上提供带有本地服务器的白色屏幕
我试图在gce debian和/或gce centos实例上运行gae php HelloWorld。 helloworld示例在gce debian和gce centos系统上运行时产生PHP的白色死亡屏幕。每个实例都是在过去48小时内创建的新版本 我的最新版本是centos,因此我将描述该env Python:gae php helloworld在gce debian和centos实例上提供带有本地服务器的白色屏幕,php,google-app-engine,google-compute-engine,centos6,Php,Google App Engine,Google Compute Engine,Centos6,我试图在gce debian和/或gce centos实例上运行gae php HelloWorld。 helloworld示例在gce debian和gce centos系统上运行时产生PHP的白色死亡屏幕。每个实例都是在过去48小时内创建的新版本 我的最新版本是centos,因此我将描述该env Python: [stephen@skc-php-dev-centos-00 ~]$ which python /usr/local/bin/python [stephen@skc-php-dev
[stephen@skc-php-dev-centos-00 ~]$ which python
/usr/local/bin/python
[stephen@skc-php-dev-centos-00 ~]$ python -V
Python 2.7.6
[stephen@skc-php-dev-centos-00 ~]$
PHP:
google_appengine:
[stephen@skc-php-dev-centos-00 google_appengine]$ cat VERSION
release: "1.8.8"
timestamp: 1383722570
api_versions: ['1']
supported_api_versions:
python:
api_versions: ['1']
python27:
api_versions: ['1']
go:
api_versions: ['go1']
[stephen@skc-php-dev-centos-00 google_appengine]$
启动helloworld的命令:
/home/stephen/skc-local/google/google_appengine/dev_appserver.py --php_executable_path=/home/stephen/skc-local/bin/php /home/stephen/code/google-php/helloworld
服务器启动正常:
WARNING 2013-12-11 10:58:47,524 api_server.py:331] Could not initialize images API; you are likely missing the Python "PIL" module.
INFO 2013-12-11 10:58:47,538 api_server.py:138] Starting API server at: http://localhost:40256
INFO 2013-12-11 10:58:47,556 dispatcher.py:171] Starting module "default" running at: http://localhost:8080
INFO 2013-12-11 10:58:47,557 admin_server.py:117] Starting admin server at: http://localhost:8000
INFO 2013-12-11 10:59:33,646 module.py:617] default: "GET / HTTP/1.1" 200 -
INFO 2013-12-11 10:59:33,702 module.py:617] default: "GET /favicon.ico HTTP/1.1" 200 -
当我点击服务器时,我得到一个200响应,然而当我访问服务器时
http://localhost:8080/
我唯一看到的是可怕的死亡白色屏幕
dev服务器似乎没有任何错误日志记录
我的代码:
helloworld.php
<?php
echo 'Hello, World!';
我非常仔细地遵守了指示;在这一点上,我对他们都了如指掌
如有任何见解或建议,将不胜感激
/home/stephen/skc local/google/google\u appengine/dev\u appserver.py
--php_executable_path=/home/stephen/skc local/bin/php/home/stephen/code/google-php/helloworld
尝试将可执行文件从php
更改为phpcgi
。。所以它看起来像这样:
/home/stephen/skc local/google/google\u appengine/dev\u appserver.py
--php_executable_path=/home/stephen/skc local/bin/php cgi/home/stephen/code/google php/helloworld
/home/stephen/skc local/google/google\u appengine/dev\u appserver.py
--php_executable_path=/home/stephen/skc local/bin/php/home/stephen/code/google-php/helloworld
尝试将可执行文件从php
更改为phpcgi
。。所以它看起来像这样:
/home/stephen/skc local/google/google\u appengine/dev\u appserver.py
--php_executable_path=/home/stephen/skc local/bin/php cgi/home/stephen/code/google php/helloworld
<?php
echo 'Hello, World!';
application: helloworld
version: 1
runtime: php
api_version: 1
handlers:
- url: /.*
script: helloworld.php