Self-hosting
Install and configure plugins
- Self-hosted only
At a glance
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
- The Leantime Marketplace, to get a license key
- Leantime, under Company → Leantime Apps
- Leantime's
config/.envfile, only for plugins that need settings (such as Advanced Authentication)
At the end
The plugin installed and enabled in Leantime, ready to use.
Plugins add features to Leantime. You get them from the Leantime Marketplace, or install your own plugin by hand.
Prerequisites
Section titled “Prerequisites”Before you install a plugin, make sure Leantime can write to its plugins folder (app/Plugins/).
Docker Installations
Section titled “Docker Installations”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/PluginsOr if using docker run:
docker run -d \ -v /path/to/plugins:/var/www/html/app/Plugins \ # ... other options leantime/leantime:latestThe 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:
docker exec -u root <container_name> chown -R www-data:root /var/www/html/app/Pluginsdocker exec -u root <container_name> chmod -R g=u /var/www/html/app/PluginsThe 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.
Package/Traditional Installations
Section titled “Package/Traditional Installations”Ensure the app/Plugins/ directory exists and is writable by your web server user:
sudo mkdir -p /var/www/html/leantime/app/Pluginssudo chown -R www-data:www-data /var/www/html/leantime/app/Pluginssudo chmod -R 755 /var/www/html/leantime/app/PluginsShared Hosting (cPanel)
Section titled “Shared Hosting (cPanel)”Using File Manager:
- Navigate to your Leantime installation directory
- Verify the
app/Plugins/folder exists - If missing, create it
- Set permissions to 755 via File Manager or terminal
Installing from the Marketplace
Section titled “Installing from the Marketplace”The easiest way to install plugins is through the built-in marketplace interface.
Step 1: Open Leantime Apps
Section titled “Step 1: Open Leantime Apps”- Sign in to Leantime as an Owner or Administrator.
- Open Company in the top menu.
- In the left menu, under Administration, click Leantime Apps. The Explore Apps tab lists the plugins on the marketplace.
- Click Learn More on a plugin to see what it does and which Leantime versions it supports (the Compatibility tab).
Step 2: Get a License Key
Section titled “Step 2: Get a License Key”- On the plugin’s Learn More screen, click Get a license. The plugin’s page on marketplace.leantime.io opens.
- Choose the number of users and complete the purchase.
- 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.
Step 3: Enter the Key and Install
Section titled “Step 3: Enter the Key and Install”- Back in Leantime Apps → Explore Apps, click Learn More on the plugin you bought.
- Choose a version that supports your Leantime version (see the Compatibility tab), paste the key into License Key and click Install.
- Wait for “Plugin installed successfully!”. If you see an error instead, see License Key Not Recognized.
Step 4: Enable the Plugin
Section titled “Step 4: Enable the Plugin”- Open the My Apps tab. The plugin is listed under Installed Plugins.
- Click Enable.
- Some plugins need more setup, for example variables in your
config/.envfile. 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.
Manual Plugin Installation
Section titled “Manual Plugin Installation”For custom plugins, development builds, or plugins not in the marketplace:
Step 1: Obtain the Plugin Files
Section titled “Step 1: Obtain the Plugin Files”Download or create your plugin package. Plugin packages are typically ZIP files containing a folder with the plugin name.
Step 2: Upload to the Plugins Directory
Section titled “Step 2: Upload to the Plugins Directory”Via SFTP/FTP:
- Connect to your server
- Navigate to
app/Plugins/ - Upload the plugin folder (not the ZIP file—extract first)
Via Command Line:
cd /var/www/html/leantime/app/Pluginsunzip /path/to/PluginName.zipchown -R www-data:www-data PluginNamechmod -R 755 PluginNameDocker:
# Copy plugin to containerdocker 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/PluginNamedocker 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:
- Upload the ZIP file to
app/Plugins/ - Right-click the ZIP file and select Extract
- Delete the ZIP file after extraction
- Verify the plugin folder structure is correct
Step 3: Verify Plugin Structure
Section titled “Step 3: Verify Plugin Structure”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 logicThe 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.
Step 4: Activate and Enable
Section titled “Step 4: Activate and Enable”- Go to Company → Leantime Apps → My Apps.
- Your plugin is listed under Downloaded Plugins. Click Activate.
- It moves to Installed Plugins. Click Enable.
Plugin Bundles
Section titled “Plugin Bundles”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.
Updating Plugins
Section titled “Updating Plugins”Marketplace Plugins
Section titled “Marketplace Plugins”- Go to Company → Leantime Apps → My Apps. Leantime checks for updates once a day; click Check for updates to check now.
- 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?
Manual Updates
Section titled “Manual Updates”For plugins you installed from a folder:
- Disable the plugin in My Apps.
- Back up the existing plugin folder.
- Replace it with the new version’s files.
- 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) - Enable the plugin again.
Uninstalling Plugins
Section titled “Uninstalling Plugins”Disable First
Section titled “Disable First”- Go to Company → Leantime Apps → My Apps.
- Click Disable next to the plugin.
Disabling keeps the plugin’s data. Click Enable to get it back.
Complete Removal
Section titled “Complete Removal”- Back up your database.
- Disable the plugin, then click Remove.
- (Optional) Delete the plugin’s folder from
app/Plugins/.
Plugin Configuration
Section titled “Plugin Configuration”Some plugins require additional configuration after installation, typically through environment variables in your config/.env file.
General Configuration Pattern
Section titled “General Configuration Pattern”Most plugins follow the pattern:
PLUGINNAME_SETTING=valueCheck the plugin’s documentation or marketplace page for specific configuration options.
Advanced Auth Plugin
Section titled “Advanced Auth Plugin”Setting up the Advanced Authentication plugin (sign-in providers, SAML, automatic accounts and the mobile app) is on its own page: Advanced Authentication.
Troubleshooting
Section titled “Troubleshooting”Plugin Not Appearing After Upload
Section titled “Plugin Not Appearing After Upload”Check folder structure:
ls -la app/Plugins/PluginName/Ensure composer.json exists at the root of the plugin folder.
Check permissions:
# The web server user must own the filessudo 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):
sudo -u www-data php ./bin/leantime cache:clearAllPlugin 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.
- 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.
- 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>.pharand<PluginName>.phar.pubkey. See Manual Plugin Installation. - Clear Leantime’s cache as the web server user:
sudo -u www-data php ./bin/leantime cache:clearAllIf 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.
- 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/. - Unpack the
.pharinto that same folder:
cd app/Plugins/AdvancedAuthphp -r '$phar = new Phar("AdvancedAuth.phar"); $phar->extractTo(".", null, true);'- Check that
composer.jsonandregister.phpare now in the folder, next toAdvancedAuth.phar. - Leave
AdvancedAuth.pharandAdvancedAuth.phar.pubkeywhere they are. Leantime still uses the.pharto load the plugin and check its license. If you delete or move it, the plugin doesn’t load. - 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.
Plugin Installation Fails (Docker)
Section titled “Plugin Installation Fails (Docker)”Volume not mounted:
Check your docker-compose.yml includes the Plugins volume:
volumes: - plugins:/var/www/html/app/PluginsRestart with:
docker compose downdocker compose up -dPermission issues: the container runs as www-data, so fix the owner as root:
docker exec -u root <container_name> chown -R www-data:root /var/www/html/app/Pluginsdocker exec -u root <container_name> chmod -R g=u /var/www/html/app/PluginsPlugin Disappears After Container Restart
Section titled “Plugin Disappears After Container Restart”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.
- Stop the container
- Update
docker-compose.ymlto mount the Plugins volume - Reinstall plugins after restarting
License Key Not Recognized
Section titled “License Key Not Recognized”- 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.
Plugin Was Disabled On Its Own
Section titled “Plugin Was Disabled On Its Own”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.
Plugin Causes Errors After Enabling
Section titled “Plugin Causes Errors After Enabling”- 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) - If you can’t access Settings, disable via database:
UPDATE zp_plugins SET enabled = 0 WHERE foldername = 'PluginName';- Clear cache:
sudo -u www-data php ./bin/leantime cache:clearAll - Check
storage/logs/leantime-*.logfor error details - Verify PHP version compatibility (Leantime and its plugins need PHP 8.2 or later)
Database Schema Mismatch After Upgrade
Section titled “Database Schema Mismatch After Upgrade”If plugins fail after you upgraded Leantime, the database update probably didn’t finish. Back up your database, then:
- Open Leantime in your browser. If it shows Update Database, click Update Now!
- 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.
Sign-in provider or SAML problems
Section titled “Sign-in provider or SAML problems”See Troubleshooting on the Advanced Authentication page.
Getting Help
Section titled “Getting Help”- Community Forum: community.leantime.io
- Discord: Leantime Discord
- Plugin Support: Paid plugins include support via marketplace.leantime.io
- Bug Reports: GitHub Issues
Was this page helpful?
Thanks, glad it helped.
Thanks for telling us. What was missing?
