Administrators Nathan Posted March 24, 2018 Administrators Share Posted March 24, 2018 In the Laravel installation documentation it says: Quote Make sure to place composer’s system-wide vendor bin directory in your $PATH so the laravel executable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include: macOS: $HOME/.composer/vendor/bin GNU / Linux Distributions: $HOME/.config/composer/vendor/bin But it really doesn’t mention how to do this and assumes you’re already a system administrator on Linux When logged in a root via SSH you can run the following command to set the path above. Keep in mind we’re running on CentOS 7 64-bit so if you are on another flavor of Linux you’re $PATH could be different. export PATH="~/.config/composer/vendor/bin:$PATH" The composer and laravel command will now work globally in different directories and when switching other users. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.