There is no major difference in the php.ini
files located at /etc/php5/apache2/php.ini
and /etc/php5/cli/php.ini
. But <?php phpinfo(); ?>
when accessed from a browser says OpenSSL support enabled whereas php -info | grep openssl
executed in a terminal gives OpenSSL support => disabled (install ext/openssl)
.
I have the latest versions of libssl-dev
and openssl
installed. How to enable OpenSSL for cli version?
Same trouble for me. After spending some hours searching for a solution I find out that the command
php
is associated with an old version of php as against of thephp5
command on my development mashine:So I reinstalled composer with the following command and now it works for me:
Best regards!