liip / php-osx

DEPRECATED: See https://php-osx.liip.ch/ for details. The uploader and website for the PHP 5 package for OS X 10.6 built with https://github.com/liip/build-entropy-php
http://php-osx.liip.ch
Other
328 stars 30 forks source link

Cannot install and use 5.6 and 7.x at the same time. #274

Closed timbkbasic closed 3 years ago

timbkbasic commented 5 years ago

On my machine, I have the requirement that I run PHP 5.6 and PHP 7.x together. PHP 5.6 is used by MAMP to support a legacy website, and PHP 7.x is required for new Laravel development.

However, because both PHP5 and PHP7 point to the same directory: /usr/local/bin/php5 for their configurations, the two cannot be used simultaneously.

This seems like an unnecessary configuration.

I do not understand why PHP5.6 cannot point to: /usr/local/bin/php5

and PHP7.x point to: /usr/local/bin/php7

If this simple change was made, we would be able to run the two versions together.

Is it possible to make PHP7.x point to /usr/local/php7?

chregu commented 3 years ago

This project is now deprecated and won't get any more updates (since quite some time, but we made it official now).

The binaries and scripts will still be available for the foreseeable future.

We recommend using a homebrew based setup for an up-to-date local and native PHP experience.

See https://php-osx.liip.ch/ for more details.