UPGRADE 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 PHP. You will need at least PHP 4.1.0. If you
  9. need to upgrade please go ahead and install the latest release version of
  10. PHP.
  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.2.6, and that your new SM version is 1.4.0.
  19. Substitute version numbers and names as required.
  20. $ cd /home/httpd/html
  21. $ cp -Rp squirrelmail-1.2.6 squirrelmail-1.2.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.4.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.2.6.bak/data/* squirrelmail-1.4.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.2.6.bak/config/config.php squirrelmail-1.4.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 new versions of your plugins at the same time you download
  52. your SquirrelMail install, and that you install your plugins fresh (it's
  53. easy, don't panic!).
  54. You should not try replacing plugins that are already included in SquirrelMail
  55. package. Download latest versions of plugins that are not included in new
  56. SquirrelMail package or copy them from older SquirrelMail install.
  57. D. Copy themes
  58. If you've created or modified themes, you should copy just those to the new
  59. SquirrelMail themes directory. To just copy them all over to the new
  60. SquirrelMail installation, you can run one command.
  61. $ cp -ui squirrelmail-1.2.6.bak/themes/* squirrelmail-1.4.0/themes/
  62. When -u flag is used, command copies only missing and newer files.
  63. When -i flag is used, command asks for confirmation before replacing
  64. existing files.
  65. 4. Change permissions
  66. ======================
  67. The web server must have write permission to the data directory. In this
  68. example, we assume that user "nobody" and group "nobody" are the web server
  69. as is often the case with Apache.
  70. $ cd squirrelmail-1.4.0
  71. $ chown -R nobody:nobody data
  72. See INSTALL for alternate userid/groupid pairs. Additionally, if "chown
  73. user:group" doesn't work, you can use "chown user" and "chgrp group"
  74. instead. See the man pages for these commands for more information.
  75. 5. Run conf.pl
  76. ===============
  77. Run config/conf.pl to see the new configuration options available with the
  78. new version, as well as to verify that all of your old options are set
  79. properly.
  80. Always save your options, also if you haven't changed anything.
  81. This will ensure that any problems with conf.pl that might have been solved
  82. are effective to your installation.
  83. 6. DONE!
  84. =========
  85. That should be all! The most important part is copying your users'
  86. preference files back into the new data directory. This will insure that
  87. your users will have their old preferences. Remember to do so with caution,
  88. especially if you are upgrading from a version before 1.0.5 to version 1.0.5
  89. or later.