[FIXED] Error: [email protected] has been disabled because it is a versioned formula


I’m trying to install [email protected] using brew. However, since it is a versioned formula, it returns an error.

Command: brew install [email protected]

Result: Error: [email protected] is disabled because it is a versioned expression!


You can only install supported versions of PHP with brew. However, there is the tap shivammathur/php which can be used to install unsupported version of PHP.

  1. brew tap shivammathur/php
  2. brew install shivammathur/php/[email protected]
  3. brew link [email protected]

The first step only needs to be done once. After adding the tap, you can install PHP version 5.6 – 8.2.

Answered By – derhansen

Answer Checked By – David Goodson (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published