我一直在尝试在xampp上升级到PHP7,但是当我尝试重启Apache时,我得到:
0:38:00 [Apache] Attempting to start Apache app...
0:38:01 [Apache] Status change detected: running
0:38:01 [Apache] Status change detected: stopped
0:38:01 [Apache] Error: Apache shutdown unexpectedly.
0:38:01 [Apache] This may be due to a blocked port, missing dependencies,
0:38:01 [Apache] improper privileges, a crash, or a shutdown by another method.
0:38:01 [Apache] Press the Logs button to view error logs and check
0:38:01 [Apache] the Windows Event Viewer for more clues
0:38:01 [Apache] If you need more help, copy and post this
0:38:01 [Apache] entire log window on the forums
我已经更新了: httpd-xampp.conf具有正确的路径和命名。但没有运气。
还尝试过切换端口,并且没有Skype。我不认为这是一个端口问题,因为当我使用php5时一切正常。这里建议的一切:
Apache日志:
[Tue Mar 21 02:48:54.551995 2017] [core:notice] [pid 10852:tid 280] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Tue Mar 21 02:48:54.987020 2017] [mpm_winnt:notice] [pid 10852:tid 280] AH00418: Parent: Created child process 10256
[Tue Mar 21 02:48:55.611056 2017] [ssl:warn] [pid 10256:tid 292] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 21 02:48:55.927074 2017] [ssl:warn] [pid 10256:tid 292] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 21 02:48:56.062081 2017] [mpm_winnt:notice] [pid 10256:tid 292] AH00354: Child: Starting 150 worker threads.
已经尝试过这里提到的解决方案: error running apache after xampp install
但也没有运气。
答案 0 :(得分:1)
根据本指南,我将xampp php从5.4升级到7: https://www.youtube.com/watch?v=cdR8qHXpyHE
Apache重启后我遇到了同样的错误。 我编辑了httpd-xampp.conf:更改了php7相关内容的所有php5内容。 然后我试着再次启动apache。
Apache已经开始了。 希望这有帮助!
BR, 勒莱