Installing modules
How to install a module from the marketplace or a ZIP archive, deal with dependencies and ionCube, find the module settings, and update, turn off or remove a module.
A module from the Flute catalogue installs with one button: the site downloads it, checks the signature, installs the modules it needs and turns it on. A module you have as an archive is uploaded from the same screen. Only the site owner (admin.boss) can do any of this.
From the marketplace
Connect the Flute key
The catalogue works only with a connected Flute key. Without one, the "Modules" tab shows "Connect your site to the Flute catalog" and a "Connect Flute key" button. Getting and connecting the key is covered in Flute key.
Find the module
Open AdminExtensionsModules. Categories and filters are on the left, search on top. Click a module to open its page with screenshots, the description, "Compatibility" and "Dependencies".

Click "Install"
The admin asks "Are you sure you want to install module …?". If the module needs other modules, the question becomes "«…» needs these modules: …. Install and turn them on along with it?", and they are installed with it. For a module that has to be bought, the button says "Buy" and opens flute-cms.com. If you have already bought it and the button has not changed, click "Already bought, install". Buying a module or adding a free one to the site license is covered in Flute account.
Wait for the install
While the module installs, its card says "Installing…". When it is done the module is already on, and the card button changes to "Configure" or "Open". If the install fails, the card shows "Install failed", the reason in "Could not install: …" and a "Try again" button.
If a queue worker runs on the site, the install goes to the background. Without one it runs inside the request, so keep the page open until it finishes.
Every archive from the catalogue is signed by the Flute platform, and the site checks the signature before installing. An archive with a bad signature is refused: "Module package signature is invalid. The archive may have been tampered with. Installation aborted.".
From a ZIP archive
This is how you install modules by other authors and modules downloaded separately.
Open the upload window
AdminExtensionsInstalled, the "Upload Module" button. You can also drop the archive straight onto the page.

Pick the archive
Any ZIP with a module.json inside works, up to 50 MB. If PHP has a lower upload_max_filesize, the limit is lower, and the window shows it under the field. Click "Install". The admin may ask for your password again, as described in Password again in the admin panel.
Turn the module on
After "Uploading", "Checking the archive" and "Installing" you see "Module "…" installed" and "It is off for now. Enable it when you are ready.". Click "Enable now", or turn the module on later with its switch in the list.
If that module is already installed, the window answers "Module "…" is already installed. You can update it from this archive." and offers "Replace installed version".
You can also put a module in place by hand: unpack it into app/Modules/<Key> over FTP or SSH, click "Refresh List" on the "Installed" tab, then "Install" next to the module in the "Ready to install" group.
Dependencies
What a module needs is written in the dependencies block of module.json. Here is the Tebex module:
"dependencies": {
"flute": "^2.0",
"modules": {
"Shop": ">=1.0.0",
"Rewards": ">=1.0.0"
},
"suggests": {
"FiveMKit": ">=1.0.0"
}
}modules are required: without them the module will not turn on. suggests are only recommendations. The module works without them, and when they are present the site loads them first. The other keys of the block are listed at the end of the page.
When a needed module is on the site, the admin installs and turns it on along with yours. If it is not even in the modules folder, the install stops, and the module page shows "Missing dependencies" with the list. Install the missing module from the catalogue and try again. You cannot turn off a module that active modules depend on: "Active modules depend on it: …. Turn them off first.".
On the module page in AdminExtensionsInstalled, the "Dependencies" block shows both sides: "Needs" and "Needed by".

