Skip to content
Display

Display

Star12.2k

Self-hosting

Install and configure plugins

  • Self-hosted only

At a glance

TimeAbout 10 min

LevelBeginner

You need

  • An administrator account in Leantime
  • A license key from the Leantime Marketplace, for paid plugins
  • On Docker: the plugins folder kept in a volume, so plugins survive a restart

Where you'll work

  1. The Leantime Marketplace, to get a license key
  2. Leantime, under Company → Leantime Apps
  3. Leantime's config/.env file, only for plugins that need settings (such as Advanced Authentication)

At the end

The plugin installed and enabled in Leantime, ready to use.

Markdown

Plugins add features to Leantime. You get them from the Leantime Marketplace, or install your own plugin by hand.

Before you install a plugin, make sure Leantime can write to its plugins folder (app/Plugins/).

Critical: You must mount the Plugins folder as a volume. Without this, plugins will disappear after container restarts.

In your docker-compose.yml, ensure you have:

volumes:
- plugins:/var/www/html/app/Plugins

Or if using docker run:

Terminal window
docker run -d \
-v /path/to/plugins:/var/www/html/app/Plugins \
# ... other options
leantime/leantime:latest

The www-data user must have write access to the Plugins folder. The Leantime container runs as www-data, not as root, so it can’t change who owns the files itself. If the folder belongs to another user, for example a volume made by an older image, fix it once as root:

Terminal window
docker exec -u root <container_name> chown -R www-data:root /var/www/html/app/Plugins
docker exec -u root <container_name> chmod -R g=u /var/www/html/app/Plugins

The first line makes the container’s www-data user the owner. The second gives the root group the same rights, as the folders in the image have. With Docker Compose, use docker compose exec -u root leantime instead of docker exec -u root <container_name>. For volumes that hold other folders, see Docker troubleshooting.

Ensure the app/Plugins/ directory exists and is writable by your web server user:

Terminal window
sudo mkdir -p /var/www/html/leantime/app/Plugins
sudo chown -R www-data:www-data /var/www/html/leantime/app/Plugins
sudo chmod -R 755 /var/www/html/leantime/app/Plugins

Using File Manager:

  1. Navigate to your Leantime installation directory
  2. Verify the app/Plugins/ folder exists
  3. If missing, create it
  4. Set permissions to 755 via File Manager or terminal

The easiest way to install plugins is through the built-in marketplace interface.

  1. Sign in to Leantime as an Owner or Administrator.
  2. Open Company in the top menu.
  3. In the left menu, under Administration, click Leantime Apps. The Explore Apps tab lists the plugins on the marketplace.
  4. Click Learn More on a plugin to see what it does and which Leantime versions it supports (the Compatibility tab).
  1. On the plugin’s Learn More screen, click Get a license. The plugin’s page on marketplace.leantime.io opens.
  2. Choose the number of users and complete the purchase.
  3. Your license key arrives by email with your order receipt. Lost it? The Lost License page sends it again.

Each plugin has its own license key, also when you buy a bundle. You install each plugin separately with its own key. For tiers, bundles and the yearly updates plan, see Buy a plugin from the Leantime Marketplace.

  1. Back in Leantime Apps → Explore Apps, click Learn More on the plugin you bought.
  2. Choose a version that supports your Leantime version (see the Compatibility tab), paste the key into License Key and click Install.
  3. Wait for “Plugin installed successfully!”. If you see an error instead, see License Key Not Recognized.
  1. Open the My Apps tab. The plugin is listed under Installed Plugins.
  2. Click Enable.
  3. Some plugins need more setup, for example variables in your config/.env file. If the plugin has a settings screen, a Settings link appears next to it. See Plugin Configuration.

Leantime stores the key with the plugin, so updates don’t ask for it again. For what happens when you add users, update Leantime or a plugin fails, see Plugin Licenses, Updates and Problems.


For custom plugins, development builds, or plugins not in the marketplace:

Download or create your plugin package. Plugin packages are typically ZIP files containing a folder with the plugin name.

Via SFTP/FTP:

  1. Connect to your server
  2. Navigate to app/Plugins/
  3. Upload the plugin folder (not the ZIP file—extract first)

Via Command Line:

Terminal window
cd /var/www/html/leantime/app/Plugins
unzip /path/to/PluginName.zip
chown -R www-data:www-data PluginName
chmod -R 755 PluginName

