01 / Before you begin
Two commands, in order.
Setting up the environment takes two steps: kansori setup records your preferences, and kansori webdev install installs the web stack. Setup must come first.
- A Fedora workstation. The currently qualified baseline is Fedora 44 KDE.
- A user account that can use
sudo. - A network connection that can reach the Fedora package mirrors.
- The
kansoricommand available on the workstation. Kansori is not yet publicly available; see Requirements and Availability in Getting Started.
02 / Run setup
Tell Kansori how you work.
kansori setupSetup asks for three values:
- Projects path, where your projects live. The default is
~/Projects. - Default PHP:
latestfor the PHP that Fedora provides, or an explicit version such as8.3. - HTTP port for the local web server. The default is
80.
Setup writes your choices to ~/.config/kansori/config and creates the projects directory. When run interactively, it may also offer to configure your Git identity.
Setup does not install the web stack. It only records your configuration. When setup runs non-interactively, every required value must be passed as a flag.
03 / Install the stack
Install the web development stack.
kansori webdev installTo include VS Code, add --vscode:
kansori webdev install --vscodeBefore it changes anything, the installer runs pre-flight checks. It confirms that your Kansori configuration is valid, that the machine runs Fedora, that dnf, sudo and curl are available, and that the Fedora mirrors are reachable.
It then shows the installation plan, requests sudo, and asks you to confirm. The stack contains:
Git
Version control.
PHP and Composer
The PHP runtime chosen during setup, served through PHP-FPM, and the Composer dependency manager.
Apache
The local web server, listening on the HTTP port chosen during setup.
MariaDB and phpMyAdmin
The database server, and a browser interface for it.
Node.js
For frontend tooling and builds.
VS Code
Optional. Installed and configured only with --vscode.
--yes skips the confirmation prompt. Use it only when you already know what the plan contains.
04 / What changes on your system
Know what you are confirming.
Installing the stack is a system-level change. Depending on what is already present, the installer may:
- install packages and add package repositories;
- add the Remi repository when an explicit PHP version requires it;
- add Microsoft's repository for VS Code when you use
--vscode; - configure PHP-FPM and Apache;
- change SELinux-related settings;
- enable and start the
httpdandmariadbservices.
05 / If installation stops
Fix the cause, then run it again.
Installation is not transactional. Components are installed in a fixed order, and the installer stops at the first component that fails. Components installed before the failure stay installed: nothing is rolled back.
Read the error, fix its cause, and run the same command again. Rerunning is intended to be safe: work that has already been completed is skipped.
kansori webdev install06 / Check the result
Confirm the stack is healthy.
A completed installation ends by running the web stack's Doctor for you. You can run it yourself at any time:
kansori webdev doctorFor the final acceptance check of the web development environment on Fedora, run validation:
kansori webdev validate07 / What this does not do
The stack, not your projects.
kansori webdev install prepares the shared environment. It does not:
- create projects;
- configure HTTPS;
- set a different PHP version per project;
- create databases or database users.
08 / Next step
Keep the workstation healthy.
Learn which checks to run, and when, to confirm the workstation is in good shape.
Next Check your workstation with Doctor Run the right check when something looks wrong.