Upgrading
Here is basic tutorial how to perform upgrades since 2.04 version. This version can update database automatically from any previous LHC version.
- Read the new version announcement article for any possible changes in settings/settings.ini.php. If the article does not mention anything, you do not have to do anything.
- Go to "System" -> "Update information" and check if LHC finds any differences in the database. If it does, click on "Update database." You may not see differences if your server does not allow making requests to remote URLs.
- You need to run these commands from the root folder (where index.php is located)
php cron.php -s site_admin -c cron/util/update_database
tries to update the database from a 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.
- If you accidentally override files before updating the database, you can:
- Update the database from the local definition
- Copy
doc/shell/upgrade.php
to the root folder, the same folder whereindex.php
exists.- In your browser, enter
https://example.com/upgrade.php
to update the database directly.
- In your browser, enter
- Log out from LHC.
- Download the most recent LHC version Overwrite
doc
,ezcomponents
,lib
,modules
,pos
,translations
,design
folders. Also, overwriteindex.php
andcron.php
files with the new version. - Disable cache in settings.ini.php
- Log in to LHC again and go to
"System configuration" -> "Clear Cache" and click Clear Cache
- You can also clear the cache by executing this command from the command line:
php cron.php -s site_admin -c cron/util/clear_cache
- You can also clear the cache by executing this command from the command line:
- Now you can re-enable the cache in your
settings.ini.php
- If you still encounter errors, then Enable debug output
If you are updating from any older version, you can follow this pattern, which can also be applied to new versions:
- Download the most recent LHC version Overwrite the following folders
doc
,ezcomponents
,lib
,modules
,pos
,translations
,design
folders. Also, overwriteindex.php
andcron.php
files with the new version. - Copy from doc/shell/upgrade.php file to the root folder of LHC.
- In your browser, type chatfolder/upgrade.php. It will update the database to the most recent version and clear the cache automatically.
- Delete upgrade.php from the root folder.
In all cases, I suggest making a backup.
Permissions
To be able to see Update information
operator has to have
'lhsystem','performupdate'