dongtao9158 2014-04-14 06:09
浏览 46
已采纳

WordPress没有在本地环境中运行,为Google应用引擎开发

I have installed the WordPress, MySQL,PHP SDK on Linux (Ubuntu 13.10) and configure everything according to google-appengine-help-page

But, I can't access the wordpress in local environment also after the deployment.

when I run the following, in the terminal, from my home directory, where APPLICATION_DIRECTORY IS prsent

google_appengine/dev_appserver.py APPLICATION_DIRECTORY

I get error , the output is....

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

The error shows that php_executable_path does not exist. I have the php-5.4.25, google-appengine, APPLICATION_DIRECTORY all under my, home directory.

When I open localhost:8080 (added http:// before that), it shows,

The path specified with the --php_executable_path flag () does not exist.

How can I correct this ?

  • 写回答

1条回答 默认 最新

  • dongzhilian0188 2014-04-15 09:04
    关注

    The --php_executable_path should point to a php-cgi installed with Ubuntu. This is likely somewhere like /usr/bin/php5-cgi

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