Docker:

Terminal window
# Copy plugin to container
docker cp /path/to/PluginName <container_name>:/var/www/html/app/Plugins/
# Give the files to the container's www-data user (run as root)
docker exec -u root <container_name> chown -R www-data:root /var/www/html/app/Plugins/PluginName

docker cp creates the files as root, and Leantime runs as www-data. Without the second command, Leantime can’t update or remove the plugin.

cPanel File Manager:

  1. Upload the ZIP file to app/Plugins/
  2. Right-click the ZIP file and select Extract
  3. Delete the ZIP file after extraction
  4. Verify the plugin folder structure is correct

A properly structured plugin folder should look like:

app/Plugins/
└── PluginName/
├── composer.json # Required: plugin name, version, homepage, authors and supported Leantime versions
├── register.php # Registers menus, events and settings
├── Controllers/ # Pages
├── Templates/ # Blade templates
├── Language/ # Translation files
└── Services/ # Business logic

The composer.json needs at least:

{
"name": "vendor/pluginname",
"description": "Plugin description",
"version": "1.0.0",
"type": "leantime-plugin",
"homepage": "https://example.com/pluginname",
"authors": [
{
"name": "Your name",
"email": "you@example.com"
}
],
"extra": {
"leantime": {
"requires": ">=3.6 <4.0"
}
}
}

Leantime needs name, description, version, homepage and authors to list the plugin. If one is missing, the plugin doesn’t show under Downloaded Plugins.

extra.leantime.requires lists the Leantime versions the plugin supports. Leantime doesn’t load a plugin on other versions. A plugin that leaves it out is treated as supporting Leantime 3.x. See Plugin Development.

  1. Go to Company → Leantime Apps → My Apps.
  2. Your plugin is listed under Downloaded Plugins. Click Activate.
  3. It moves to Installed Plugins. Click Enable.

Bundles get you several plugins for one team size in one purchase. You still receive a separate license key for each plugin, and you install each plugin with its own key.


  1. Go to Company → Leantime Apps → My Apps. Leantime checks for updates once a day; click Check for updates to check now.
  2. A plugin with an update shows the new version, for example “v1.4.0 available”. Click Update.

Leantime uses the license key the plugin was installed with, and puts the previous version back if the new one doesn’t load. To install minor and patch updates without clicking, turn on Update plugins automatically. See How do plugin updates work?

For plugins you installed from a folder:

  1. Disable the plugin in My Apps.
  2. Back up the existing plugin folder.
  3. Replace it with the new version’s files.
  4. Clear the cache: sudo -u www-data php ./bin/leantime cache:clearAll (as the web server user, so new cache files don’t belong to root)
  5. Enable the plugin again.

  1. Go to Company → Leantime Apps → My Apps.
  2. Click Disable next to the plugin.

Disabling keeps the plugin’s data. Click Enable to get it back.

  1. Back up your database.
  2. Disable the plugin, then click Remove.
  3. (Optional) Delete the plugin’s folder from app/Plugins/.

Some plugins require additional configuration after installation, typically through environment variables in your config/.env file.

Most plugins follow the pattern:

PLUGINNAME_SETTING=value

Check the plugin’s documentation or marketplace page for specific configuration options.


Setting up the Advanced Authentication plugin (sign-in providers, SAML, automatic accounts and the mobile app) is on its own page: Advanced Authentication.


Check folder structure:

Terminal window
ls -la app/Plugins/PluginName/

Ensure composer.json exists at the root of the plugin folder.

Check permissions:

Terminal window
# The web server user must own the files
sudo chown -R www-data:www-data app/Plugins/
sudo chmod -R 755 app/Plugins/

Clear cache (as the web server user, so new cache files don’t belong to root):

Terminal window
sudo -u www-data php ./bin/leantime cache:clearAll

Plugin Doesn’t Load on Network Storage (Azure Files, SMB)

Section titled “Plugin Doesn’t Load on Network Storage (Azure Files, SMB)”

