Skip to main content

Upgrading

Here is basic tutorial how to perform upgrades since 2.04 version. This version can update database automatically from any previous LHC version.

  1. Read new version announcement article for any possible changes in settings/settings.ini.php. If article does not mention anything you do not have to do anything.
  2. Got to "System" -> "Update information" -> and see does LHC finds any differences in database. If it does just click update database. It can be that you won't see differences if your server does not allow making request to remote URL's.
    • You need to run these commands from root (where index.php is located) folder
    • php cron.php -s site_admin -c cron/util/update_database tries to update database from remote URL. If this does not work run
    • php cron.php -s site_admin -c cron/util/update_database -p local after replacing all files.
  3. If you accidentally override files before updating DB you can
    1. Updating database from local definition
    2. Copy doc/shell/upgrade.php to root folder. Same folder where index.php exists.
      1. In your browser enter https://example.com/upgrade.php it will update database directly.
  4. Logout from LHC
  5. Download most recent LHC version. Overwrite doc,ezcomponents,lib,modules,pos,translations,design folders. Overwrite index.php and cron.php files from a new version.
  6. Disable cache in settings.ini.php
  7. Login to LHC again and go to "System configuration" -> "Clear Cache" and click Clear Cache
    1. Clear cache you can also can by executing this command from command line php cron.php -s site_admin -c cron/util/clear_cache
  8. Now you can enable a cache again in your settings.ini.php
  9. In case you still get an error Enable debug output

If you are updating from any older version you can follow this pattern, you can do this also for new versions.

  1. Download most recent LHC version. Overwrite doc,ezcomponents,lib,modules,pos,translations,design folders. Overwrite index.php and cron.php files from a new version.
  2. Copy from doc/shell/upgrade.php file to root folder of LHC
  3. In your browser type chatfolder/upgrade.php, it will update database to the most recent version and clear cache automatically
  4. Delete upgrade.php from root folder

In all cases I suggest make backup.

Permissions

To be able to see Update information operator has to have

'lhsystem','performupdate'