我對GAE完全陌生,我嘗試安裝並開始使用GAE PHP SDK。Google App Engine啓動錯誤:「C:/ Documents and Settings/userName/php」是一個目錄,需要一個yaml配置文件
我無法按照the very first Hello, World! example上的說明啓動服務器。
由於我是新的,我似乎無法弄清楚我哪裏出錯了。我得到了我一直在輸入的所有文件路徑和說明。
我正在使用Windows XP 32位。我已經安裝Python 2.7.5 as instructed (Installing the PHP SDK on Windows)。我提取了PHP和Google Appengine in c:\documents and settings\username\
。
這些都是我的文件路徑:
- PHP:
C:\documents and settings\userName\php
- 谷歌應用程序引擎:
c:\documents and settings\userName\google_appengine
- HelloWorld的測試文件和YAML文件 「的app.yaml」:
c:\documents and settings\userName\helloworld
在我輸入的命令行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/
,我得到以下錯誤:
google.appengine.tools.devappserver2.errors.InvalidAppConfigError: "C:/Documents and Settings/userName/php" is a directory and a yaml configuration file is required
回溯是(末尾包括錯誤):
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