Upgrade from version 6 to 7
From LimeSurvey Manual
LimeSurvey 7 Major Version
LimeSurvey 7 is released in several steps. Each step focuses on a specific part of the platform and is documented separately.
This page serves as an overview of the major changes introduced with LimeSurvey 7 and links to the relevant documentation pages.
Major changes in LimeSurvey 7
Response table and fieldname refactor
LimeSurvey 7 introduces a structural cleanup of how response tables and fieldnames are generated. This change improves consistency and makes the platform easier to maintain and extend.
More details:
Question Editor
LimeSurvey 7 also introduces a new Question Editor with an updated user interface and improved workflows for creating and managing questions.
More details:
Requirements
| LimeSurvey 6 | LimeSurvey 7 | |
|---|---|---|
| PHP | 7.4 or higher | 8.1 or higher (8.3 recommended) |
| MySQL | 8.0 or higher | 8.0 or higher |
| MariaDB | 10.3.38 or higher | 10.3.38 or higher |
| PostgreSQL | 12 or higher | 14 or higher |
| MSSQL | 2016 or higher | 2019 or higher |
| URL format | get or path |
path, required for the new editor
|
You do not need Node.js or npm. The new editor is included in the LimeSurvey package and is ready to use.
Make a full backup of your files and your database before you begin, and test the upgrade on a copy of your installation first. Once the upgrade has run, there is no way back other than restoring that backup.
Plan a maintenance window. LimeSurvey switches the site into maintenance mode while the database is being upgraded, and on installations with a lot of response data this can take a while.
Recommended: Use our ComfortUpdate service
The easiest and safest way to upgrade is to use our ComfortUpdate service. It downloads and installs the new version for you, so you do not have to replace any files manually.
If you prefer to upgrade by hand, follow the steps below instead.
Upgrading manually
- Back up your files and database, and put the site into maintenance mode.
- Keep the following files and folders from your old installation:
application/config/config.phpapplication/config/security.phpapplication/config/allowed_hosts.php- the
upload/folder, which holds your uploaded files, user themes and user plugins - the
plugins/folder, if you installed plugins into it by hand
- Download the LimeSurvey 7 package and update the installation using one of the following methods:
- Delete the old files first. Move the files listed above out of the way, delete everything else in your LimeSurvey directory, unpack the new package into it and put the kept files back.
- Or copy the new files over the old ones. Unpack the new package over your existing installation and let it overwrite what is already there, leaving the files listed above untouched.
- With either option, use the new
.htaccessfrom the package, as the 6.x one does not work with the new editor. Afterwards, emptytmp/runtime/so no cached data from version 6 is left behind. - Set the URL format to
pathinapplication/config/config.php. - Make sure your web server serves the
/editor/folder directly and passes theAuthorizationheader through to PHP. More details: New Question Editor in LimeSurvey 7 - Run the database upgrade. LimeSurvey detects the older database version and offers to upgrade it. Confirm, and let it finish without interrupting it.
- When it completes, switch maintenance mode off and work through the checklist below.
After the upgrade
- Check the version number in the footer of the admin pages.
- Re-activate the plugins you need, one by one.
- Open a survey and confirm that the new editor loads.
- Run one full test response through each active survey, covering conditions, quotas, e-mails and the end URL.
Troubleshooting
"Action needed" message about the URL format. The URL format is still get. Change it to path and clear tmp/runtime/.
The editor loads but stays empty. The Authorization header is not reaching PHP.
/editor/ shows a LimeSurvey page or a "not found" error. Check your web server configuration and make sure the /editor/ folder is served directly instead of being routed through LimeSurvey.
"You cannot use this theme with the new question editor". The survey uses a theme that is not based on fruity_twentythree. Switch the theme, or continue in the classic editor.
A plugin causes errors after being re-activated. It is not compatible with LimeSurvey 7. Deactivate it and check with its maintainer.
Notes
Each major change is documented on its own page. This helps keep the documentation focused and makes it easier to find the information relevant to your setup.