php - Google App Engine SDK 更新后无法通过 PHPStorm 8 运行本地服务器?

标签 php google-app-engine phpstorm

将 Google App Engine SDK 更新到 1.9.20 后,我无法通过 PHPStorm 8 运行本地服务器。我收到以下错误:

The PHP interpreter specified with the --php_executable_path flag 

("/usr/local/bin/php-cgi") is not compatible with the App Engine PHP development environment.

Unable to load GAE runtime module at /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php55/gae_runtime_module.so

我在本地运行以下版本

php --version

PHP 5.5.22 (cli) (built: Mar 10 2015 14:17:46) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
    with Xdebug v2.2.7, Copyright (c) 2002-2015, by Derick Rethans

php-cgi --version

PHP 5.5.22 (cgi-fcgi) (built: Mar 10 2015 14:17:49)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
    with Xdebug v2.2.7, Copyright (c) 2002-2015, by Derick Rethans

enter image description here 这是我通过 PHPStorm 得到的错误:

ERROR    2015-05-18 11:30:04,783 php_runtime.py:353] The PHP runtime is not 

available
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 349, in new_instance
    self._check_binaries(php_executable_path, gae_extension_path)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 290, in _check_binaries
    cls._check_gae_extension(php_executable_path, gae_extension_path, env)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 252, in _check_gae_extension
    gae_extension_path)
_PHPEnvironmentError: Unable to load GAE runtime module at /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php55/gae_runtime_module.so

按我的理解,PHP 5.5版本应该是支持的,问题出在哪里?

最佳答案

假设您在 Mac 上运行,只需删除 PHPStorm 中的“Path to php-cgi executable”设置即可解决问题。

关于php - Google App Engine SDK 更新后无法通过 PHPStorm 8 运行本地服务器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30301651/

相关文章:

python - google.appengine.api.yaml_errors.EventListenerYAMLError : mapping values are not allowed here

python - 无法导入模块 appengine.ext

javascript - Google App Engine Python、Jquery 和 Javascript 用于级联选择

ubuntu - PhpStorm,Ubuntu 16.04 中的透明窗口错误

php - 使用 PHPStorm 使用 XDebug 调试 Codeigniter

javascript - 从 facebook 页面 url 中提取页面 id

php - MySQL 查询 w/2 个表以获得所需的结果

javascript - _POST不抓取数据

Windows 本地主机上的 PhpStorm 和 xdebug 探查器设置

php - MySql NOT EXIST 或 NOT IN with LIMIT 查询