Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Is there a GUI version of PHP? – Alvar Jan 2 '14 at 14:59

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 the php5 command on my development mashine:

php -v
PHP 5.3.18 (cli) (built: Nov 20 2012 19:34:35)

php5 -v
PHP 5.5.3-1ubuntu2.1 (cli) (built: Dec 12 2013 04:24:35)

So I reinstalled composer with the following command and now it works for me:

sudo curl -sS | sudo php5

Best regards!

share|improve this answer
sudo curl -sS | sudo php5 did not work for me. I had to recompile php from source with openssl to make composer work. – Vivek Jan 8 '14 at 16:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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