centos7安装composer遇到目录无法写入

今天安装php-ffmpeg时,需要用到 composer,发现死活安装不上,总是提示目录无法写入,查了好多资料没发现问题所在。后来无意间想到是不是php的设置问题,于是看了php.ini,发现open_basedir被限定了,于是注释本行代码,然后重新进行composer的安装。ok!一切搞定。
centos7安装composer遇到目录无法写入

centos7安装composer遇到目录无法写入

centos7安装composer遇到目录无法写入

centos7安装composer遇到目录无法写入

安装教程可以参考其他文章!