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 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