PHP inbuilt server gives “CLI has stopped working”

天涯浪子 提交于 2019-12-30 12:25:11

问题


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

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.

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.

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


回答1:


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

  1. Download 5.5.1 Windows Binaries.
  2. Make new folder in {wamproot}/bin/php/ called "php5.5.1".
  3. Replace all occurrences of "5.4.3" in {wamproot}/wampmanager.ini with "5.5.1".
  4. Repeat step 3 for wampmanager.conf
  5. Update PATH environment variable


来源:https://stackoverflow.com/questions/17753910/php-inbuilt-server-gives-cli-has-stopped-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!