0
0

XserverにComposer 2をインストール

Last updated at Posted at 2024-08-17

See the Pen Untitled by John Doe (@04) on CodePen.

なぜエックスサーバーはComposer 2が使えないのだ😠

Composer 2をインストール

alias php=php8.3
curl -s https://getcomposer.org/installer | php
alias composer='php composer.phar'

aliasを使わない場合

# ~/.bash_profileにあるPATH=$PATH:$HOME/binでは優先順位の関係でphp8.3が反映されない
echo -e '\nPATH=$HOME/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
mkdir -p ~/bin
ln -s /usr/bin/php8.3 ~/bin/php
curl -s https://getcomposer.org/installer | php
mv composer.phar ~/bin/composer
hash -r

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0