我的主机是Windows7专业版,下载的XAMPP和PhpStorm都是官网最新版本,下面就来讲述一下在配置环境的时候遇到的问题和解决的办法。
一,XAMPP 遇到的的问题:
1,启动Apache时缺少api-ms-win-crt-runtimel1-1-0.dll;
解决办法:
参考:https://blog.csdn.net/huqiao1206/article/details/50768481#更新到win7-sp1;
升级系统至Windows7 sp1 后安装VC redit.exe 即可解决问题
2,启动Apache时报出错误:
18:22:07 [Apache] Error: Apache shutdown unexpectedly.
18:22:07 [Apache] This may be due to a blocked port, missing dependencies,
18:22:07 [Apache] improper privileges, a crash, or a shutdown by another method.
18:22:07 [Apache] Press the Logs button to view error logs and check
18:22:07 [Apache] the Windows Event Viewer for more clues
18:22:07 [Apache] If you need more help, copy and post this
18:22:07 [Apache] entire log window on the forums
问题主要就是端口被占用,两种解决办法:
(1)改变Apace所需要的端口(80和443)
在httpd.conf和httpd-ssl.conf中把"Listen"和"ServerName localhost"后的端口号改写即可。
(2)将占用端口的进程关闭
二,PhpStorm
1,激活:
参考:https://blog.csdn.net/voke_/article/details/78794567
命令:-javaagent:D:\Program Files\JetBrains\PhpStorm 2018.1.5\lib\JetbrainsCrack.jar