gae php helloworld在gce debian和centos实例上给出了本地服务器的白屏

 小果康康维五_469 发布于 2023-02-11 15:19

我试图在gce debian和/或gce centos实例上运行gae php hellowrold. https://developers.google.com/appengine/docs/php/gettingstarted/helloworld

在gce debian和gce centos系统上运行时,helloworld示例生成PHP的白屏死机.每个实例都是在过去48小时内创建的新构建.

我的最新版本是centos所以我将描述这个环境.

蟒蛇:

[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:

[stephen@skc-php-dev-centos-00 bin]$ ./php -v
PHP 5.4.15 (cli) (built: Dec 10 2013 20:31:32) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[stephen@skc-php-dev-centos-00 bin]$ 

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/ 

我唯一看到的是可怕的PHP白屏死机.

似乎开发服务器没有任何错误记录.

我的代码:helloworld.php



的app.yaml

application: helloworld
version: 1
runtime: php
api_version: 1

handlers:
- url: /.*
  script: helloworld.php

我非常密切地遵循了指示; 在这一点上,我最了解他们.

任何见解或建议将不胜感激.

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有