LoginSignup
0
0

More than 3 years have passed since last update.

さくらサーバで特定のディレクトリだけPHPのバージョンを変更したらLaravelのartisanが動かなかった

Last updated at Posted at 2019-05-14

前提

  • サーバのPHPのバージョン設定は5.6系(大人の事情で変更できない)
  • Laravel 5.8.*を使いたい
  • タイトルの通り php.cgi で任意のディレクトリのみPHPのバージョンを7.3.*に変更

症状

ssh接続してLaravelディレクトリのartisanファイルのある階層に移動して

$ php artisan list

を実行しても何も表示されない。

対応

こんな具合に直接指定する。

$ /usr/local/php/7.3/bin/php artisan list

まとめ

info.php
<?php
phpinfo();

$ php info.php

したらおめーのバージョンは5.6って言われた(当たり前)。

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