Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install php 5.6 with homebrew if from this year it is EOL?

Because php 5.6 is EOL from 01.01.2019, it was removed from homebrew.

How can I install it with homebrew even if it is not in core?

like image 335
Octavian Popa Avatar asked Jan 11 '19 09:01

Octavian Popa


People also ask

How do I reinstall PHP on Mac?

Listed below are the commands required for the manual installation of PHP 8.1 on macOS. Check the package naming on your macOS terminal correctly. 2 - In the macOS terminal, execute brew update to update Brew. 3 - Use the command brew install shivammathur/php/[email protected] for installing PHP 8.1.

How do I change php version on Mac?

To update the PHP version, update the brew using the command brew update . Then, use the command brew upgrade php . It upgrades the current version to the latest version of PHP. Then, restart the webserver to see the changes.


2 Answers

brew tap exolnet/homebrew-deprecated  brew install [email protected] 

source: https://joostvanveen.com/a-29/install-and-configure-multiple-php-versions-on-mojave-with-homebrew

like image 149
nataprawiraf Avatar answered Sep 20 '22 07:09

nataprawiraf


I just used shivammathur/homebrew-php without any problems.

brew tap shivammathur/php brew install shivammathur/php/[email protected] 

The repository is on Github: https://github.com/shivammathur/homebrew-php

(the exolnet/homebrew-deprecated mentioned in other answers doesn't seem to work anymore)

like image 21
marc.guenther Avatar answered Sep 21 '22 07:09

marc.guenther