Documents / Workstation

Set up your web development environment

Prepare Kansori, then install the PHP and Laravel web development stack on your Fedora workstation.

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 kansori command available on the workstation. Kansori is not yet publicly available; see Requirements and Availability in Getting Started.

Tell Kansori how you work.

$kansori setup

Setup asks for three values:

  • Projects path, where your projects live. The default is ~/Projects.
  • Default PHP: latest for the PHP that Fedora provides, or an explicit version such as 8.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.

Install the web development stack.

$kansori webdev install

To include VS Code, add --vscode:

$kansori webdev install --vscode

Before 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.

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 httpd and mariadb services.

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 install

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 doctor

For the final acceptance check of the web development environment on Fedora, run validation:

$kansori webdev validate

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.

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.