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

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

本文介绍了如何将其他PHP版本添加到MAMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我仅有的MAMP的当前版本只有php 5.2.17和5.4.4.我需要5.3.X.有没有一种方法可以添加可以在MAMP接口php首选项中选择的其他版本?这是针对MAMP的免费版本,而不是MAMP PRO.

The current version of MAMP that I have only has php 5.2.17 and 5.4.4. I need 5.3.X. Is there a way to add additional versions that can be selected in the MAMP interfaces php preferences? This is for the free version of MAMP, not MAMP PRO.

谢谢

推荐答案

在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文件夹中,则可以从 http://www.mamp.info/en/downloads/

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/

这篇关于如何将其他PHP版本添加到MAMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 23:51