How to tell MAMP which version of PHP to use?
Asked Answered
M

2

5

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

Milks answered 2/4, 2013 at 11:43 Comment(1)
Are you in this case ? forum.mamp.info/viewtopic.php?f=6&t=16801Olympus
A
13

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

enter image description here

Alodium answered 2/4, 2013 at 11:46 Comment(2)
Thanks, but unfortunately, the PHP version I'm looking for is not listed there. How to fix that ? I've been checking your link, it doesn't describe a solution for what I'm loking to doMilks
Check the downloads page. mamp.info/en/downloads/index.html - I think you need MAMP Pro. Unless you want to fiddle with your Applications/MAMP/bin/php folder.Alodium
T
1

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).

Therese answered 25/1, 2016 at 14:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.