Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizKindly log in to use this feature. We’ll take you to the login page automatically.
LoginGeneral Tech Bugs & Fixes 3 years ago
User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
You don't need to uninstall, and it's normal what happened. When you install Apache gets to use the https://forum.tuteehub.com/tag/version">version you installed but the env path for console remains with the https://forum.tuteehub.com/tag/default">default osx php https://forum.tuteehub.com/tag/version">version.
You should read Frequently Asked Questions on the page http://php-osx.liip.ch/. Look for the first item.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
Kindly log in to use this feature. We’ll take you to the login page automatically.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
Your experience on this site will be improved by allowing cookies. Read Cookie Policy
manpreet
Best Answer
3 years ago
For an application i'm making i need the PHP stats functions. My OSX (10.11) came with the default PHP 5.5, but i needed 7.0 to install the PECL stats package so i updated my local PHP version to version 7 with the shellscript on liip.ch, like so:
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
Now i ended up with, apparently, two php versions.
When i run
phpinfo()on a page i get PHP Version 7.0.2 and when (in the terminal) i dophp -vi end up with PHP 5.5.27.It seems that for my web applications the update works (i got a stricter notice for example), but when i try to install the stats package with
pecl install statsi get pecl/stats requires PHP (version >= 7.0.0), installed version is 5.5.27which phpgives me just one result:/usr/bin/phpHow can i tell my terminal to 'use' php 7 as well?