scotch-io / scotch-box

Scotch Box is a preconfigured Vagrant Box with a full array of LAMP Stack features to get you up and running with Vagrant in no time.
http://box.scotch.io
2.7k stars 548 forks source link

Install Drush and Composer in ~/.local/bin #396

Closed gitressa closed 2 years ago

gitressa commented 5 years ago

Problem: composer selfupdate gives a permission error, since /usr/local/bin is owned by root:root.

Solution: I suggest that Composer as well as Drush, and perhaps also wp (a Wordpress plugin?) are installed in ~/.local/bin in stead, since it is registered in $PATH in Scotch Box by default, as well as on at least two web hosting services I use, which has SSH access.