简体   繁体   中英

How to tell MAMP which version of PHP to use?

I've installed PECL for PHP on MAMP. Unfortunately, it is using php 5.3.6 which is different form the most recent version of PHP(which is 5.4.10 today). When looking a phpinfo, I see that it is not loading the php.ini file I want (5.3.6), it is loading the latest one (which is normal)

How to tell MAMP which version of PHP to use ?

Thanks

Check your Prefences pane. Should you want specific versions, you will need to install them manually or take a look at this thread .

在此处输入图片说明

1 - Download the desired version of PHP here (listed on the right) .

2 - Two cases:

Either you have Mamp pro and you can change it through the user interface or you have the free version of Mamp and can achieve that, renaming each folder with for example .DIS at the end at /Applications/MAMP/bin/php/ and just not renaming any version of php, plus the one that you are going to import and consequently copy-paste. This is because the free version of Mamp only allows you to see the two highest version of php through the user interface ( for more information watch this video tutorial which will give you more details about the process to follow ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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