Casey Carey
Casey Carey

Reputation: 55

How to uninstall php 7.1

I'm trying to install the php driver and for that I first need to unlink the php 7.1 and install the 5.6 but when I try:

brew unlink php71

I get this error message:

Error: No such keg: /usr/local/Cellar/[email protected]

Any suggestion?

Upvotes: 2

Views: 15158

Answers (2)

Pranjalee R
Pranjalee R

Reputation: 11

sphp 5.6

This will work, if you have installed php through brew. But, I agree with @duskwuff -inactive- that php 5.6 should no longer be used, as suggested by homebrew itself.

Upvotes: 0

user149341
user149341

Reputation:

As of macOS 10.14 ("Mojave"), PHP 7.1 is installed as a component of the operating system at /usr/bin/php. This installation cannot be removed, but you can install other additional versions of PHP through Homebrew.

PHP 5.6 reached end-of-life in December 2018, and should no longer be used. It is not installable through Homebrew.

Upvotes: 9

Related Questions