【发布时间】:2013-06-08 02:39:34
【问题描述】:
我正在尝试使用 google app engine php sdk 。
我正在阅读此文档https://developers.google.com/appengine/docs/php/gettingstarted/helloworld。
它说我应该去http://localhost:8080/ 看看我的helloworld 脚本。
但是浏览器遇到以下服务器错误:
Server error
The website encountered an error while retrieving http://localhost:8080/. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
我在 Ubuntu 12.04 上使用谷歌浏览器。
这是我的helloworld.php
<?php
echo "Hello World !";
?>
还有我的app.yaml:
application: helloworld
version: 1
runtime: php
api_version: 1
handlers:
- url: /.*
script: helloworld.php
【问题讨论】:
-
您是否启动了独立开发服务器?
-
那么那个 url 上的 PHP 代码是什么?那可能有错误
-
@Paul 独立开发服务器是什么意思?我按照文档中的描述启动了服务器:
google_appengine/dev_appserver.py --php_executable_path=php-5.4.15/installdir/bin/php-cgi appengine/helloworld/ -
@Hanky Panky PHP文件中的代码只是为了回显
Hello World!
标签: php google-app-engine