Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/265.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在端口8080上运行Google App Engine PHP_Php_Google App Engine - Fatal编程技术网

无法在端口8080上运行Google App Engine PHP

无法在端口8080上运行Google App Engine PHP,php,google-app-engine,Php,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

我正在尝试使用谷歌应用程序引擎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上使用谷歌chrome

这是我的helloworld.php


嗯。解决办法很简单。 我没有在我的ubuntu上安装apache服务器。 安装Apache服务器sudo apt get install apache2后,localhost:8080按预期工作

另外,谷歌在其文档的安装SDK部分没有提到任何关于安装Apache服务器的内容

看起来你安装了5.4。GAE仅支持5.5 您是否已完成GAE运行时扩展设置

python dev_appserver.py --php_executable_path=/usr/bin/php-cgi   **--php_gae_extension_path=/var/www/html/appengine-php-extension/modules/gae_runtime_module.so** /var/www/html/project
见:

如果以上几点都没有问题,那么可能是php代码错误。只需逐行调试即可


你启动独立开发服务器了吗?那么这个url上的PHP代码是什么?那可能会有一个error@Paul您所说的独立开发服务器是什么意思??我按照文档中的描述启动了服务器:google\u appengine/dev\u appserver.py-php\u executable\u path=php-5.4.15/installdir/bin/php-cgi appengine/helloworld/@Hanky Panky php文件中的代码只是为了回应Hello World!要使dev_appserver或GAE SDK正常工作,您不需要安装apache。
application: helloworld
version: 1
runtime: php
api_version: 1

handlers:
- url: /.*
script: helloworld.php
python dev_appserver.py --php_executable_path=/usr/bin/php-cgi   **--php_gae_extension_path=/var/www/html/appengine-php-extension/modules/gae_runtime_module.so** /var/www/html/project