且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将其他PHP版本添加到MAMP

更新时间:2023-02-22 21:03:22

在MAMP论坛中找到了快速解决方案.

Found a quick fix in the MAMP forums.

基本上,MAMP似乎只允许显示2个版本的PHP.快速修复,重命名您不用担心的文件夹,对我而言,这意味着在/Applications/MAMP/bin/php/php5.4.10_X文件夹中添加"X".现在5.2.17和5.3.20出现在mamp首选项中.

Basically it seems MAMP is only allowing 2 versions of PHP to show up. Quick fix, rename the folders you're not bothered about using, for me this meant adding an "X" to my /Applications/MAMP/bin/php/php5.4.10_X folder. Now 5.2.17 and 5.3.20 show up in the mamp prefs.

完成!

编辑-如果所需的PHP版本不在PHP文件夹中,则可以从

Edit - if the PHP version you require isn't in the PHP folder, you can download the version you require from http://www.mamp.info/en/downloads/

编辑-MAMP似乎不再在下载页面上提供指向其他PHP版本的链接.使用WayBackMachine https://web.archive. org/web/20180131074715/http://www.mamp.info/en/downloads/

Edit - MAMP don't seem to provide links to the alternative PHP versions on the download page any more. Use WayBackMachine https://web.archive.org/web/20180131074715/http://www.mamp.info/en/downloads/