Marketplace plugins are a single .phar file, and PHP runs the plugin from inside it. On some network file shares, such as Azure Files mounted over SMB, PHP can’t read .phar files reliably. The plugin then shows as installed and enabled but doesn’t appear anywhere in Leantime.

  1. Clear PHP’s cache. Restart PHP-FPM or your web server. On Azure App Service, restart the app. This clears OPcache, which can hold on to a copy of the plugin that didn’t load.
  2. Keep the plugin on the server’s own disk. Unzip the plugin download into app/Plugins/<PluginName>/ on local storage rather than the network share, so the folder holds <PluginName>.phar and <PluginName>.phar.pubkey. See Manual Plugin Installation.
  3. Clear Leantime’s cache as the web server user:
Terminal window
sudo -u www-data php ./bin/leantime cache:clearAll

If the plugin has to stay on the share, unpack the .phar so PHP can read the plugin’s files as plain files. This has worked on Azure App Service with an Azure Files share.

  1. Go to the plugin’s folder. The folder name must match the plugin’s name exactly, including upper and lower case, for example app/Plugins/AdvancedAuth/.
  2. Unpack the .phar into that same folder:
Terminal window
cd app/Plugins/AdvancedAuth
php -r '$phar = new Phar("AdvancedAuth.phar"); $phar->extractTo(".", null, true);'
  1. Check that composer.json and register.php are now in the folder, next to AdvancedAuth.phar.
  2. Leave AdvancedAuth.phar and AdvancedAuth.phar.pubkey where they are. Leantime still uses the .phar to load the plugin and check its license. If you delete or move it, the plugin doesn’t load.
  3. Give the web server user the new files (chown -R www-data:www-data .), restart PHP and clear Leantime’s cache as above.

If PHP can’t open the .phar on the share at all, copy the .phar and .phar.pubkey to a local folder, unpack them there, and copy the unpacked files into the plugin’s folder.

An update replaces the .phar but not the unpacked files. Unpack the new .phar again after every update, including automatic ones. Keeping plugins on local storage avoids this step.

Volume not mounted:

Check your docker-compose.yml includes the Plugins volume:

volumes:
- plugins:/var/www/html/app/Plugins

Restart with:

Terminal window
docker compose down
docker compose up -d

Permission issues: the container runs as www-data, so fix the owner as root:

Terminal window
docker exec -u root <container_name> chown -R www-data:root /var/www/html/app/Plugins
docker exec -u root <container_name> chmod -R g=u /var/www/html/app/Plugins

This indicates the Plugins folder is not properly mounted as a volume. Without a volume, everything in the container is lost when the container is recreated.

  1. Stop the container
  2. Update docker-compose.yml to mount the Plugins volume
  3. Reinstall plugins after restarting
  • Enter the key exactly as received, with no spaces before or after it.
  • Use the key for this plugin. A bundle gives you a separate key for each plugin, and each one only installs its own plugin.
  • Count your active users. If you have more than your license allows, the marketplace refuses the install. See What counts as a user?
  • Check the plugin’s Compatibility tab supports your Leantime version.
  • Make sure your server can reach https://marketplace.leantime.io (check firewall and proxy settings).
  • Lost the key? The Lost License page sends it again.
  • Still stuck? Contact the marketplace.

Leantime switches a plugin off when it keeps failing or when your active users go over its license. It stops loading a plugin that doesn’t support your Leantime version. In each case, Owners and Administrators get a notification that says why. See Plugin Licenses, Updates and Problems.

  1. Disable the plugin in Company → Leantime Apps → My Apps, or from the server with sudo -u www-data php ./bin/leantime plugin:disable "<plugin name>" (see Using the Leantime CLI)
  2. If you can’t access Settings, disable via database:
UPDATE zp_plugins SET enabled = 0 WHERE foldername = 'PluginName';
  1. Clear cache: sudo -u www-data php ./bin/leantime cache:clearAll
  2. Check storage/logs/leantime-*.log for error details
  3. Verify PHP version compatibility (Leantime and its plugins need PHP 8.2 or later)

If plugins fail after you upgraded Leantime, the database update probably didn’t finish. Back up your database, then:

  1. Open Leantime in your browser. If it shows Update Database, click Update Now!
  2. Or run the update from the server, as the web server user so new files don’t belong to root: sudo -u www-data php ./bin/leantime db:migrate (in Docker: docker compose exec leantime php bin/leantime db:migrate)

Don’t add columns to the database by hand. The update adds them, and changes made by hand can make it fail.

See Troubleshooting on the Advanced Authentication page.


Was this page helpful?