0

I'm using MAMP's CGI PHP so that each site can use its own PHP version... however, the CLI is stuck at MAMP's default PHP version, whichever I have selected. This defeats the whole purpose of me using CGI (rather than Module), because I still have to manually change the default version to get the whole app to work correctly (part of which relies on CLI).

I'm not seeing how to get MAMP to switch CLI PHP versions when it switches web PHP versions. I know for web it changes aliases and the hosts file, but it doesn't seem to change aliases for CLI. What am I to do?! Just set up my own aliases, and hope to remember them all the time when I need them, and hope that nothing is gonna try and run just php and get the wrong version?!

0 Answers0