usr/bin/ or uninstall the other PHP version if the PATH was already set properly. If the old version is still displayed, check your PATH ( echo $PATH) and ensure that /usr/local/bin/ comes before The PATH variable gotĪdjusted during the PHP installation and might not be loaded in your current terminal session. If php -version displays the wrong PHP version, try to open a new terminal window. Troubleshooting Wrong PHP Version is displayed To make some disk space accessible, you may remove old versions of packages by executing brew cleanup -s. SNMP was excluded from the build because it crashes Apache. This extension is, state of now (), not part of this PHP build: If you rely on the SNMP Extension, I have to disappoint you right now. Specify the version explicitly via pecl install redis-3.1.6. If your app depends on a particular version of an extension, e.g. Installation via pecl requires autoconf ( brew install autoconf): pecl install xdebug pecl install redis pecl install apcu pecl install memcached pecl install imagick Particular version of an extension Install all other required extensions via PECL (gets installed together with PHP). If you encounter any problems, check the Troubleshooting section PHP version and that no warnings are displayed. Run php -version, php -ini and pear config-show | grep php.ini and check if everything is pointing to the right Verify Installationīefore we continue, we want to ensure that the I also had some other taps that I directly untapped as well because those were deprecated: $ brew untap homebrew/science $ brew untap homebrew/versions 2. Untap the deprecated repo brew untap homebrew/php. You can check what packages are installed via brew list | grep php, for example, and remove via brew remove MYPACKAGE.Ĭheck for leftovers in /usr/local/etc/php/ and remove if necessary. This is not 100% necessary, but I wanted to have it clean. Remove your currently installed PHP packages. They migrated it to homebrew/core, but this is changing the installation process completely. With Homebrew v1.5.0 the tap homebrew/php got deprecated. Please check out the latest state of the PHP Homebrew formula. Update (July 2021): Homebrew project structure changedĭue to a new homebrew / tap structure, this article might not be up to date anymore.
0 Comments
Leave a Reply. |