UPGRADE 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. Upgrading from 0.3 or higher
  2. ============================
  3. If you are upgrading from versions 0.3 or higher of SquirrelMail, you can
  4. use this guide to make the transition a bit smoother. If you have been
  5. using a previous version (0.1 or 0.2), it is suggested that you just start
  6. from scratch and configure your settings as if it was your first install.
  7. NOTE: The new plugin architecture required the use of some functions which
  8. are not in all versions of PHP4. You will need at least PHP4 beta2. If you
  9. need to upgrade please go ahead and install the latest release version of
  10. PHP4.
  11. 1. Backup old install
  12. ======================
  13. Make a backup of your current SquirrelMail directory. If you use "cp", be
  14. sure to use the "-Rp" options. -R means recursive, and -p will save the
  15. permissions in the directory.
  16. In this example, we assume that your httpd document directory is
  17. /home/httpd/html, that your SquirrelMail install is located at
  18. /home/httpd/html/squirrelmail-1.0.6, and that your new SM version is 1.2.0.
  19. Substitute version numbers and names as required.
  20. $ cd /home/httpd/html
  21. $ cp -Rp squirrelmail-1.0.6 squirrelmail-1.0.6.bak
  22. 2. Unarchive new SquirrelMail
  23. ==============================
  24. Make sure that you are in your httpd document directory (/home/httpd/html)
  25. and then unarchive the SquirrelMail archive (whatever the filename is):
  26. $ tar -zxvf squirrelmail-1.2.0.tar.gz
  27. 3. Copy important files from old install
  28. =========================================
  29. The important files to copy are:
  30. A. Preferences
  31. B. Config details
  32. C. Plugins
  33. D. Themes (if you've edited or added any of them)
  34. A. Preferences
  35. First, copy your preference data over to the new directory. Usually
  36. this is ok, but if you are upgrading from anything less than 1.0.5, we
  37. strongly suggest you let your users reset their preferences. There
  38. were important security upgrades in 1.0.5 regarding preference files.
  39. $ cp squirrelmail-1.0.6.bak/data/* squirrelmail-1.2.0/data
  40. B. Config details
  41. If at all possible, start the configuration process from scratch. It is
  42. much less prone to missing configuration options than copying your old
  43. configuration. Ideally, you should just run conf.pl to reconfigure
  44. SquirrelMail. If you decide to copy your old config.php over, we strongly
  45. recommend that you run conf.pl to make sure things are correct and then save
  46. the config file.
  47. $ cp squirrelmail-1.0.6.bak/config/config.php squirrelmail-1.2.0/config
  48. C. Copy plugins
  49. Like SquirrelMail, plugins are frequently updated for improvements, as well
  50. as to make them compatible with new SquirrelMail releases. It is suggested
  51. that you download a new plugins archive at the same time you download your
  52. SquirrelMail install, and that you install your plugins fresh (it's easy,
  53. don't panic!).
  54. If you prefer to just copy your old plugins over (if it's the same version
  55. or if you are lazy), you may do so. If you notice irregularities with the
  56. plugins under the new SquirrelMail, try installing new versions of the
  57. plugins.
  58. $ cp -Rp squirrelmail-1.0.6.bak/plugins/* squirrelmail-1.2.0/plugins
  59. D. Copy themes
  60. If you've created or modified themes, you should copy just those to the new
  61. SquirrelMail themes directory. To just copy them all over to the new
  62. SquirrelMail installation, you can run one command.
  63. $ cp squirrelmail-1.0.6.bak/themes/* squirrelmail-1.2.0/themes/
  64. (While you are at it, you should send them to us! We might add them to the
  65. themes in the standard install!)
  66. 4. Change permissions
  67. ======================
  68. The web server must have write permission to the data directory. In this
  69. example, we assume that user "nobody" and group "nobody" are the web server
  70. as is often the case with Apache.
  71. $ cd squirrelmail-1.2.0
  72. $ chown -R nobody.nobody data
  73. See INSTALL for alternate userid/groupid pairs. Additionally, if "chown
  74. user.group" doesn't work, you can use "chown user" and "chgrp group"
  75. instead. See the man pages for these commands for more information.
  76. 5. Run conf.pl
  77. ===============
  78. Run config/conf.pl to see the new configuration options available with the
  79. new version, as well as to verify that all of your old options are set
  80. properly.
  81. When you have migrated plugins from your old install to your new
  82. install, or even use any plugins at all, you *must* run conf.pl and do
  83. the following:
  84. A. Select "8" (Plugins)
  85. B. Select "A" (Sanitize all plugins for use with Squirrelmail 1.2)
  86. This will make sure the plugins work more efficiently (and will
  87. release you from any "cannot redeclare" error messages).
  88. 6. DONE!
  89. =========
  90. That should be all! The most important part is copying your users'
  91. preference files back into the new data directory. This will insure that
  92. your users will have their old preferences. Remember to do so with caution,
  93. especially if you are upgrading from a version before 1.0.5 to version 1.0.5
  94. or later.