0

Hello I got 2 errors I don't know how to solve.

First: installed manually the php7.1.10 and the installed by apt-get the version 7.1.11 (following this steps). Know with a phpinfo() I get PHP Version 7.1.11-1 but inside terminal I get 7.1.10. How can I change the cli inside terminal so I get the same version?

Second: I'm getting this error The openssl extension is required for SSL/TLS protection but is not available. making a php composer.phar install. Inside the phpinfo I get OPENSSL support enabled but inside terminal I get OpenSSL support => disabled (install ext/openssl). So maybe this could be solved by changing the php version that i'm using inside terminal.

enviroment: debian9, apache 2.4

Any help? thanks!!!

  • Can you post the output of type php? – 111--- Oct 30 '17 at 15:56
  • php is /usr/local/bin/php – Braian Mellor Oct 30 '17 at 15:59
0

Use alternatives for this, this way you can control and move between versions and configs as needed: https://wiki.debian.org/DebianAlternatives

Once configured the change is as easy as:

sudo update-alternatives --set php ${path to PHP executable}

0

I solve it like this

# type php
php is /usr/local/bin/php
# cd /usr/local/bin/php
# sudo mv php phpbak
# type php
php is /usr/bin/php
# php -v
PHP 7.1.11-1
  • 1
    You're asking for a world of pain down the road. shrug – Satō Katsura Oct 30 '17 at 16:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.