0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

さくら レンタルサーバー向け Laravel 8 環境構築

0
Last updated at Posted at 2025-11-10

さくらインターネット レンタルサーバー向け Laravel 8 環境構築

[1] Composer インストール

# インストーラをダウンロード
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

# インストーラの検証
php -r "if (hash_file('sha384', 'composer-setup.php') === 'c8b085408188070d5f52bcfe4ecfbee5f727afa458b2573b8eaaf77b3419b0bf2768dc67c86944da1544f06fa544fd47') { echo 'Installer verified'.PHP_EOL; } else { echo 'Installer corrupt'.PHP_EOL; unlink('composer-setup.php'); exit(1); }"

# Composer インストール
php composer-setup.php

# インストーラ削除
php -r "unlink('composer-setup.php');"

# composer.phar を ~/.composer に移動
mv composer.phar ~/.composer/composer

# パスを通す
echo 'export PATH="$HOME/.composer:$PATH"' >> ~/.bashrc
source ~/.bashrc

# バージョン確認
composer -V

[2] Lalavel8 プロジェクト生成

# Laravel 8 プロジェクト作成
composer create-project laravel/laravel /home/myaccount/www/lara "8.*"

(参考)公式サイト: https://getcomposer.org/download/

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?