# Frequently asked questions

> Short answers for people who run their own Leantime: requirements, Docker, SMTP, roles, LDAP and OIDC, updates, logs and resetting the admin password.

Source: https://docs.leantime.io/installation/frequently-asked-questions/

Short answers to common questions about installing and running Leantime yourself, with links to the full guides.

---

## Installation & Setup

### What are the system requirements for Leantime?

Leantime 3.2 and later require:
- PHP 8.2 or higher
- MySQL 8.0+, MariaDB 10.6+, or PostgreSQL (since Leantime 3.7)
- Web server (Apache, Nginx, or IIS)

For Docker installations, you need Docker and Docker Compose installed. See [System Requirements](https://docs.leantime.io/installation/system-requirements/) for the PHP extensions and database settings.

### How do I install Leantime with Docker?

Use Docker Compose:

1. Download the Compose files and create your settings file:

   ```bash
   git clone https://github.com/Leantime/docker-leantime.git
   cd docker-leantime
   cp sample.env .env
   ```

2. Open `.env` and change the sample passwords: `MYSQL_ROOT_PASSWORD`, `MYSQL_PASSWORD`, `LEAN_DB_PASSWORD` (the same as `MYSQL_PASSWORD`) and `LEAN_SESSION_PASSWORD`. The sample passwords are public, so never keep them.
3. Start Leantime with `docker compose up -d`.
4. Open `http://localhost:8080` and fill in the installer.

For every step, see [Install Leantime with Docker](https://docs.leantime.io/installation/docker/).

### Why does my Docker container show "unhealthy" status?

Usually because something still expects the old port. Since Leantime 3.4 the container listens on port 8080, so port mappings, reverse proxies and any health check you added yourself must use 8080 (for example `http://localhost:8080/health`). Old volumes owned by root can also stop the container from starting. See [Docker troubleshooting](https://docs.leantime.io/installation/docker-troubleshooting/#the-container-is-unhealthy-or-nginx-keeps-restarting).

### What installation methods does Leantime officially support?

Leantime officially supports:
- Docker Compose installations
- Standard PHP installations

Want the Leantime team to install it for you? See [Can someone install Leantime for me?](https://docs.leantime.io/installation/installation-types/#can-someone-install-leantime-for-me)

**Note:** Cloudron, Elestio, Turnkey, Coolify and other platforms that install Leantime from their own templates are not officially supported: support comes from each platform. See [One-click installs](https://docs.leantime.io/installation/one-click-installs/) for what to check after installing from one.

### How do I set the correct file permissions?

The Leantime container runs as the user `www-data` (user number 1000), not as root, so a normal `docker exec` can't change who owns the files. Run the fix as root, from the folder with your `docker-compose.yml`:

```bash
docker compose exec -u root leantime sh -c 'cd /var/www/html && \
  chown -R www-data:root userfiles public/userfiles storage/logs app/Plugins && \
  chmod -R ug+rwX userfiles public/userfiles storage/logs app/Plugins'
```

This gives the folders back to `www-data` and lets both `www-data` and the group `root` write to them, as in the official image.

If the container doesn't start, fix the volumes from outside it, as in [The container is unhealthy, or nginx keeps restarting](https://docs.leantime.io/installation/docker-troubleshooting/#the-container-is-unhealthy-or-nginx-keeps-restarting). For a package installation, see [Which folders must be writable?](https://docs.leantime.io/installation/system-requirements/#which-folders-must-be-writable)

---

## Email & SMTP Configuration

### Why aren't emails being sent from Leantime?

Email issues are the most common support request. Check these settings in your `.env` or `docker-compose.yml`:

```env
LEAN_EMAIL_RETURN='your-email@domain.com'
LEAN_EMAIL_USE_SMTP=true
LEAN_EMAIL_SMTP_HOSTS='smtp.yourprovider.com'
LEAN_EMAIL_SMTP_AUTH=true
LEAN_EMAIL_SMTP_USERNAME='your-username'
LEAN_EMAIL_SMTP_PASSWORD='your-password'
LEAN_EMAIL_SMTP_AUTO_TLS=true
LEAN_EMAIL_SMTP_SECURE='tls'
LEAN_EMAIL_SMTP_PORT='587'
```

See [Email & SMTP Configuration](https://docs.leantime.io/installation/email-configuration/) for more providers.

### What are the common SMTP configuration mistakes?

1. **Port and security don't match:** use port 587 with `LEAN_EMAIL_SMTP_SECURE='tls'` (this is STARTTLS), or port 465 with `'ssl'`. For port 25, leave the value empty (`''`).
2. **Uppercase or other values:** write `tls` and `ssl` in lowercase. Leantime ignores any other value, including `TLS`, `SSL` and `STARTTLS`. With `SSL` on port 465, the connection hangs until it times out.
3. **Encryption you didn't expect:** `LEAN_EMAIL_SMTP_AUTO_TLS=true` (the default) switches to an encrypted connection whenever the mail server offers it, even with an empty `LEAN_EMAIL_SMTP_SECURE`. If that encrypted connection fails, fix the mail server's certificate or use port 587 with `'tls'`. Setting `LEAN_EMAIL_SMTP_AUTO_TLS=false` sends your password and emails unencrypted, so only do it for a relay on your own network that you trust.
4. **Missing authentication:** set `LEAN_EMAIL_SMTP_AUTH=true` if your server requires it.
5. **Firewall blocking:** make sure the SMTP port is open in your firewall.

### How do I configure Office 365 SMTP?

```env
LEAN_EMAIL_SMTP_HOSTS='smtp.office365.com'
LEAN_EMAIL_SMTP_PORT='587'
LEAN_EMAIL_SMTP_SECURE='tls'
LEAN_EMAIL_SMTP_AUTO_TLS=true
LEAN_EMAIL_SMTP_AUTH=true
```

### How do I configure Gmail SMTP?

```env
LEAN_EMAIL_SMTP_HOSTS='smtp.gmail.com'
LEAN_EMAIL_SMTP_PORT='587'
LEAN_EMAIL_SMTP_SECURE='tls'
LEAN_EMAIL_SMTP_AUTH=true
LEAN_EMAIL_SMTP_USERNAME='your-email@gmail.com'
LEAN_EMAIL_SMTP_PASSWORD='your-app-password'
```

**Note:** Gmail requires an App Password if 2FA is enabled.

### How do I test if SMTP is working?

1. Send a test email. In the Leantime folder, run `php bin/leantime email:testemail --address="you@example.com"`. On Docker, run `docker compose exec leantime php bin/leantime email:testemail --address="you@example.com"`.
2. If it doesn't arrive, set `LEAN_DEBUG=1` (on Docker, then run `docker compose up -d`), send it again, and read the log (see [Where are the log files?](#where-are-the-log-files)). The conversation with the mail server is written there. Set `LEAN_DEBUG` back to `0` afterwards (on Docker, run `docker compose up -d` again).

---

## User Management & Permissions

### What user roles are available in Leantime?

Six roles, from the fewest rights to the most: **Read Only**, **Commenter**, **Editor**, **Company Manager**, **Administrator** and **Owner**. Each role can do everything the roles before it can. See [Roles](https://docs.leantime.io/using-leantime/user-management/#roles) for what each one can do.

### Can I set different permissions per project?

Yes, for people whose company role is Editor or below. On the project's **Team** tab, pick their role for that project from the dropdown on their card. **Inherit** keeps their company role.

Company Managers, Administrators and Owners keep their company role on every project. See [Can someone have a different role on one project?](https://docs.leantime.io/using-leantime/user-management/#can-someone-have-a-different-role-on-one-project)

### How do I add a new user?

1. Click **Company** at the top, then **User Management**.
2. Click **Add User**.
3. Enter their name and email, and choose a **Role**.
4. Tick their projects under **Project Assignment**.
5. Click **Invite User**.

They get an email invitation and set their own password. See [How do I add someone to Leantime?](https://docs.leantime.io/using-leantime/user-management/#how-do-i-add-someone-to-leantime)

### Why can't my user see certain projects?

It depends on the project's **Who can access this project?** setting, in its **Project Details**: only the people on the project's team, everyone at the project's client, or everyone in your organization. Administrators and Owners see every project.

To add someone to a project, open them in **User Management** and tick the project under **Project Assignment**, or tick them on the project's **Team** tab. See [Who can see a project?](https://docs.leantime.io/using-leantime/user-management/#who-can-see-a-project)

### Why is the Commenter role unable to comment?

This is a known bug in some versions. Ensure you're running the latest version of Leantime. If the issue persists, check your project-level permissions for that user.

---

## Authentication (LDAP, OIDC, SSO)

### Does Leantime support Single Sign-On?

Yes. Built into Leantime:
- **OpenID Connect (OIDC):** works with Keycloak, Authentik, Google Workspace, Microsoft Entra ID and other OIDC providers
- **LDAP:** OpenLDAP and Active Directory

The [Advanced Authentication](https://docs.leantime.io/plugins/advanced-authentication/) plugin, from the Leantime Marketplace, adds ready-made sign-in buttons (Google, Microsoft, GitHub, Okta and more), SAML 2.0, and sign-in from the Leantime mobile app. It's for self-hosted Leantime; Leantime Cloud has its own sign-in. See [Authentication](https://docs.leantime.io/installation/authentication-configuration/).

### How do I configure LDAP?

Set `LEAN_LDAP_USE_LDAP=true` in `config/.env`, then add your directory server, the place in the directory where your users are, and which directory fields hold the username, email and name (`LEAN_LDAP_KEYS`). Every setting, an Active Directory example and how to give roles by LDAP group are in [LDAP Configuration](https://docs.leantime.io/installation/authentication-configuration/#ldap-configuration).

### Why isn't LDAP authentication working?

Common issues:
1. **Wrong LDAP type:** Use 'AD' for Active Directory, 'OL' for OpenLDAP
2. **Incorrect DN:** Verify your base DN matches your directory structure
3. **Missing key mappings:** Ensure `LEAN_LDAP_KEYS` maps to your directory's attribute names
4. **Port blocked:** Check that port 389 (or 636 for LDAPS) is accessible

More fixes are in [LDAP Troubleshooting](https://docs.leantime.io/installation/authentication-configuration/#ldap-troubleshooting).

### How do I configure OIDC?

```env
LEAN_OIDC_ENABLE=true
LEAN_OIDC_PROVIDER_URL='https://your-provider.com'
LEAN_OIDC_CLIENT_ID='your-client-id'
LEAN_OIDC_CLIENT_SECRET='your-client-secret'
```

These four lines connect Leantime to your provider. Also add `https://your-leantime-domain.com/oidc/callback` as an allowed callback (redirect) address in your provider. Only people who already have a Leantime account with the same email can sign in, unless you also set `LEAN_OIDC_CREATE_USER=true`. See [OpenID Connect (OIDC)](https://docs.leantime.io/installation/authentication-configuration/#openid-connect-oidc) for each provider.

### Can I disable local login and only use SSO?

Yes. Set `LEAN_DISABLE_LOGIN_FORM=true` in `config/.env` (or your Docker settings) to hide the email and password form on the sign-in page. This only hides the form: accounts keep their passwords. Make sure signing in with your provider works first, and keep a way back in: if the provider is down, set it to `false` again (on Docker, then run `docker compose up -d`). With the [Advanced Authentication](https://docs.leantime.io/plugins/advanced-authentication/#authentication-settings) plugin, you can also switch on **Hide Login Form** under **Company Settings → Authentication Settings**. That setting hides the form even when `LEAN_DISABLE_LOGIN_FORM` is `false`; to turn it off from the server, see [Authentication Settings](https://docs.leantime.io/plugins/advanced-authentication/#authentication-settings).

See [Authentication](https://docs.leantime.io/installation/authentication-configuration/).

---

## To-Dos, Milestones & Project Management

### What's the difference between a to-do and a subtask?

- **To-dos:** the main pieces of work. They show on the [Kanban](https://docs.leantime.io/knowledge-base/kanban/) board, and you can track time on them.
- **Subtasks:** smaller steps inside a to-do. Each has its own status and counts toward its to-do's progress.

Subtasks show on the Kanban board with a subtask marker.

### What's the difference between a milestone and a goal?

- **Milestones:** Groups of to-dos with a date range, displayed on the Timeline/Gantt chart
- **Goals:** OKR-style objectives with measurable metrics (start value, current value, target value)

Goals track outcomes; [milestones](https://docs.leantime.io/using-leantime/roadmap-planning/) track delivery timelines.

### How do I see to-dos on a Gantt chart?

To-dos must be assigned to a milestone to appear on the Timeline view:
1. Create a milestone with start and end dates
2. Assign to-dos to that milestone
3. Navigate to **Timeline** to see the Gantt chart

### Can I log time against subtasks?

In [timesheets](https://docs.leantime.io/using-leantime/timesheets/), you select the parent to-do. Time logged rolls up to the parent to-do's total hours.

### How do I filter to-dos by several things at once?

On the Kanban or Table view:
1. Click the filter icon
2. Select filters for: User, Milestone, Type, Priority
3. Use the search box for text-based filtering

### How do I move a to-do to a different project?

1. Open the to-do
2. Click the three dots (⋮) menu
3. Select **Move To-Do**
4. Choose the destination project

### Can I have multiple Kanban boards per project?

Not directly. Each project has one set of to-do statuses. However, you can use milestones to organize work into logical groupings and filter by milestone.

---

## Timesheets & Time Tracking

### How do I track time on a to-do?

Three ways:
1. **Timer:** open the to-do's ⋮ menu and click **Start Work**. The timer shows at the top of the page while it runs.
2. **On the to-do:** open its **Time Tracking** tab and enter the hours.
3. **A week at a time:** click **My Work**, then **Timesheets**.

See [Time tracking](https://docs.leantime.io/using-leantime/timesheets/).

### Why doesn't my timesheet show all projects?

Your timesheet shows your own time on the projects you're on. Company Managers, Administrators and Owners see everyone's time across all projects under **Company → All Timesheets**. See [How do I see everyone's time?](https://docs.leantime.io/using-leantime/timesheets/#how-do-i-see-everyones-time)

### Can I export timesheet data?

Yes. In **Company → All Timesheets**, filter the list, then click **Export** to download it as a CSV file.

### Why are closed projects still showing in timesheets?

This was a bug in some versions. Update to the latest version where this has been fixed.

---

## Calendar & Integrations

### How do I integrate Leantime with my calendar?

Each person can subscribe to their Leantime calendar from Google Calendar, Outlook or Apple Calendar with an iCal link. See [How do I see my Leantime calendar in Google, Outlook or Apple Calendar?](https://docs.leantime.io/using-leantime/calendars/#how-do-i-see-my-leantime-calendar-in-google-outlook-or-apple-calendar)

### What appears on the calendar?

- To-dos with due dates
- To-dos you've planned to work on: their **Work Start** and **Work End**, as an all-day "Planned:" item or a "Planned Edit:" block
- Milestones with dates
- Calendar events created in Leantime

### Does Leantime support Google Calendar or Outlook sync?

The iCal export is one-way: Leantime → your calendar app (see [Calendars](https://docs.leantime.io/using-leantime/calendars/)). For two-way sync, use the free [CalDAV Calendar Sync](https://docs.leantime.io/plugins/caldav/) plugin, with Apple Calendar, Thunderbird, DAVx5 or a CalDAV server like Nextcloud. The plugin doesn't connect to Google Calendar or Outlook; use the one-way iCal subscription with them.

### Can I schedule to-dos on my calendar?

Yes. Open the to-do and, under **Schedule**, set **Work Start** and **Work End**. A date alone plans the day; a time blocks out the hours (time-boxing). This is when you plan to work on it, separate from the due date. See [What do planned and time-boxed mean?](https://docs.leantime.io/using-leantime/task-management/#what-do-planned-and-time-boxed-mean)

---

## Plugins & Customization

### Where are plugins installed?

Plugins are located in `/var/www/html/app/Plugins/` (or the corresponding Docker volume).

### How do I install a plugin?

- **From the marketplace:** go to **Company → Leantime Apps**, open the plugin, enter its license key and click **Install**. Then open **My Apps** and click **Enable**.
- **By hand:** put the plugin folder in `app/Plugins/`. Then go to **Company → Leantime Apps → My Apps**, click **Activate** next to it under **Downloaded Plugins**, and then **Enable**.

See [Plugin Installation](https://docs.leantime.io/installation/plugin-installation/), which also covers Docker.

### What plugins are available?

Plugins come from the [Leantime Marketplace](https://marketplace.leantime.io/), each with its own license. In Leantime Cloud, they're already switched on, except Advanced Authentication, which is for self-hosted servers. See [Plugins](https://docs.leantime.io/installation/using-plugins/) for what each one does.

### How do I customize the theme colors?

Set these in your `.env` file:

```env
LEAN_PRIMARY_COLOR='#1b75bb'
LEAN_SECONDARY_COLOR='#81B1A8'
LEAN_LOGO_PATH='/dist/images/logo.svg'
```

Each person can then choose them as **Company Colors** under **My Profile → Theme** (see [How do I change how Leantime looks?](https://docs.leantime.io/using-leantime/account-settings/#how-do-i-change-how-leantime-looks)).

---

## Updating & Upgrading

### How do I update Leantime?

Back up first, then:

- **Docker:** run `docker compose pull`, then `docker compose up -d`.
- **Release package:** run `php bin/leantime system:update` as the web server user, or replace the files by hand.

Then open Leantime and select **Update Now!** if it asks to update the database. For every step, see the [Upgrade guide](https://docs.leantime.io/installation/upgrade-guide/).

### Will updating delete my data?

No. Your projects, files and settings stay, as long as they're stored outside the files you replace (in Docker: in volumes). Always [back up](https://docs.leantime.io/installation/backup-restore/) before updating.

**Docker users:** Make sure your database container uses a volume, not storage inside the container.

### How do I know if there's a database update?

After the new files are in place, Leantime sends everyone to its **Update Database** page (`/install/update`) until someone selects **Update Now!** You can also run `php bin/leantime db:migrate`.

### Can I roll back to a previous version?

Yes, if you made a backup. Put the old files back and restore the database backup from before the upgrade. The old version can't use a database that the new version changed. See [How do I go back to the old version?](https://docs.leantime.io/installation/upgrade-guide/#how-do-i-go-back-to-the-old-version)

---

## Troubleshooting

### Where are the log files?

- **Package installation:** in the `storage/logs/` folder inside the Leantime folder, in `leantime.log` or a dated file such as `leantime-2026-11-12.log`. Leantime keeps the dated files for 5 days.
- **Docker:** run `docker compose logs leantime`, or read Leantime's own log with `docker compose exec leantime sh -c 'tail -n 50 storage/logs/leantime*.log'`.

### How do I enable debug mode?

Set `LEAN_DEBUG=true` in your `.env` file. This provides more detailed error messages and logging.

**Warning:** Disable debug mode in production as it exposes sensitive information.

### Why do I get a blank page after changing settings?

This often indicates a PHP error:
1. Check your error logs
2. Verify syntax in your `.env` or configuration file
3. Ensure all required PHP extensions are installed

Common cause: Enabling SMTP without correct configuration.

### Why can't I access Leantime behind a reverse proxy?

Set `LEAN_APP_URL` to the exact address people open, and make sure the proxy passes the `X-Forwarded-Proto` and `X-Forwarded-Host` headers. If that address starts with `https://`, also set `LEAN_SESSION_SECURE = true`. Over plain `http://`, leave it off, or nobody can log in. Configurations for nginx, Apache, Caddy, Traefik and Cloudflare are in [Run Leantime behind a reverse proxy](https://docs.leantime.io/installation/reverse-proxy/).

### I'm locked out. How do I reset the admin password?

**If email works,** click **Forgot password** on the sign-in page. Leantime emails a link to set a new password.

**If email doesn't work,** you have two ways back in, both from the server. Run the commands in the Leantime folder (see [Using the Leantime CLI](https://docs.leantime.io/development/commandline/)); on Docker, put `docker compose exec leantime` in front of each `php` command.

**Option 1: create a new Owner account.** Sign in with it, and you're back in charge of the workspace:

```bash
php bin/leantime user:add --email=you@example.com --password='a-long-new-password' --role=owner
```

The roles are `readonly`, `commenter`, `editor`, `manager`, `admin` and `owner`. Administrators can't set another person's password, so this doesn't unlock the old account; use option 2 for that, or [set up email](https://docs.leantime.io/installation/email-configuration/) and use **Forgot password**.

**Option 2: set a new password in the database.**

1. **Make a password hash** with Leantime's own PHP:

   ```bash
   php -r 'echo password_hash("a-long-new-password", PASSWORD_DEFAULT), PHP_EOL;'
   ```

   It prints a line that starts with `$2y$`. Don't use a website to make the hash: it would see your new password.
2. **Open the database** (on Docker: `docker compose exec leantime_db sh -c 'exec mysql -u"$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DATABASE"'`) and run this, with your hash and your sign-in email:

   ```sql
   UPDATE zp_user SET password = 'PASTE-THE-HASH-HERE' WHERE username = 'you@example.com';
   ```

   The `username` column holds the email address you sign in with.
3. **Sign in** with the new password.

---

## API & Integrations

### How do I access the Leantime API?

1. Get a key. Administrators and Owners create API keys under **Company → Company Settings → API Keys**. Everyone can create a personal access token under **My Profile → Personal Access Tokens**.
2. Send your requests to `https://yourdomain.com/api/jsonrpc`, with the key or token in the header.

See [Use the Leantime API](https://docs.leantime.io/api/usage/).

### Can regular users create API keys?

Not API keys: those are for Administrators and Owners, in [Company Settings](https://docs.leantime.io/using-leantime/company-settings/#how-do-i-create-an-api-key). But every user can create a personal access token under **My Profile → Personal Access Tokens**. A token works like a key, and acts as that person, with their own role and projects. See [Which key should I use?](https://docs.leantime.io/api/usage/#which-key-should-i-use)

### Does Leantime have webhooks?

Yes, two kinds:
- **For one person:** the **Webhooks** tab in **My Profile** sends your notifications to a web address of your own (see [Can I get notifications in Slack, Teams or another tool?](https://docs.leantime.io/using-leantime/notifications/#can-i-get-notifications-in-slack-discord-or-another-chat-tool)).
- **For a project:** the **Integrations** tab in a project's settings posts its updates to Slack, Discord, Mattermost, Telegram or Zulip (see [Project Integrations](https://docs.leantime.io/using-leantime/integrations/)).

Project messages go out right away. On your own server, personal webhooks are sent by Leantime's [scheduled jobs](https://docs.leantime.io/installation/scheduled-jobs-and-redis/), so keep those running.

### Is there an MCP (Model Context Protocol) server?

Yes. The MCP Server plugin lets AI assistants like Claude and ChatGPT work in your Leantime. It's included in Leantime Cloud; on your own server, install it from the Leantime Marketplace. Claude and ChatGPT connect by signing in (Leantime 3.16 or later). Other assistants use a personal access token. See [Leantime MCP Server](https://docs.leantime.io/installation/leantime-mcp/).

---

## Getting Help

### Where can I get community support?

- **GitHub Discussions:** [github.com/Leantime/leantime/discussions](https://github.com/Leantime/leantime/discussions)
- **Discord:** Community chat (link on leantime.io)
- **Community Forum:** [community.leantime.io](https://community.leantime.io)

### How do I report a bug?

Create an issue on GitHub: [github.com/Leantime/leantime/issues](https://github.com/Leantime/leantime/issues)

Include:
- Leantime version
- Installation method (Docker, standard, etc.)
- Steps to reproduce
- Error messages or logs

### Does Leantime offer paid support?

Yes, Leantime offers managed hosting, installation services, and support plans. Visit [leantime.io](https://leantime.io) for details.