Skip to Content
Getting started

Moving from Flute 1.x

How to move from Flute 1.x to 2.0: install 2.0 next to the old site on the same domain and carry over accounts, roles, pages and servers with the migration wizard.

Flute 2.0 does not install on top of 1.x. You install it into a neighbouring folder on the same domain, and the migration wizard takes accounts with their passwords, roles, pages, menus, servers and payment gateways from the old site. The wizard only reads the old site: its files and database stay as they were, so you can go back to 1.x at any moment.

A small site moves in 15 to 25 seconds. A site with 12,000 users moved in about 14 minutes.

1.x modules and the 1.x theme do not run on 2.0, so 2.0 gets a new database and a folder of its own. The domain stays the same: paid modules connect only to a site on the domain recorded in your flute-cms.com account.

1.x is running

  1. 1Purchases in the account

Maintenance

  1. 21.x closed
  2. 32.0 next to it
  3. 4Key and modules
  4. 5Move
  5. 6Check

Site on 2.0

  1. 7Done

While you move your purchases into the account, 1.x keeps working as usual. Then the old site goes into maintenance and stays closed while you install 2.0, connect the key, carry the data over and check the result. Visitors see the site again once you open 2.0.

The move on video

The steps below carry short clips of a real move of a demo 1.x site: connecting the old folder, sorting out the old modules, turning on a module, the dry run, the move itself and its rollback. All the clips together run about two minutes, and the move of a small site takes under half a minute.

Step by step

Move your 1.x purchases into the account

If you bought modules for 1.x, sign in to your flute-cms.com account, open "Move purchases from Flute 1.x" and press "Move purchases". Enter the email of your old account, the one linked to Discord: a link sent there attaches the purchases to your account. Then, under "What to do with the purchases", choose to keep the modules for good ("Move the modules") or take them as a subscription. You choose once, and the account shows the deadline next to it.

Put 1.x into maintenance

Turn on maintenance mode in the old site's admin panel. From now on the 1.x database does not change. A repeated move does not update records that already came over, so a purchase or top-up made on 1.x after the move would not reach the new site.

Install 2.0 into a neighbouring folder

Say the old site lives in /var/www/site-1.x. Install 2.0 into /var/www/site-2.0 with a new empty database, as described in installation, and point the domain root at the new folder. Do not delete or move the 1.x folder: the wizard reads its config, the site key and the uploaded files from it.

If 1.x runs on another server, copy its whole folder to this server. The wizard finds the database at the address in the old config, and if that server is closed to the new one, upload the database as a dump.

If you manually updated the 2.0 engine before the move, run php flute migrate from the new site directory.

Connect the Flute key and install modules

The key is connected from the "Community setup" list, as in first steps. Then install the 2.0 modules that replace your 1.x modules: the replacements are listed in 1.x modules on Flute 2.0. While the move is running you can close the new site with "Maintenance Mode" in settings.

Give the old site folder

Open AdminMove from another engine, press "New move" and choose "Flute 1.x". In "Old site folder" enter the full path, for example /var/www/site-1.x, and press "Check connection". The wizard reads the database address, its password and the old site key from that site's config on its own.

If the 1.x database sits on the same server or in a local network, the wizard shows "This is an internal address". Press "I confirm, connect" if the old site's database really is there.

If config/database.php has no database address or the 1.x database cannot be reached from this server, switch to "Dump file". Upload an .sql or .sql.gz export and give the same old site folder: the wizard still takes the files and the key from it.

Check what was found

The "What the old base holds" screen shows the 1.x version, the number of accounts and the balance total. The "Key of the old site" row tells whether the key was found in config/app.php. Without it the payment gateway keys cannot be read and have to be typed in again.

Below come the 1.x modules whose records will not move as things stand, each with what to do. A module whose data will move is not in this list: its records show up as lines on the "Rules" step and in the dry run. What each message means is covered in old modules.

Start the move

On the "Rules" step, untick what you do not need to carry over. "Carry pictures" is on from the start; without it the old site's uploaded files are not copied. Press "Dry run": the wizard writes nothing and shows what will be created, merged and skipped. If the numbers look like your site, press "Next" and "Start the move".

If the 1.x owner account merges into an existing 2.0 account, “Fill empty fields” (fill) keeps the 2.0 balance as it was. To add the 1.x balance, choose “Fill and add the balance” (fill_balance) before starting, or credit the amount manually after the move.

Account rules, pausing and the console command for a large move work the same as for other sources: Move from another engine.

Read the report and open the site

If you rehearse the move on a test site, clear the imported servers’ RCON passwords as soon as the move finishes. This prevents the test site from sending commands to live servers.

When the move finishes, its page holds the report: how many records of each kind were created, merged with existing ones, skipped and already moved before. "CSV report" exports the full list, with the reason next to every skipped record.

