ローカル参照と公開済みの全モードを含む完全パッケージをインストールします。
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.4upgrade が互換性を確認し、必要な場合だけブロックを置換します。
upgrade doctorコアや他のモジュールに触れず拡張ブロックを削除します。
install doctor -u例はコピーできますが、サイトは実行しません。実プロジェクトではパス、権限、破壊的オプションを確認してください。
doctor学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
PLATFORM
+ php 8.4.24 cli
+ memory -1
+ execution 0 s
+ upload upload 2M, post 8M
+ session /var/lib/php/sessions
! opcache disabled or unavailable
EXTENSIONS
+ session loaded
+ json loaded
+ tokenizer loaded
+ filter loaded
+ hash loaded
+ pcre loaded
! curl optional
+ openssl loaded
+ fileinfo loaded
! mbstring optional
! zip optional
+ phar loaded
! mysqli optional
! imap optional
+ exif loaded
! imagick optional
+ sodium loaded
+ zlib loaded
! bz2 optional
FILES
+ lil training-runtime/lil.php [w]
+ cwd sandbox [w]
+ base sandbox [w]
! extensions training-runtime/sandbox_fixture/extensions.php [ro]
+ temp /tmp [w]
+ disk 29.7 GB free of 31.5 GB
! asset-css not installed
! asset-js not installed
REPO
+ endpoint https://repo.lil.dog
! install-api undefined
+ installer latest v1.4.6
SECURITY
! https not detected
! authorization disabled build
+ display-errors 0
+ url-include
! expose-php 1
! cookie HttpOnly off, Secure off
+ lil-mode 0644
OK 27
WARN 16
FAIL 0doctor platform学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
+ php 8.4.24 cli
+ memory -1
+ execution 0 s
+ upload upload 2M, post 8M
+ session /var/lib/php/sessions
! opcache disabled or unavailable
OK 5
WARN 1
FAIL 0doctor extensions学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
+ session loaded
+ json loaded
+ tokenizer loaded
+ filter loaded
+ hash loaded
+ pcre loaded
! curl optional
+ openssl loaded
+ fileinfo loaded
! mbstring optional
! zip optional
+ phar loaded
! mysqli optional
! imap optional
+ exif loaded
! imagick optional
+ sodium loaded
+ zlib loaded
! bz2 optional
OK 12
WARN 7
FAIL 0doctor files学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
+ lil training-runtime/lil.php [w]
+ cwd sandbox [w]
+ base sandbox [w]
! extensions training-runtime/sandbox_fixture/extensions.php [ro]
+ temp /tmp [w]
+ disk 29.7 GB free of 31.5 GB
! asset-css not installed
! asset-js not installed
OK 5
WARN 3
FAIL 0doctor repo学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
+ endpoint https://repo.lil.dog
! install-api undefined
+ installer latest v1.4.6
OK 2
WARN 1
FAIL 0doctor security学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
! https not detected
! authorization disabled build
+ display-errors 0
+ url-include
! expose-php 1
! cookie HttpOnly off, Secure off
+ lil-mode 0644
OK 3
WARN 4
FAIL 0doctor -q学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
PLATFORM
! opcache disabled or unavailable
EXTENSIONS
! curl optional
! mbstring optional
! zip optional
! mysqli optional
! imap optional
! imagick optional
! bz2 optional
FILES
! extensions training-runtime/sandbox_fixture/extensions.php [ro]
! asset-css not installed
! asset-js not installed
REPO
! install-api undefined
SECURITY
! https not detected
! authorization disabled build
! expose-php 1
! cookie HttpOnly off, Secure off
OK 27
WARN 16
FAIL 0doctor -j学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
{
"summary": {
"ok": 27,
"warn": 16,
"fail": 0
},
"checks": [
{
"group": "platform",
"name": "php",
"status": "ok",
"detail": "8.4.24 cli"
},
{
"group": "platform",
"name": "memory",
"status": "ok",
"detail": "-1"
},
{
"group": "platform",
"name": "execution",
"status": "ok",
"detail": "0 s"
},
{
"group": "platform",
"name": "upload",
"status": "ok",
"detail": "upload 2M, post 8M"
},
{
"group": "platform",
"name": "session",
"status": "ok",
"detail": "/var/lib/php/sessions"
},
{
"group": "platform",
"name": "opcache",
"status": "warn",
"detail": "disabled or unavailable"
},
{
"group": "extensions",
"name": "session",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "json",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "tokenizer",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "filter",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "hash",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "pcre",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "curl",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "openssl",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "fileinfo",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "mbstring",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "zip",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "phar",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "mysqli",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "imap",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "exif",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "imagick",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "sodium",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "zlib",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "bz2",
"status": "warn",
"detail": "optional"
},
{
"group": "files",
"name": "lil",
"status": "ok",
"detail": "training-runtime/lil.php [w]"
},
{
"group": "files",
"name": "cwd",
"status": "ok",
"detail": "sandbox [w]"
},
{
"group": "files",
"name": "base",
"status": "ok",
"detail": "sandbox [w]"
},
{
"group": "files",
"name": "extensions",
"status": "warn",
"detail": "training-runtime/sandbox_fixture/extensions.php [ro]"
},
{
"group": "files",
"name": "temp",
"status": "ok",
"detail": "/tmp [w]"
},
{
"group": "files",
"name": "disk",
"status": "ok",
"detail": "29.7 GB free of 31.5 GB"
},
{
"group": "files",
"name": "asset-css",
"status": "warn",
"detail": "not installed"
},
{
"group": "files",
"name": "asset-js",
"status": "warn",
"detail": "not installed"
},
{
"group": "repo",
"name": "endpoint",
"status": "ok",
"detail": "https://repo.lil.dog"
},
{
"group": "repo",
"name": "install-api",
"status": "warn",
"detail": "undefined"
},
{
"group": "repo",
"name": "installer",
"status": "ok",
"detail": "latest v1.4.6"
},
{
"group": "security",
"name": "https",
"status": "warn",
"detail": "not detected"
},
{
"group": "security",
"name": "authorization",
"status": "warn",
"detail": "disabled build"
},
{
"group": "security",
"name": "display-errors",
"status": "ok",
"detail": "0"
},
{
"group": "security",
"name": "url-include",
"status": "ok",
"detail": ""
},
{
"group": "security",
"name": "expose-php",
"status": "warn",
"detail": "1"
},
{
"group": "security",
"name": "cookie",
"status": "warn",
"detail": "HttpOnly off, Secure off"
},
{
"group": "security",
"name": "lil-mode",
"status": "ok",
"detail": "0644"
}
]
}doctor platform -q学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
! opcache disabled or unavailable
OK 5
WARN 1
FAIL 0doctor extensions -j学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
{
"summary": {
"ok": 12,
"warn": 7,
"fail": 0
},
"checks": [
{
"group": "extensions",
"name": "session",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "json",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "tokenizer",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "filter",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "hash",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "pcre",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "curl",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "openssl",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "fileinfo",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "mbstring",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "zip",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "phar",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "mysqli",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "imap",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "exif",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "imagick",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "sodium",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "zlib",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "bz2",
"status": "warn",
"detail": "optional"
}
]
}doctor security -q学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
! https not detected
! authorization disabled build
! expose-php 1
! cookie HttpOnly off, Secure off
OK 3
WARN 4
FAIL 0doctor -q -j学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
{
"summary": {
"ok": 27,
"warn": 16,
"fail": 0
},
"checks": [
{
"group": "platform",
"name": "opcache",
"status": "warn",
"detail": "disabled or unavailable"
},
{
"group": "extensions",
"name": "curl",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "mbstring",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "zip",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "mysqli",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "imap",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "imagick",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "bz2",
"status": "warn",
"detail": "optional"
},
{
"group": "files",
"name": "extensions",
"status": "warn",
"detail": "training-runtime/sandbox_fixture/extensions.php [ro]"
},
{
"group": "files",
"name": "asset-css",
"status": "warn",
"detail": "not installed"
},
{
"group": "files",
"name": "asset-js",
"status": "warn",
"detail": "not installed"
},
{
"group": "repo",
"name": "install-api",
"status": "warn",
"detail": "undefined"
},
{
"group": "security",
"name": "https",
"status": "warn",
"detail": "not detected"
},
{
"group": "security",
"name": "authorization",
"status": "warn",
"detail": "disabled build"
},
{
"group": "security",
"name": "expose-php",
"status": "warn",
"detail": "1"
},
{
"group": "security",
"name": "cookie",
"status": "warn",
"detail": "HttpOnly off, Secure off"
}
]
}doctor --json学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
{
"summary": {
"ok": 27,
"warn": 16,
"fail": 0
},
"checks": [
{
"group": "platform",
"name": "php",
"status": "ok",
"detail": "8.4.24 cli"
},
{
"group": "platform",
"name": "memory",
"status": "ok",
"detail": "-1"
},
{
"group": "platform",
"name": "execution",
"status": "ok",
"detail": "0 s"
},
{
"group": "platform",
"name": "upload",
"status": "ok",
"detail": "upload 2M, post 8M"
},
{
"group": "platform",
"name": "session",
"status": "ok",
"detail": "/var/lib/php/sessions"
},
{
"group": "platform",
"name": "opcache",
"status": "warn",
"detail": "disabled or unavailable"
},
{
"group": "extensions",
"name": "session",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "json",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "tokenizer",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "filter",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "hash",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "pcre",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "curl",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "openssl",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "fileinfo",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "mbstring",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "zip",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "phar",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "mysqli",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "imap",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "exif",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "imagick",
"status": "warn",
"detail": "optional"
},
{
"group": "extensions",
"name": "sodium",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "zlib",
"status": "ok",
"detail": "loaded"
},
{
"group": "extensions",
"name": "bz2",
"status": "warn",
"detail": "optional"
},
{
"group": "files",
"name": "lil",
"status": "ok",
"detail": "training-runtime/lil.php [w]"
},
{
"group": "files",
"name": "cwd",
"status": "ok",
"detail": "sandbox [w]"
},
{
"group": "files",
"name": "base",
"status": "ok",
"detail": "sandbox [w]"
},
{
"group": "files",
"name": "extensions",
"status": "warn",
"detail": "training-runtime/sandbox_fixture/extensions.php [ro]"
},
{
"group": "files",
"name": "temp",
"status": "ok",
"detail": "/tmp [w]"
},
{
"group": "files",
"name": "disk",
"status": "ok",
"detail": "29.7 GB free of 31.5 GB"
},
{
"group": "files",
"name": "asset-css",
"status": "warn",
"detail": "not installed"
},
{
"group": "files",
"name": "asset-js",
"status": "warn",
"detail": "not installed"
},
{
"group": "repo",
"name": "endpoint",
"status": "ok",
"detail": "https://repo.lil.dog"
},
{
"group": "repo",
"name": "install-api",
"status": "warn",
"detail": "undefined"
},
{
"group": "repo",
"name": "installer",
"status": "ok",
"detail": "latest v1.4.6"
},
{
"group": "security",
"name": "https",
"status": "warn",
"detail": "not detected"
},
{
"group": "security",
"name": "authorization",
"status": "warn",
"detail": "disabled build"
},
{
"group": "security",
"name": "display-errors",
"status": "ok",
"detail": "0"
},
{
"group": "security",
"name": "url-include",
"status": "ok",
"detail": ""
},
{
"group": "security",
"name": "expose-php",
"status": "warn",
"detail": "1"
},
{
"group": "security",
"name": "cookie",
"status": "warn",
"detail": "HttpOnly off, Secure off"
},
{
"group": "security",
"name": "lil-mode",
"status": "ok",
"detail": "0644"
}
]
}doctor repo -j学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
{
"summary": {
"ok": 2,
"warn": 1,
"fail": 0
},
"checks": [
{
"group": "repo",
"name": "endpoint",
"status": "ok",
"detail": "https://repo.lil.dog"
},
{
"group": "repo",
"name": "install-api",
"status": "warn",
"detail": "undefined"
},
{
"group": "repo",
"name": "installer",
"status": "ok",
"detail": "latest v1.4.6"
}
]
}doctor unknown学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
?doctor -z学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
?doctor platform extensions学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
?doctor files -q学習用の例 — PHP 環境、サーバー、リポジトリの応答は模擬データです
! extensions training-runtime/sandbox_fixture/extensions.php [ro]
! asset-css not installed
! asset-js not installed
OK 5
WARN 3
FAIL 0