I downloaded MAMP 4.1 on my Mac; by default, the only PHP versions I can use are 7.0.15 and 7.1.1
How can I use PHP 5.6?
I tried the solution here Which says I should rename the versions I don't want to use to something else. But it didn't work for me.
I am using MAMP version 4.5. I changed php version on the httpd.conf:
I wanted to the version to php7.1 so here is what I did:
Original line:
Updated line:
It worked for me!
This is how my 'php' folder look like
Created another folder 'php-versions' and moved all versions, and kept only two version which I wanted in the 'php' folder. And restarted the Mamp, go the version '5.6.31'
As mentioned by @Scott in the comments under your question:
And the answer in that links is:
In my case (and similarly yours), I renamed the folder named
php7.1.1
to_php7.1.1
and now MAMP shows me5.6.30
and7.0.15
in the preferences pane.