RoundCube Webmail
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
4.3 KiB

20 years ago
20 years ago
  1. UPGRADING instructions
  2. ======================
  3. Follow these instructions if upgrading from a previous version
  4. of Roundcube Webmail. We recommend to carefully backup the existing
  5. installation as well as the database before going through the following steps.
  6. Using the update script
  7. -----------------------
  8. There is a shell script (for unix based systems) that does the job for you.
  9. To use it, unpack the archive of the new Roundcube version to a temporary location
  10. (don't replace the Roundcube installation you want to update)
  11. and cd into that directory. From there, run the following command in a shell:
  12. ./bin/installto.sh <TARGET-FOLDER>
  13. For <TARGET-FOLDER> you specify the path to the Roundcube installation
  14. which should be updated. The update script will then copy all new files to the
  15. target location and check and update the configuration and database schema.
  16. After all is done, the temporary folder with the new Roundcube files can be
  17. removed again.
  18. WARNING: Make sure files have proper owner/group for your setup. If you use
  19. tar to extract the package, `--no-same-owner` option might be helpful.
  20. WARNING: See Post-Upgrade Activities section below.
  21. WARNING: If you use MySQL < 5.7.7 or MariaDB < 10.2.2 make sure to configure it with:
  22. innodb_large_prefix=1
  23. innodb_file_per_table=1
  24. innodb_file_format=Barracuda
  25. Updating manually
  26. -----------------
  27. If you don't have shell access to the Roundcube installation or if do not run
  28. it on a unix system, you need to do the following operations by hand:
  29. 1. Replace all files in
  30. - bin/
  31. - SQL/
  32. - public_html/
  33. - program/
  34. - installer/
  35. 2. Replace the configuration defaults files:
  36. - config/defaults.inc.php
  37. - config/mimetypes.php
  38. 3. rsync the contents of the following folders from your installation
  39. directory into the target folder:
  40. - skins/
  41. - plugins/
  42. - vendor/
  43. 4. Update dependencies:
  44. 4a. If you previously installed plugins through composer, update dependencies
  45. by running `php composer.phar update --no-dev`.
  46. 4b. Install/update dependencies using composer:
  47. - get composer from https://getcomposer.org/download/
  48. - if you want to use LDAP address books, enable the LDAP libraries in your
  49. composer.json file by moving the items from "suggest" to the "require"
  50. section (remove the explanation texts after the version!).
  51. - run `php composer.phar update --no-dev`.
  52. 4c. If you use git sources or the release package without dependencies
  53. update javascript dependencies by executing `bin/install-jsdeps.sh` script.
  54. 4d. If you use git sources, install developer tools using `npm install`.
  55. 4e. If you use git sources, compile css files for the Elastic skin as described
  56. in the skins/elastic/README.md file.
  57. 5. Run `./bin/update.sh` from the commandline OR
  58. open http://url-to-roundcube/installer.php in a browser and choose "3 Test config".
  59. To enable the latter one, you have to temporary set 'enable_installer'
  60. to true in your local config/config.inc.php file.
  61. WARNING: See SQLite database upgrade below.
  62. 6. Let the update script/installer check your configuration and
  63. update your config files and database schema as suggested by the updater.
  64. 7. Make sure 'enable_installer' is set to false again.
  65. 8. See Post-Upgrade Activities section.
  66. Post-Upgrade Activities
  67. -----------------------
  68. 1. Check system requirements in INSTALL file.
  69. 2. If you're using build-in addressbook, run indexing script /bin/indexcontacts.sh.
  70. 3. When upgrading from version older than 0.6-beta you should make sure
  71. your folder settings contain namespace prefix. For example Courier users
  72. should add INBOX. prefix to folder names in main configuration file.
  73. 4. When upgrading from version older than 1.4.0 make sure old files
  74. in configured temp_dir are removed. Since this version we use constant filename
  75. prefix and do not remove files not starting with "RCMTEMP".
  76. SQLite database upgrade
  77. -----------------------
  78. Versions older than 0.9 were supporting SQLite v2 only. Newer versions require
  79. database in v3 format. The best what you can do is to convert database file
  80. to the new format using command line tools:
  81. sqlite OLD.DB .dump | sqlite3 NEW.DB
  82. Other tools
  83. -----------
  84. In case you need to only update the database schema you can use updatedb.sh script.
  85. For example, to update the Roundcube core database run:
  86. ./bin/updatedb.sh --package=roundcube --dir=SQL