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