LoginSignup
0
0

More than 3 years have passed since last update.

CPI サーバーで concrete5 CLI を使えるようにする方法

Posted at

参考
https://mi-rai.co.jp/blog/876

SSH でログイン

CPI サーバーに SSH でログインできるよう設定する

PHP コマンドを使えるように設定ファイルを作成

.cshrc ファイルに PHP コマンドで PHP7.2 が起動するようにする

$ cd
$ echo alias php php-7.2  >> .cshrc

SSH ログアウト&再ログイン

一旦、SSH をログアウト

$ exit

再度ログイン

動作確認

PHP バージョンコマンドでうまく行ったかを確認

$ php -v

PHP 7.2.20 (cli) (built: Jul  8 2019 17:55:27) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

concrete5 CLI コマンドの実行方法

あとは、CLI コマンドを実行する前に php を必ずつけて実行します。

$ cd [concrete5 サイトのあるパス]
$ php concrete/bin/concrete5 [コマンド]

# 参考: 環境情報を出力する
$ php concrete/bin/concrete5 c5:info

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