Documents / Workstation

Check your workstation with Doctor

Find out whether your Kansori workstation is healthy, and which check to run when something looks wrong.

One command for the whole workstation.

For a clean health check, refresh your sudo credentials first, then run Doctor:

$sudo -v
$kansori doctor

The reason for sudo -v is explained in the sudo check below.

Configuration, platform and tools.

kansori doctor checks the overall Kansori and workstation state:

  • that your Kansori configuration is valid;
  • the configured projects path, default PHP and HTTP port;
  • that the machine runs Fedora;
  • required commands: bash, git, dnf, curl, wget, unzip and zip;
  • optional tools such as VS Code and ShellCheck, where applicable;
  • whether sudo is ready;
  • your Git setup;
  • SSH, reported for information only.

Why sudo -v comes first.

Doctor checks sudo without prompting for a password, using sudo -n true. If your sudo credentials are not currently cached, that check fails, even when your account is allowed to use sudo.

This is a known limitation of the current check. Running sudo -v immediately before kansori doctor caches your credentials, so a failing sudo check then points to a real problem.

Four checks, four scopes.

kansori doctor

Overall Kansori and workstation checks: configuration, platform, required tools, sudo and Git.

kansori webdev doctor

The health of the installed web development stack.

kansori <component> doctor

Focused diagnostics for a single Kansori component. webdev doctor is one example.

kansori webdev validate

The broader, final acceptance validation of the web development environment on Fedora.

Diagnostics, not automatic repair.

Doctor runs deterministic checks and reports what it finds. It does not fix problems for you: each result tells you where to look, and the fix stays a deliberate step that you take.

Informational results, such as the SSH check, describe your setup without counting as a failure.

Narrow it down before guessing.

  1. 01

    Check the workstation

    Run sudo -v, then kansori doctor, and resolve any failing configuration, platform or tool checks first.

  2. 02

    Check the web stack

    Run kansori webdev doctor when the problem involves PHP, Apache, MariaDB or another part of the stack.

  3. 03

    Reinstall missing parts

    If stack components are missing, rerun kansori webdev install. Completed work is skipped.

  4. 04

    Validate the result

    Run kansori webdev validate for the final acceptance check.

Keep a copy of your settings.

Once the workstation is healthy, back up your Kansori settings so you can restore them later.

Next Back up and restore your Kansori settings What a backup contains, and what restore changes.