我在Linux上安装了WordPress,MySQL,PHP SDK(Ubuntu 13.10)并根据google-appengine-help-page配置了所有内容
但是,部署后我也无法在本地环境中访问wordpress。
当我在终端中从我的主目录运行以下内容,其中APPLICATION_DIRECTORY是prsent
google_appengine/dev_appserver.py APPLICATION_DIRECTORY
我收到错误,输出是....
INFO 2014-04-14 05:55:59,407 sdk_update_checker.py:242] Checking for updates to the SDK.
INFO 2014-04-14 05:56:00,904 sdk_update_checker.py:258] Update check failed: HTTP Error 404: Not Found
INFO 2014-04-14 05:56:00,927 api_server.py:171] Starting API server at: http://localhost:44134
INFO 2014-04-14 05:56:00,952 dispatcher.py:182] Starting module "default" running at: http://localhost:8080
ERROR 2014-04-14 05:56:00,953 php_runtime.py:223] The PHP runtime is not available
Traceback (most recent call last):
File "/home/hkc/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 219, in new_instance
self._check_environment(php_executable_path)
File "/home/hkc/google_appengine/google/appengine/tools/devappserver2/php_runtime.py", line 148, in _check_environment
'flag (%s) does not exist.' % php_executable_path)
_PHPBinaryError: The path specified with the --php_executable_path flag () does not exist.
INFO 2014-04-14 05:56:00,954 admin_server.py:117] Starting admin server at: http://localhost:8000
错误显示php_executable_path不存在。我的主目录下有php-5.4.25,google-appengine,APPLICATION_DIRECTORY。
当我打开localhost:8080(之前添加http://)时,显示
The path specified with the --php_executable_path flag () does not exist.
我该如何纠正?
答案 0 :(得分:1)
--php_executable_path
应该指向安装了Ubuntu的php-cgi。这可能是/usr/bin/php5-cgi