search

Home  >  Q&A  >  body text

Error while upgrading PHP 7.4 on MAC after installing Brew

I have a Mac Air with Ventura OS. I just installed Brew and can no longer upgrade PHP. I get the following error: Error: php@7.4 has been disabled because it is a versioned formula! How can I solve it? New to MacOS and Brew. Thanks Fabio

I don’t know what to do at this time.

P粉478445671P粉478445671450 days ago868

reply all(1)I'll reply

  • P粉054616867

    P粉0546168672023-10-30 19:09:28

    This message tells you that PHP 7.4 is obsolete. You can install PHP8

    brew install php

    Or link a third-party repository and install 7.4 from there.

    For example:

    brew tap shivammathur/php
    brew install shivammathur/php/php@7.4
    brew link php@7.4

    reply
    1
  • Cancelreply