0

Has anybody been able to successfully downgrade the php version preinstalled with the macOS High Sierra server app?

Preinstalled PHP version is 7 but I'm running some old PHP apps that require PHP version 5.

I can't find any recent answers on the topic.

Can anybody help?

Cybervanes
  • 29
  • 9

1 Answers1

2

I do not recommend downgrading the version, I would install PHP 5.6 using homebrew and then just having both versions installed. brew install php56

This will be symlinked from /usr/local/Cellar/php56 into /usr/local/bin and as long as this in in your $PATH then you should be able to use PHP 5.6 without overriding 7

rollstuhlfahrer
  • 3,988
  • 9
  • 25
  • 38
meeeko
  • 36
  • 1
  • 3