How to install the Shlink self-hosted URL shortener on Hestia

I tried repeating the steps from the documentation, but nothing worked. I have already spent more than 5 hours. Please try Install and ask for advice on installing on a web server with a Hestia panel installed

My steps:

  1. I downloaded the latest distributable file for php 8.1 Release v3.4.0 · shlinkio/shlink · GitHub

  2. unzipped to a folder with the domain

  3. cd /home/traffic/web/domain/public_html
    ran the command php8.1 vendor/bin/shlink-installer

My mistake was that I ran the installer from the /vendor/bin folder, and I should run it from the root directory