News covers and other uploads can still reference their original paths. Manually copy public/assets/uploads from the 1.x site to the same location on 2.0, keeping the folder structure.

After you migrate VIP data, GiveCore checks it against the connected plugin database hourly. During synchronization it can write changes to the database, reload the admin list over RCON and send notifications. This is expected. Connect the live VIP database when you are ready to switch over.

Sign in with your old account and go through the main pages. If everything is in place, turn maintenance mode off on 2.0.

What moves

WhatHow
Accountswith their old passwords, both engines store them the same way. Sign-ins and sessions do not move, everyone signs in again
Social sign-insign-in methods and links to Steam, Discord and other networks
Roles and permissionsroles are matched by name. If 2.0 already has a role with that name, its permissions stay unchanged. The owner role is only given by hand
Profiles, currencies, balance historyas they were. An account that was already on the new site keeps its history unchanged
Payment gatewayswith their keys, if the old site key was found
Serverswith their databases and game modes
Menu, footer, redirects, announcements, promo codesas they were. How many times a promo code was used stays on the old site
Site settingsonly those still at their defaults on 2.0. What you set on the new site is left alone
Uploaded fileswith "Carry pictures" on, at the same paths, so links to them in texts keep working
Pagesbecome section pages. Blocks that stood side by side become columns. A widget with no 2.0 block stays as an "Old widget" block

API keys, 1.x modules and the 1.x theme, and the design do not move. Issue new API keys in API access.

What stays on 1.x and why

A 1.x page inside which a module showed its own page does not move. On 2.0 it would cover the module's own address. The report marks it with "The page framed an old module's own page; build it again around the module".

A record with a restriction moves only if the restriction moves with it. These are pages with access permissions, menu items for certain roles and promo codes for certain roles. If the permission or the role could not be carried over, the wizard skips the record, otherwise it would open to everyone on the new site.

A payment gateway without the old site key stays on 1.x with the reason "The keys of the gateway cannot be read without the key of the old site". Set it up on 2.0 again as described in payment providers. The wizard also skips broken records and writes the reason into the report.

Old modules

The data of 1.x modules is carried over by the 2.0 modules that replace them: shop, news, reviews, chat, clans, referrals, push notifications, role sync, rules, punishments in place of BansManager, GiveCore in place of GiveCore and VipList, Discord in place of DiscordWebhooks, and skins. The full list of replacements is in 1.x modules on Flute 2.0.

On the "What the old base holds" screen the wizard gives each module one of three messages:

MessageWhat to do
"Install the … module and they will come over"install or turn on that module in AdminExtensions and connect to the old site again. The line disappears and the module's records show up under "Rules"
"The module cannot carry them over yet"there is a replacement, but it does not take these records yet. Move the rest: the 1.x database does not change, so you can run the move again once the module is updated. What already came over is not created twice
"No module on this site takes this data, it stays behind"the module has no 2.0 replacement, check its row in the replacements table. The data stays in the 1.x database only

Rolling back

You can roll back the move itself or the whole switch. Open the move in AdminMove from another engine, press "Roll back" and confirm. The wizard removes what the move added: roles, pages, menu items, gateways, servers, files and module records. What was on the 2.0 site before the move stays as it was.

An account nobody has used on the new site yet is deleted whole, and the rollback summary counts it under "Accounts removed without a trace". The 1.x database still holds it, so the next move brings it again. Accounts merged into existing ones go back to how they were before the move.

An account someone has already signed in to on 2.0 stays, with its records. Deleting it would throw a live player off the site. The wizard takes the credited balance back, but never below zero: if the player has spent some of it, the account stays as well and shows up under "Kept: balance spent".

To go back to 1.x entirely, point the domain root back at the old site folder and turn its maintenance off. The 1.x database has not changed all this time.

Troubleshooting

Look up other messages in the error search.

The folder … was not found or PHP cannot read it. If the hosting has open_basedir on, copy the old site inside the allowed folders.

Check the path: it is the full one, from the server root. If the path is right, the hosting has closed neighbouring folders to PHP. Copy the 1.x folder inside the new site's folder or anywhere PHP may read, and give the new path.

MessageWhat to do
"There is no config/app.php and config/database.php in …. Give the root of the 1.x site, the one with the app and config folders."give the folder one level up, the one holding app and config
"This is the folder of this site. Give the folder of the old 1.x site."you gave the 2.0 folder, the 1.x one is needed
"This folder already holds Flute 2. Give the folder of the old 1.x site."the folder already has 2.0, give the one where 1.x remained
"The config/database.php of the old site has no database address. Upload a dump of the database."switch to "Dump file" and upload an export of the 1.x database
"The database has no Flute 1.x accounts. Check the table prefix."on "Dump file", enter the old site's "Table prefix"
"Could not connect to the database."the 1.x database is closed to this server: upload it as a dump

Next

On this page