PHP 内置服务器显示“CLI 已停止工作" [英] PHP inbuilt server gives "CLI has stopped working"

查看:61
本文介绍了PHP 内置服务器显示“CLI 已停止工作"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 PHP 内置服务器功能 php -S localhost:8888 为我的项目运行测试服务器.当我使用它时,出现错误:

I am trying to use the PHP inbuilt server feature php -S localhost:8888 to run a testing server for a project of mine. When I use it, an error appears:

在事件日志中,出现以下错误:

In the event log, the following error appears:

Faulting application name: php.exe, version: 5.4.3.0, time stamp: 0x4fb15e42
Faulting module name: php5ts.dll, version: 5.4.3.0, time stamp: 0x4fb15f2c
Exception code: 0xc0000005
Fault offset: 0x0000000000119940
Faulting process id: 0x1a40
Faulting application start time: 0x01ce84b22074fc3f
Faulting application path: C:\wamp\bin\php\php5.4.3\php.exe
Faulting module path: C:\wamp\bin\php\php5.4.3\php5ts.dll
Report Id: 5e31c3a5-f0a5-11e2-b720-90e6bab78fd4

我已经将 php.ini 中的每个 PHP 扩展 (;) 一一注释掉了,没有一个有什么区别.我什至尝试注释掉每个 PHP 扩展,但仍然没有结果.我已经重新安装 WAMP 并将其更新到最新版本,但这没有任何结果.

I have commented out (;) every PHP extension in php.ini one by one, and none of them made a difference. I even tried commenting every PHP extension out, but still no result. I have re-installed WAMP and updated it to the latest version, but this yields no results.

我没有安装或运行 IIS,也没有在端口 80 上运行任何其他服务(除了 WAMP),也没有在端口 80 上运行任何服务.

I do not have IIS installed or running, or any other services (aside from WAMP) running on port 80, and no services running on port 80.

我的 PHP 版本是 5.4.3,Apache 是 2.4.2,在 WAMP 2.2e、Windows 7 64 位上运行.

My PHP version is 5.4.3, Apache is 2.4.2 running on WAMP 2.2e, Windows 7 64-bit.

推荐答案

解决方案(归功于 DaveRandom)是按照以下步骤将 PHP 更新到 5.5.1 版:

Solution (credit goes to DaveRandom) was to update PHP to version 5.5.1 following these steps:

  1. 下载 5.5.1 Windows 二进制文件.
  2. 在 {wamproot}/bin/php/中创建名为php5.5.1"的新文件夹.
  3. 将 {wamproot}/wampmanager.ini 中所有出现的5.4.3"替换为5.5.1".
  4. 对 wampmanager.conf 重复第 3 步
  5. 更新PATH环境变量

这篇关于PHP 内置服务器显示“CLI 已停止工作"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