linux系统安装composer问题总结
安装的时候直接执行curl -sS https://getcomposer.org/installer | php 命令就可以。
因为PHP配置的原因可能会出现提示
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The suhosin.executor.include.whitelist setting is incorrect.
Add the following to the end of your `php.ini` or suhosin.ini (Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini):
suhosin.executor.include.whitelist = phar
The php.ini used by your command-line PHP is: /usr/local/php56/lib/php.ini
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.
解决方法:找到php.ini文件,在文件最后添加suhosin.executor.include.whitelist = phar 即可