$ sudo apt-get update
$ sudo apt-get install wget
composer配置
Unable to write keys.dev.pub to: /home/panjm/.composer
1.下载composer.phar:
wget https://getcomposer.org/composer.phar
2.重命名文件composer.phar 为 composer
mv composer.phar composer
3.chmod +x composer
4.全局配置
sudo mv composer /usr/local/bin
5.composer install的laravel项目时报错,原因是没有开启相关的拓展。
解决方法:在php.ini中,找到disable_functions选项,看看后面是否有proc_open,proc_get_status函数被禁用了,如果有的话,去掉即可
6.超级大坑(对larave的兼容):
到/usr/local/nginx/conf目录下找到fastcgi.conf文件,注释掉#fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";
网友评论