Encoded modules and ionCube
The platform encrypts paid modules with ionCube for your site's licence, and free modules come as plain PHP. Both are signed by the platform. A paid module needs ionCube Loader, which FrankenPHP does not load, so such a site needs PHP-FPM. On a site without the loader, such a module shows "Needs ionCube" in the catalogue and "This module needs ionCube Loader" on its page. How to enable the loader and how a module checks its licence is in Requirements.
Licence and update period
The site gets the licence for bought modules through the Flute key and checks it with the platform regularly. The date is shown in Flute key, on the "License valid until" line. If Flute has not confirmed the licence for a long time, the licensed modules keep working until the date shown and then turn off until the next successful sync. The modules' data stays in place.
Each bought module also has an update period. Once it runs out, the module keeps working, and the update center marks it "Renew updates": new versions arrive after you renew. More in Updates.
Module settings
A module with settings of its own has a "Module settings" page at /admin/modules/<Key>/settings, for example /admin/modules/Analytics/settings. You get there from the "Settings" tab of the module's row in the admin menu, the "Settings" button on the module page, or "Configure" in the catalogue. A module without a menu row opens its settings only from its page in "Extensions".
Update a module
New module versions show up in the update center together with themes, and "Update all" is there too, as described in Updates. The "Installed" tab shows "Module updates available: …" above the list, and the module page gets an "Update to v…" button.
A module by another author is updated with a new archive: upload it and click "Replace installed version". If you replaced the files by hand, the module page says "Files of v… are uploaded" with an "Apply update" button. Until you click it the old version runs and the database migrations are not applied.
If an update fails, the site puts the old files back. Database changes the update had already made cannot always be rolled back, and then you see "The update failed. The old files are back, but the database changes it had already made could not be undone. Details are in the logs.".
Turn off and remove
"Turn off" on the module page, or the switch in the list, turns the module off: its pages, menu items and tasks go away, while its data and settings stay. The same switch turns it back on. You can select several modules in the list and turn them off at once.
"Delete" removes the module completely: its database tables, its settings and its folder of files. First the admin asks "Are you sure you want to delete this module?".
All module data will be lost
Removing a module wipes its tables: store orders, punishments, statistics, whatever it kept. They can only come back from a backup. If you may need the module later, turn it off instead, or make a backup first.
Console commands
The console has no commands for installing modules; modules are installed from the admin. For maintenance, the migration commands help:
php flute migrate --module=Shop
php flute migrate:status
php flute migrate:rollback --module=Shop --steps=1The first applies one module's migrations, the second shows the state of migrations of the engine and every module, the third rolls back the module's last migration. Modules add commands of their own, and php flute list shows them. Every engine command with its options is in CLI commands.
This is what migrate --module=Shop prints when the module had one new migration, and when the module name has a typo:
[Shop] migrated: 0_default_change_flute_shop_products_add_stock_add_requires_change_flute_shop_product_offers_add_days_change_flute_shop_order_items_add_renew
[OK] Applied 1 migration(s).
Seeders synced (permissions, roles).With no new migrations the command prints [OK] Nothing to migrate — database is up to date.
Troubleshooting
For any other message, use the error lookup.
| Message | What to do |
|---|---|
| "This module was written for Flute 1.x and needs adaptation for Flute 2.0, so it wasn't installed." | you need the 2.0 version of the module, see 1.x modules on Flute 2.0 |
| "This module needs … or newer; you have …." | update Flute or PHP to the required version |
| "A dependency is missing: …" | install and turn on the named module, then try again |
| "There is no module.json or theme.json in the archive, so it is neither a Flute module nor a theme." | the archive has an extra folder on top, or it is not a module. Download the module archive again |
| "The file is larger than …. Make the archive smaller or raise upload_max_filesize and post_max_size in PHP." | raise the PHP limits, or put the module into app/Modules by hand |
| "Installation did not finish. The reason is in the logs." | open Journal or Errors |
| "Another marketplace install or update is already running. Please wait and try again." | wait for the current install to finish |
The catalogue is unavailable right now
The Flute server did not answer. Check that the site's server can reach the internet, for example with curl -I https://flute-cms.com, and click "Try again" in a minute.
| Key | What is checked |
|---|---|
flute | the engine version, such as ^2.0. An empty value, or a constraint that 1.x satisfies, marks a module for Flute 1.x |
php | the PHP version |
modules | modules and their versions; without them the module will not turn on |
theme | a theme and its version |
extensions | PHP extensions that must be loaded |
composer | Composer packages and their versions |
suggests | recommended modules, never checked |