How to Uninstall Php on Mac?

Posted in  mac | 2022-03-22

Tips to Perfectly Uninstall PHP on Mac OS X

Open up the Finder, click Applications on the left side, and then select PHP.
Drag PHP to the Trash or right click on it and then select Move to Trash option.

How do I Uninstall PHP Big Sur Mac?

$ brew uninstall --force php56 php56-apcu php56-opcache php56-xdebug php56-yaml.
$ brew uninstall --force php70 php70-apcu php70-opcache php70-xdebug php70-yaml.
$ brew uninstall --force php71 php71-apcu php71-opcache php71-xdebug php71-yaml.

How do I Uninstall PHP 7.1 on Mac?

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 endoflife in December 2018, and should no longer be used.

How do I Uninstall PHP?

$ sudo apt-get purge php7. *
$ sudo apt-get autoclean.
$ sudo apt-get autoremove.

Where is PHP Installed on Mac?

Set the php. ini location or use the default A typical default location on macOS is /usr/local/php/php.