【问题标题】:wamp with two php versions older version not working带有两个 php 版本的 wamp 旧版本不起作用
【发布时间】:2013-07-10 05:21:40
【问题描述】:

我刚刚安装了带有 PHP 5.3.13 和 PHP 5.2.2 两个版本的 WAMP

PHP 5.3.13 可以找到,但在 WAMP 控制器中,如果我切换 PHP 版本,我的 localhost 不起作用。我什至重新启动了 WAMP 并检查了 Apache 错误日志并看到了这个错误:

[Thu Jul 11 15:22:22 2013] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Jul 11 15:22:22 2013] [notice] Child 5676: Exit event signaled. Child process is ending.
[Thu Jul 11 15:22:23 2013] [notice] Child 5676: Released the start mutex
[Thu Jul 11 15:22:24 2013] [notice] Child 5676: All worker threads have exited.
[Thu Jul 11 15:22:24 2013] [notice] Child 5676: Child process is exiting
[Thu Jul 11 15:22:24 2013] [notice] Parent: Child process exited successfully.

这是什么意思?我该怎么做才能修复它?

【问题讨论】:

  • 该日志仅显示启动的关闭事件 - 不是错误。
  • 尝试通过命令行而不是通过 WAMP 启动 apache (httpd),这样你更有可能得到一个有用的错误。
  • 如何通过 cmd 启动 wamp?
  • 我在 cmd 中运行 NET Start wampapache 并且无法启动 wampapache 服务。 :(
  • 尝试定位 Apache 安装目录。然后寻找 Apache>>Bin>>httpd.exe 从命令提示符运行这个文件,看看你是否得到错误。

标签: php apache wamp


【解决方案1】:

特定的 PHP 版本似乎存在问题。所以,你可以尝试一些事情。

  • 检查是否安装了所需版本的 Microsoft Visual C++。如果是 PHP 5.2.x,我猜需要的是 VC6 (x86)

  • 检查您是否使用了正确版本的 Apache 处理程序。 Apache Handler 对于每个版本的 PHP 都是不同的,不应该在不同的版本中使用..

  • 尝试从命令提示符运行 Apache httpd.exe,看看是否出现错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-10-15
    • 1970-01-01
    • 2021-05-29
    • 1970-01-01
    • 1970-01-01
    • 2012-09-09
    • 2020-04-13
    相关资源
    最近更新 更多