Laravel Herd uninstall PHP version

1.1k Views Asked by At

At first, I installed PHP 8.2, but now I need to work with PHP 8.1, Now I installed both. I need to get rid of 8.2 because I haven't use it for too long and appealed to use 8.3 if I need to start another project.

How to uninstall the 8.2?

enter image description here

1

There are 1 best solutions below

0
francisco On

#1: The best way is to uninstall and install Herd and the php version you want.

#2: An alternative to uninstall a PHP version is by simply deleting the binaries from your ~/Library/Application Support/Herd/bin folder. Just make sure that there is no FPM instance currently using this version/stop Herd before. The main problem with "uninstalling" PHP version is that it's not as simple as it seems. You could run herd isolate 8.2 to isolate a specific site to always use PHP 8.2. If you would then delete PHP 8.2 this site would no longer work, which might be confusing. Reference