title: permission denied for composer in /usr/local/bin/
body: <p>I followed the documentation on <a href="https://getcomposer.org/doc/00-intro.md#globally">https://getcomposer.org/doc/00-intro.md#globally</a> to install composer globally on arch linux. When I do <code>composer self-update</code>, I get this message:</p>
  
  <pre><code>  [ErrorException]                                                                                    
    rename(/home/hannes/.composer/cache/composer-temp.phar,/usr/local/bin/composer): Permission denied 
  </code></pre>
  
  <p>The permissions in <code>/usr/local/bin/</code> (I changed them to 777, but it did not help):</p>
  
  <pre><code>-rwxrwxrwx  1 hannes users 1104202 30. Mai 18:07 composer
  </code></pre>
  
  <p>In my home directory I did this:</p>
  
  <pre><code>sudo chmod -R 777 .composer/
  </code></pre>
  
  <p>In <code>/etc/php/php.ini</code>, the <code>open_basedir</code> looks so:</p>
  
  <pre><code>open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/usr/local/bin/
  </code></pre>
  
  <p>I also tried <code>sudo composer self-update</code> but it did not work as well and is possibly not the right way. (?). What else could I try to make this work?</p>