ローカル参照と公開済みの全モードを含む完全パッケージをインストールします。
install doctordoctor同じ lil-terminal が二つのホスティングで違う挙動をする場合は platform、extensions、files、repo、security に絞り込みます。
doctor [group] [-q|-j]doctorすべてを確認する
doctor platformPHP、SAPI、制限、セッション、OPcache の確認結果を表示する
doctor extensionsPHP 拡張の確認結果を表示する
doctor filesプロジェクトのパス、権限、ストレージを確認する
doctor repolil リポジトリを確認する
doctor securityHTTPS、認証、Cookie を確認する
-q警告とエラーだけを表示する
-j機械可読 JSON を返す
用意された例をページ上でそのまま実行できます。結果は事前に生成されてブラウザに表示され、サーバーではターミナルコマンドを実行しません。
現在の互換バージョンをインストールします。全機能は Base、縮小版は Minimum を選び、すでに導入済みのモジュール更新には upgrade を使います。
Base と Minimum は同じ現在のモジュールリリースの二つのパッケージです。
ローカル参照と公開済みの全モードを含む完全パッケージをインストールします。
install doctor縮小パッケージをインストールします。ローカルリファレンスは含まれず、
install doctor -mこの公開済みバージョンを正確に指定してインストールします。
install doctor -v 1.1.3upgrade が互換性を確認し、必要な場合だけブロックを置換します。
upgrade doctorコアや他のモジュールに触れず拡張ブロックを削除します。
install doctor -u例はコピーできますが、サイトは実行しません。実プロジェクトではパス、権限、破壊的オプションを確認してください。
cd \sandbox | doctor files | doctor -qfiles +
permissions +
storage +
+doctor platformPLATFORM
+ PHP 8.x fpm-fcgi
+ memory 512M
+ execution 60 s
+ session available
OK 4
WARN 0
FAIL 0doctor extensionsEXTENSIONS
+ json loaded
+ curl loaded
+ openssl loaded
! imagick optional
OK 3
WARN 1
FAIL 0doctor filesFILES
+ lil sandbox/lil.php [w]
+ cwd sandbox [w]
+ base sandbox [w]
+ extensions sandbox/.lil.php [w]
OK 4
WARN 0
FAIL 0doctor repoREPOSITORY
+ endpoint https://repo.lil.dog
+ api 1.23
+ installer latest
OK 3
WARN 0
FAIL 0doctor securitySECURITY
+ https enabled
+ authorization enabled
! cookie Secure off
OK 2
WARN 1
FAIL 0doctor -qEXTENSIONS
! imagick optional
SECURITY
! cookie Secure off
OK 0
WARN 2
FAIL 0doctor -j{
\"summary\": {\"ok\": 39, \"warn\": 2, \"fail\": 0},
\"checks\": [ ... ]
}doctor unknown?