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 fx2n系列plc的自控成型机模拟
  • ¥15 时间序列LSTM模型归回预测代码问题
  • ¥50 使用CUDA如何高效的做并行化处理,是否可以多个分段同时进行匹配计算处理?目前数据传输速度有些慢,如何提高速度,使用gdrcopy是否可行?请给出具体意见。
  • ¥15 基于STM32,电机驱动模块为L298N,四路运放电磁传感器,三轮智能小车电磁组电磁循迹(两个电机,一个万向轮),如何通过环岛的原理及完整代码
  • ¥20 机器学习或深度学习问题?困扰了我一个世纪,晚来天欲雪,能饮一杯无?
  • ¥15 c语言数据结构高铁订票系统
  • ¥15 关于wkernell.PDB加载的问题,如何解决?(语言-c#|开发工具-vscode)
  • ¥100 某宝多次访问被拒绝,求解
  • ¥15 (标签-STM32|关键词-智能小车)
  • ¥20 关于#stm32#的问题,请各位专家解答!