[英]Unable to run google app engine script with PHP
So, I'm trying to run the Hello World script but whenever I run dev_appserver.py
I hit a wall. 因此,我试图运行Hello World脚本,但是每当运行
dev_appserver.py
时,我都会碰壁。
Here's the error log from the script: 这是脚本中的错误日志:
$ appengine/dev_appserver.py --php_executable_path=/usr/local/bin/php-cgi HelloWorld
$ appengine / dev_appserver.py --php_executable_path = / usr / local / bin / php-cgi HelloWorld
...
...
ERROR 2016-03-29 12:57:30,588 php_runtime.py:348] The PHP runtime is not available Traceback (most recent call last): File "/Users//desktop/appengine/google/appengine/tools/devappserver2/php_runtime.py", line 344, in new_instance self._check_binaries(php_executable_path, gae_extension_path) File "/Users//desktop/appengine/google/appengine/tools/devappserver2/php_runtime.py", line 284, in _check_binaries cls._check_environment(php_executable_path, env) File "/Users//desktop/appengine/google/appengine/tools/devappserver2/php_runtime.py", line 259, in _check_environment raise _PHPEnvironmentError(check_process_stdout) _PHPEnvironmentError: No input file specified.
错误2016-03-29 12:57:30,588 php_runtime.py:348] PHP运行时不可用回溯(最近一次调用最近):文件“ / Users // desktop / appengine / google / appengine / tools / devappserver2 / php_runtime .py“,第344行,位于new_instance self._check_binaries(php_executable_path,gae_extension_path)文件“ /Users//desktop/appengine/google/appengine/tools/devappserver2/php_runtime.py”,第284行,位于_check_binaries cls._check_environment(php_executable ,env)_check_environment中的文件“ /Users//desktop/appengine/google/appengine/tools/devappserver2/php_runtime.py”,行259引发_PHPEnvironmentError(check_process_stdout)_PHPEnvironmentError:未指定输入文件。
As a background to my El Capitan setup... 作为我的El Capitan设置的背景...
I've previously updated PHP to 5.5 using: 我以前使用以下命令将PHP更新为5.5:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
But I've also downloaded via HomeBrew php54 and that's what should be running the php-cgi script I've posted in the executable path above. 但是我也通过HomeBrew php54下载了,这应该是运行在上面的可执行路径中发布的php-cgi脚本的内容。
Any thoughts? 有什么想法吗?
So turns out, the answer was pretty obvious - I'd installed the Go SDK rather than the PHP one! 事实证明,答案非常明显-我安装的是Go SDK,而不是PHP! Google's website scrolls to the wrong place when you click PHP.
当您单击PHP时,Google网站滚动到错误的位置。 Many hours wasted trying to fix this one - never mind.
浪费大量时间试图解决此问题-没关系。 Hope this helps another as simple as me!
希望这对我一样简单!
if you already installed google-cloud-sdk run this command : 如果您已经安装了google-cloud-sdk,请运行以下命令:
gcloud components install app-engine-php-darwin gcloud组件安装app-engine-php-darwin
you won't need to specify that path after this 在此之后,您无需指定该路径
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.