PHP

Hostingerdə shared hostinqdə composer quraşdırmaq üçün həll yolu

14.07.2023 1 dəq oxuma
  1. SSH into your shared hosting using your preferred ssh client.
  2. Make sure you are in your home directory cd ~
  3. Edit your shell configurations file nano .bashrc (for Bash) or nano .zshrc (for Zsh)
  4. Add the following line to the end of the file: alias composer="php /usr/local/bin/composer2.phar" (This will use composer 2.5.5 at the time of writing this answer)
  5. Save the file by pressing CTRL+X, then Y, then ENTER
  6. Reload your shell configuration by running the command source ~/.bashrc or source ~/.zshrc, depending on which shell you're using.
Digər dildə: EN