简体   繁体   English

Windows 上的 MAMP 5.0.5:PHP 8.1.0 不起作用

[英]MAMP 5.0.5 on Windows : PHP 8.1.0 doesn't work

I just migrated my old MAMP version on Windows. I uninstalled properly MAMP 4.2.0 and installed MAMP 5.0.5.我刚刚在 Windows 上迁移了我的旧 MAMP 版本。我正确卸载了 MAMP 4.2.0 并安装了 MAMP 5.0.5。 I went into the MAMP preferences / PHP tab and changed from PHP version 8.0.1 to version 8.1.0.我进入 MAMP 首选项 / PHP 选项卡并将 PHP 版本 8.0.1 更改为版本 8.1.0。 After starting the servers, I tried to open the WebStart page and I got a blank screen with lot of errors in php_errors.log file like: "PHP Startup: Unable to load dynamic library *.dll".启动服务器后,我尝试打开 WebStart 页面,但出现空白屏幕,php_errors.log 文件中有很多错误,例如:“PHP 启动:无法加载动态库 *.dll”。 The DLL are all in the specified directory. DLL都在指定目录下。

If I change to PHP 8.0.1, everything works fine.如果我更改为 PHP 8.0.1,一切正常。

I looked at all the log files and tried PHP 8.0.1 which works fine.我查看了所有日志文件并尝试了 PHP 8.0.1,效果很好。 Trying again with PHP 8.1.0 leads to the same errors.再次尝试使用 PHP 8.1.0 会导致相同的错误。

I finally found an old php installation, apart of MAMP on my PC, which was conflicting MAMP.我终于找到了一个旧的 php 安装,除了我 PC 上的 MAMP,它与 MAMP 冲突。 I desinstalled it and now it works fine.我卸载了它,现在它工作正常。 Thank you mmh4all for your hint.谢谢 mmh4all 的提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM