- Access your cPanel terminal and summon the command "cd ~"
- Download the Composer installer manually.
Command: wget https://getcomposer.org/installer -O composer-setup.php - Install Composer locally (per cPanel user)
Command: mkdir -p ~/bin
Command: php composer-setup.php --install-dir=$HOME/bin --filename=composer - Verify Composer installation (Add your
~/bindirectory to the$PATHtemporarily)
Command: export PATH="$HOME/bin:$PATH"
Command: composer -V - Make the PATH permanent (To eliminate re-export every time you log in)
Command: echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
Command: source ~/.bashrc - Run your Laravel update command
Command: composer update
Make Composer in your user's $PATH
- 0 användare blev hjälpta av detta svar