Make Composer in your user's $PATH

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

Relaterade artiklar

How to initiate Development and Production Environment.

Access your cPanel shell/terminal access. Change the directory to your installation path. Run...

How to create softlink for Laravel

Access your shell through your cPanel dashboard. Rename OR delete the default 'public_html'...