Updating Elgg without Losing Data

Hello

The Elgg that I am using is Version 5.1.0, and it has all the data built in it....

How do I update to the latest version of Elgg by keeping the data intact.

Dd you have a step by step process for this?

Best Wishes

Arindam

  • The upgrade process for Elgg depends on how your current installation was set up.

    If you installed Elgg using Composer, you should follow the official Composer-based upgrade guide. In general, the steps are:

    • Back up your database and the entire project directory.

    • Update your composer.json to require the newer Elgg version.

    • Run composer update.

    • After updating, log in to your site and run the upgrade script (usually via /upgrade).

    If your installation was done by downloading and extracting the archive (non-Composer method), then the process is slightly different:

    • Back up your database and all files (especially the data directory and elgg-config settings).

    • Replace the core Elgg files with the new version, but don't overwrite your data directory or configuration files.

    • Visit /upgrade in your browser to run the upgrade process.

    Also, please note that Elgg has specific upgrade rules between versions:

    • You can upgrade from any minor version to a higher minor version within the same major version.

    • To move to the next major version, you must first be on the latest minor release of the previous major version.

    • Once on certain baseline versions, you may upgrade further without stepping through every minor version.

    In your case, this means you should not jump directly from 5.1.0 to the latest version.

    Instead, you should:

    • First upgrade from 5.1.0 to the latest 6.x release (for example, 6.3.7).

    • Then upgrade to the next major version (for example, 7.0.4 or later stable release).

    Make sure to create backups before and after each upgrade step.

    Also, don't forget that 3rd-party plugins must be updated as well, ensuring compatibility with each Elgg version you install.

    Finally, it is worth checking previously discussed topics (1, 2, 3), as many upgrade scenarios and issues have already been covered there.

  • Thanks

    I have been able to uptate to 6.3.7 using composer....

    I had to remove many apps and reinstall, to get rid of errors...

    i have also sent an email regarding some custom plugins...

    Best Wishes

    Arindam