Upgrading from a previous version
From LimeSurvey Manual
Before you start...
... read this because it is very important: Always backup the files and the database of your current installation!!!
You can do this using a database administration tool like phpMyAdmin etc. and a file manager! If you don't know how to do this, you should not proceed but ask someone who knows or use the ComfortUpdate instead.
The quick way (for minor version changes)
You can use these instructions if you are doing a minor upgrade (for example from 2.00 to 2.01):
- Backup your files and database (Upgrading_from_a_previous_version#Before_you_start... did we already mention that?)
- Delete all the old files/folders except for:
- /application/config/config.php;
- /upload directory - "'NOTE: If you have any customized templates sitting under /upload/templates, make sure you refresh those with any changes from the new version. The easiest way to check for such changes is to file-compare your old template with the new version of the default template, and if you see any differences other than your customizations, a refresh is needed.
- Copy the new files from the new LimeSurvey package to the existing location.
- Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.
- After the upgrade: Clear your browser cache and cookies!
The thorough way (for big version jumps)
Unfortunately there are a couple of things to consider, so please observe carefully the following instructions.
Upgrading from version 2.0x to 2.50 or later
- Please note that the template structure has changed. Your old templates will not be working anymore as the template system is now using responsive templates.
Upgrading from version 2.0 or later to any later 2.xx version
- Download the latest version of LimeSurvey.
- Prepare and backup the old installation;
- Backup your installation directory files and SQL-based database just in case;
- At the command-line level, make a .zip or similar archive of the whole installation directory tree of files. For example, in Linux 'tar cvzf foo.tgz cps100' will tar and zip the whole of the cps100 directory;
- Using phpMyAdmin or similar to export all tables; or use the according LimeSurvey Administration button
to backup the entire database.
- Copy your config.php file, modified template directories and the /upload directory separately for quick access later;
- Backup your installation directory files and SQL-based database just in case;
- Replace all the installation directory files;
- Delete all old files in the existing installation directory;
- Upload and unpack the new code version into the same installation directory;
- Copy your /upload directory back to the old location;
- Double check the permissions set on the directories (write access to /tmp, /upload and and their subdirectories is required) as described in the Installation section;
- Open http://<yourdomain>/<yourlimesurveydir>/admin in your browser and follow the instructions (you can use the old config.php as reference). The existing database will be automatically detected and if necessary, upgraded after confirmation.
- Check if any special manual checks apply as listed below;
- Now clear your browser cache and cookies! and you are good to go.

What is the most recent LimeSurvey version that still supports PHP4?
The last release offering PHP4 support was version 1.82+.
Can I upgrade even if I have active surveys?
Yes, you can. Exceptions may be mentioned in the thorough instructions above. We strongly advise to test your surveys after upgrade to check if your design templates still work alright.