> ## Documentation Index
> Fetch the complete documentation index at: https://docs.azvian.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Install QR & Link Manager at the root of a domain on shared hosting or a VPS

QR & Link Manager runs on ordinary shared hosting (cPanel, Plesk, DirectAdmin). You do not need SSH, Composer or Node.js. For the steps every Azvian app shares, see [Installing a web app](https://docs.azvian.com/start/installing-a-web-app.md).

## Choose the short domain first

The app must be reachable at the **root of its domain**, because a short link is just `your-domain.com/abc123`. Good choices:

* A subdomain such as `go.yourbrand.com` (best: the main site is untouched).
* A separate short domain you bought for the purpose.
* Your main domain, **only** if nothing else is already served from it.

Install the app in the **document root** of that domain, not in a sub-folder. A sub-folder install would put the short links under a folder and break them.

## What you need

* **PHP 8.2 or newer** with the extensions bcmath, ctype, curl, dom, fileinfo, filter, gd, hash, mbstring, openssl, pdo, session, tokenizer, xml, zip and zlib
* **MySQL 5.7+ or MariaDB 10.3+** (SQLite works for small installs)
* **HTTPS** on the short domain, so links look trustworthy and scans do not warn
* **A cron job** every minute (it sends invitation and reset emails from the queue)
* **An SMTP account** for invitations and password resets

## Steps

**1. Create a database**

In your hosting panel, create an empty MySQL database and a user with all privileges on it.

**2. Upload the files**

Unzip the release on your computer and upload its contents. Best: make the domain's document root the `public/` folder. If your host does not allow that, upload everything into `public_html`; the bundled `.htaccess` then serves only `public/` and blocks everything else.

**3. Open your site**

You are sent to the installer: **Requirements**, **Database**, then **Administrator** (your site address, company name, your name, email and a password of at least 10 characters; the license key is optional). Enter the address of the **short domain**, with `https://`.

**4. Finish up**

The last screen shows the **cron job** to add, and checks that your private files cannot be downloaded from the web.

After installing, open the address and you land on the **dashboard** (sign in at `/login`).

## After installing

1. **Add the cron job**, every minute (the installer shows the exact line):

   ```bash theme={null}
   * * * * * cd /path/to/your/install && php artisan schedule:run >> /dev/null 2>&1
   ```
2. **Set up email** under **Settings → Email**: see [Settings, team and your account](https://docs.azvian.com/start/settings-and-team.md#email).
3. **Choose your defaults** under **Settings → Links**: see [Link settings](https://docs.azvian.com/link-manager/link-settings.md).
4. **Create a link** and click it to check that the redirect works.

> [!NOTE]
>
> The address you enter in the installer is the one used to build every short link and QR code. If you move to another domain later, change `APP_URL` in `.env`, and QR codes you printed with the old address will keep pointing at the old one.

## Hosting on Docker or Coolify

Set `APP_KEY` before the first start and keep it: it is also used to make the daily visitor fingerprints. Run `php artisan schedule:run` every minute as a scheduled task. Update by deploying the new version.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.