XAMPP有两种模式, 一种是不建立服务的, 那么需要点一下Apache才启动
另一种是建立服务的, 开机自动启动Apache.
但是建立服务以后可能导致COM组建不正常, 抛出如下错误
[2147614729]com_exception in File.php line 555
.....
$word->ActiveDocument;
解决方法是不使用XAMPP的服务模式.
原因可能是服务模式使用的不是系统默认账号, 以至于COM不认识了.
XAMPP有两种模式, 一种是不建立服务的, 那么需要点一下Apache才启动
另一种是建立服务的, 开机自动启动Apache.
但是建立服务以后可能导致COM组建不正常, 抛出如下错误
[2147614729]com_exception in File.php line 555
.....
$word->ActiveDocument;
解决方法是不使用XAMPP的服务模式.
原因可能是服务模式使用的不是系统默认账号, 以至于COM不认识了.
Xampp 7.4+安装好后,启动Apache可能发生如下报错
(安装好之后,我什么都没有做,并且也没装IIS)
15:30:37 [Apache] Error: Apache shutdown unexpectedly.
15:30:37 [Apache] This may be due to a blocked port, missing dependencies,
15:30:37 [Apache] improper privileges, a crash, or a shutdown by another method.
15:30:37 [Apache] Press the Logs button to view error logs and check
15:30:37 [Apache] the Windows Event Viewer for more clues
15:30:37 [Apache] If you need more help, copy and post this
15:30:37 [Apache] entire log window on the forums
有人说是80或443端口被占用了,可是我都没有装IIS,并没有占用这2个端口。
上面的报错说让看log
在Xampp面板->apache->logs按钮->Apache(error.log)中,可以看到,内部报错如下
PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0
这是一个C++支持包的问题
解决方法是
点这个网址:https://visualstudio.microsoft.com/zh-hans/downloads/
然后搜索“Microsoft Visual C++ Redistributable for Visual Studio 2019”
然后下载并安装。
如下图
XAMPP在Windows下可能无法卸载, 这是一个bug.
有人说是因为安装了MySQL或Apache的服务, 但是在卸载了服务后, 仍然不可以卸载.
解决方法是重装系统.