Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.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
谷歌应用程序引擎启动错误:";C:/Documents and Settings/userName/php";是一个目录,需要一个yaml配置文件_Php_Google App Engine_Python 2.7_Sdk - Fatal编程技术网

谷歌应用程序引擎启动错误:";C:/Documents and Settings/userName/php";是一个目录,需要一个yaml配置文件

谷歌应用程序引擎启动错误:";C:/Documents and Settings/userName/php";是一个目录,需要一个yaml配置文件,php,google-app-engine,python-2.7,sdk,Php,Google App Engine,Python 2.7,Sdk,我是GAE的新手,我正在尝试安装并开始使用GAE PHP SDK 我无法按照上的说明启动服务器 因为我是新来的,所以我似乎不知道自己错在哪里。我得到了我输入的所有文件路径和说明 我正在使用Windows XP 32位。我已经安装了Python 2.7.5。我在c:\documents and settings\username\中提取了PHP和Google Appengine 以下是我的文件路径: PHP:C:\documents and settings\userName\PHP 谷歌应用程

我是GAE的新手,我正在尝试安装并开始使用GAE PHP SDK

我无法按照上的说明启动服务器

因为我是新来的,所以我似乎不知道自己错在哪里。我得到了我输入的所有文件路径和说明

我正在使用Windows XP 32位。我已经安装了Python 2.7.5。我在
c:\documents and settings\username\
中提取了PHP和Google Appengine

以下是我的文件路径:

  • PHP:
    C:\documents and settings\userName\PHP
  • 谷歌应用程序引擎:
    c:\documents and settings\userName\google\u appengine
  • helloworld测试文件和yaml文件“app.yaml”:
    c:\documents and settings\userName\helloworld
在我输入的命令行上

我得到以下错误:

google.appengine.tools.devappserver2.errors.InvalidAppConfigError:“C:/Documents and Settings/userName/php”是一个目录,需要一个yaml配置文件

回溯为(包括结尾处的错误):

文件“C:\Documents and Settings\userName\google\u appengine\dev\u appserver.py”,第182行,在运行文件(文件,globals())中
文件“C:\Documents and Settings\userName\google\u appengine\dev\u appserver.py”,第178行,在文件execfile(脚本路径,全局)中
文件“C:\Documents and Settings\userName\google\u appengine\google\appengine\tools\devappserver2\devappserver2.py”,第695行,在main()中 文件“C:\Documents and Settings\userName\google\appengine\google\appengine\tools\devappserver2\devappserver2.py”,第688行,位于主开发服务器.start(选项)
文件“C:\Documents and Settings\userName\google\u appengine\google\appengine\tools\devappserver2\devappserver2.py”,第525行,在start options.yaml\u files中)
文件“C:\Documents and Settings\userName\google\appengine\google\appengine\tools\devappserver2\application\u configuration.py”,第541行,在init yaml\u路径中)
google.appengine.tools.devappserver2.errors.InvalidAppConfigError:“C:/Documents and Settings/userName/php”是一个目录,需要一个yaml配置文件

参数
--php\u executable\u path
应该是php cgi二进制文件的路径,而不是它所在的文件夹。

参数
--php\u executable\u path
应该是php cgi二进制文件的路径,而不是它所在的文件夹。

:

C:\Documents and Settings\userName> "google_appengine/dev_appserver.py" --php_executable_path = "C:/Documents and Settings/userName/php" helloworld/
google_appengine/dev_appserver.py --php_executable_path=<path to php-cgi> helloworld/
C:\Documents and Settings\userName> "google_appengine/dev_appserver.py" --php_executable_path="C:/Documents and Settings/userName/php/php-cgi.exe" helloworld/