Google App Engine发布RuntimeError:未知运行时'php';支持的运行时是'自定义'

时间:2016-02-09 16:31:32

标签: php wordpress google-app-engine sdk

我正在尝试在Google App Engine上部署WordPress,然后我跟着this link,但是当我尝试使用启动器启动它时,启动失败,我在日志控制台中收到以下错误:

2016-02-09 17:15:23 Running command: "['C:\\Python27\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=9080', '--admin_port=8001', u'C:\\appengine']"
INFO     2016-02-09 17:15:36,940 devappserver2.py:769] Skipping SDK update check.
INFO     2016-02-09 17:15:37,907 api_server.py:205] Starting API server at: http://localhost:55370
INFO     2016-02-09 17:15:37,907 api_server.py:648] Applying all pending transactions and saving the datastore
INFO     2016-02-09 17:15:37,907 api_server.py:651] Saving search indexes
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 83, in <module>
    _run_file(__file__, globals())
  File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 79, in _run_file
    execfile(_PATHS.script_file(script_name), globals_)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 1040, in <module>
    main()
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 1033, in main
    dev_server.start(options)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 824, in start
    self._dispatcher.start(options.api_host, apis.port, request_data)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\dispatcher.py", line 193, in start
    _module, port = self._create_module(module_configuration, port)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\dispatcher.py", line 278, in _create_module
    threadsafe_override=threadsafe_override)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\module.py", line 1155, in __init__
    super(AutoScalingModule, self).__init__(**kwargs)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\module.py", line 537, in __init__
    self._module_configuration)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\devappserver2\module.py", line 229, in _create_instance_factory
    sorted(repr(k) for k in runtime_factories.FACTORIES))))
RuntimeError: Unknown runtime 'php'; supported runtimes are 'custom', 'go', 'java', 'java7', 'php55', 'python', 'python-compat', 'python27'.
2016-02-09 17:15:38 (Process exited with code 1)

我很困惑,因为我已经按照所有步骤操作,似乎无法找到问题。

1 个答案:

答案 0 :(得分:1)

错误的一部分

  

RuntimeError:未知运行时&#39; php&#39 ;;支持的运行时包括&#39; custom&#39;&#39; go&#39;,&#39; java&#39;,&#39; java7&#39;,&#39; php55&#39;,&# 39; python&#39;,&#39; python-compat&#39;,&#39; python27&#39;。

表示您的app.yaml文件未正确设置。目前Google App Engine仅支持PHP 5.5,因此您必须选择

runtime: php55 

使用PHP运行您的应用程序。