haheute haheute - 1 year ago 431
Linux Question

permission denied for composer in /usr/local/bin/

I followed the documentation on https://getcomposer.org/doc/00-intro.md#globally to install composer globally on arch linux. When I do

composer self-update
, I get this message:

rename(/home/hannes/.composer/cache/composer-temp.phar,/usr/local/bin/composer): Permission denied

The permissions in
(I changed them to 777, but it did not help):

-rwxrwxrwx 1 hannes users 1104202 30. Mai 18:07 composer

In my home directory I did this:

sudo chmod -R 777 .composer/

, the
looks so:

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/local/bin/

I also tried
sudo composer self-update
but it did not work as well and is possibly not the right way. (?). What else could I try to make this work?

Answer Source

Now, there is a package for composer in arch linux which works for me:

sudo pacman -S composer
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download