Google App Engine启动错误:“C:/ Documents and Settings / userName / php”是一个目录,需要yaml配置文件 [英] Google App Engine Launch error: "C:/Documents and Settings/userName/php" is a directory and a yaml configuration file is required

查看:126
本文介绍了Google App Engine启动错误:“C:/ Documents and Settings / userName / php”是一个目录,需要yaml配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对GAE完全陌生,我正尝试安装并开始使用GAE PHP SDK。



我无法按照第一个 Hello,World!示例来启动服务器。

由于我是新人,我似乎无法弄清楚我哪里出错了。我得到了我一直在输入的所有文件路径和说明。



我使用Windows XP 32位。我按照指示安装了Python 2.7.5 在Windows上安装PHP SDK 。我在 c:\文档和设置\用户名\ 中提取了PHP和 Google Appengine



这些是我的文件路径:


  • PHP: C:\文档和设置\\ userName\php

  • 谷歌应用程序引擎: c:\文档和设置\用户名\ google_appengine
  • helloworld测试文件和yaml文件app.yaml: c:\documents and settings\userName\helloworld



在命令行中,我输入按照指示(在第一个 Hello,World!示例中)

  C:\ Documents and Settings\userName> google_appengine / dev_appserver.py--php_executable_path =C:/ Documents and Settings / userName / phphelloworld / 

,并且出现以下错误:


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

回溯是(包括最后的错误):


文件C:\ Documents and Settings\userName\google_appengine\dev_appserver.py,第182行,位于run_file(文件,globals())

文件C:\ Documents and Settings\userName\google_appengine\dev_appserver.py,第178行,在_run_file execfile(script_path,globals)

在main()
文件C:\Documents and Settings\userName\google_appengine\google\appengine\tools\devappserver2\devappserver2.py,行695,文件 C: \\文档和设置\用户名\ google_appengine\google\appengine\tools\devappserver2\devappserver2.py,第688行,在主dev_server.start(选项)

文件C :\ Documents and Settings\userName\google_appengine\google\appengine\tools\devappserver2\devappserver2.py,第525行,在启动options.yaml_files)

文件C :\ Documents and Settings\userName\google_appengine\google\appengine\tools\devappserver2\application_configuration.py,第541行,在init yaml_path中)

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



- php_executable_path 应该是php-cgi二进制文件的路径,而不是它驻留的文件夹。


I am totally new to GAE and I am trying to install and start using GAE PHP SDK.

I am unable to follow the instructions on the very first Hello, World! example to start the server.

Since I am new I cannot seem to figure out where I am going wrong. I got all the files paths and instructions that I have been typing.

I am using Windows XP 32 bit. I have installed Python 2.7.5 as instructed (Installing the PHP SDK on Windows). I extracted the PHP and Google Appengine in c:\documents and settings\username\.

These are my file paths :

  • PHP: C:\documents and settings\userName\php
  • google app engine: c:\documents and settings\userName\google_appengine
  • helloworld test files and yaml file "app.yaml": c:\documents and settings\userName\helloworld

On the command line I typed as instructed (in the very first Hello, World! example)

C:\Documents and Settings\userName> "google_appengine/dev_appserver.py" --php_executable_path = "C:/Documents and Settings/userName/php" helloworld/

and I get the following error:

google.appengine.tools.devappserver2.errors.InvalidAppConfigError: "C:/Documents and Settings/userName/php" is a directory and a yaml configuration file is required

Traceback is (including error at the end):

File "C:\Documents and Settings\userName\google_appengine\dev_appserver.py", line 182, in run_file(file, globals())
File "C:\Documents and Settings\userName\google_appengine\dev_appserver.py", line 178, in _run_file execfile(script_path, globals)
File "C:\Documents and Settings\userName\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 695, in main() File "C:\Documents and Settings\userName\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 688, in main dev_server.start(options)
File "C:\Documents and Settings\userName\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 525, in start options.yaml_files)
File "C:\Documents and Settings\userName\google_appengine\google\appengine\tools\devappserver2\application_configuration.py", line 541, in init yaml_path)
google.appengine.tools.devappserver2.errors.InvalidAppConfigError: "C:/Documents and Settings/userName/php" is a directory and a yaml configuration file is required

解决方案

The parameter --php_executable_path should be the path to the php-cgi binary, not the folder it resides in.

这篇关于Google App Engine启动错误:“C:/ Documents and Settings / userName / php”是一个目录,需要yaml配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