phpstudy可以成功启动,但是接口无法请求,查了下日志,如下:
[Tue Feb 15 15:14:11.465792 2022] [core:warn] [pid 14716:tid 580] AH00098: pid file D:/phpstudy_pro/Extensions/Apache2.4.39/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Feb 15 15:14:11.468807 2022] [mpm_winnt:notice] [pid 14716:tid 580] AH00455: Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a mod_log_rotate/1.02 configured -- resuming normal operations
[Tue Feb 15 15:14:11.468807 2022] [mpm_winnt:notice] [pid 14716:tid 580] AH00456: Server built: Mar 27 2019 11:06:20
[Tue Feb 15 15:14:11.468807 2022] [core:notice] [pid 14716:tid 580] AH00094: Command line: 'D:\\phpstudy_pro\\COM\\..\\Extensions\\Apache2.4.39\\\\bin\\httpd.exe -d D:/phpstudy_pro/Extensions/Apache2.4.39'
[Tue Feb 15 15:14:11.472775 2022] [mpm_winnt:notice] [pid 14716:tid 580] AH00418: Parent: Created child process 15208
[Tue Feb 15 15:14:12.419916 2022] [mpm_winnt:notice] [pid 15208:tid 684] AH00354: Child: Starting 1024 worker threads.
查了很多资料有说更换php版本的,有说关闭扩展的,都没用,并且发现80端口的可以正常请求,自己定义的端口有问题,所以应该不是phpstudy 的问题,最后查看端口配置的时候重新保存了一下,360弹框询问是否允许更改,确认后就可以访问了,并且提交git的时候 显示.htaccess发生了变化。
总结:如果网上其他方法都尝试过都没能成功,就重新修改下非80端口的配置吧,可能是程序升级后,杀毒软件禁止了修改。
|