I wrote in Linux Terminal:
curl -s https://getcomposer.org/installer | php
It said:
#!/usr/bin/env php
Some settings on your machine make Com
On ubuntu 14.04 for me, I found that the default permissions for the php.ini file /etc/php5/cli/ restrict the file to Root user only, so if you run:
php -m
as non-root, you get far fewer modules than if you run sudo php -m
The fix for this was for me to perform:
sudo chmod a+rx /etc/php5/cli/* -R
which grants read and execute permissions for that folder and it's contents to everyone.