File: UPGRADE

package info (click to toggle)
squirrelmail 2%3A1.4.9a-1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 3,760 kB
  • ctags: 6,617
  • sloc: php: 33,593; perl: 3,173; sh: 174; ansic: 122; makefile: 60
file content (127 lines) | stat: -rw-r--r-- 4,718 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
Upgrading your SquirrelMail installation
========================================

If you are upgrading from a previous version of SquirrelMail, you can
use this guide to make the transition a bit smoother.


0. Check requirements
=====================

The system requirements may have been changed between your previous
version and this version of SquirrelMail. The requirements won't change
(much) between stable releases but may change significantly between
different series (e.g. between 1.2.x and 1.4.x). Most notably, you need
at least PHP version 4.0.6. The ReleaseNotes file is a good source for
information about changed requirements.


1.  Backup old install
======================

Make a backup of your current SquirrelMail directory.  If you use "cp", be
sure to use the "-Rp" options.  -R means recursive, and -p will save the
permissions in the directory.

In this example, we assume that your httpd document directory is
/home/httpd/html, that your SquirrelMail install is located at
/home/httpd/html/squirrelmail-1.2.6, and that your new SM version is 1.4.0.
Substitute version numbers and names as required.

  $ cd /home/httpd/html
  $ cp -Rp squirrelmail-1.2.6 squirrelmail-1.2.6.bak


2.  Unarchive new SquirrelMail
==============================
Make sure that you are in your httpd document directory (/home/httpd/html)
and then unarchive the SquirrelMail archive (whatever the filename is):

  $ tar -zxvf squirrelmail-1.4.0.tar.gz


3.  Copy important files from old install
=========================================
The important files to copy are:
  A.  Preferences
  B.  Config details
  C.  Plugins
  D.  Themes (if you've edited or added any of them)

A.  Preferences

First, copy your preference data over to the new directory.  Usually
this is ok, but if you are upgrading from anything less than 1.0.5, we
strongly suggest you let your users reset their preferences.  There
were important security upgrades in 1.0.5 regarding preference files.

  $ cp squirrelmail-1.2.6.bak/data/* squirrelmail-1.4.0/data

B.  Config details

If at all possible, start the configuration process from scratch.  It is
much less prone to missing configuration options than copying your old
configuration.  Ideally, you should just run conf.pl to reconfigure
SquirrelMail.  If you decide to copy your old config.php over, we strongly
recommend that you run conf.pl to make sure things are correct and then save
the config file.

  $ cp squirrelmail-1.2.6.bak/config/config.php squirrelmail-1.4.0/config

C.  Copy plugins

Like SquirrelMail, plugins are frequently updated for improvements, as well
as to make them compatible with new SquirrelMail releases.  It is suggested
that you download new versions of your plugins at the same time you download
your SquirrelMail install, and that you install your plugins fresh (it's
easy, don't panic!).

You should not try replacing plugins that are already included in SquirrelMail
package. Download latest versions of plugins that are not included in new
SquirrelMail package or copy them from older SquirrelMail install.

D.  Copy themes

If you've created or modified themes, you should copy just those to the new
SquirrelMail themes directory.  To just copy them all over to the new
SquirrelMail installation, you can run one command.

  $ cp -ui squirrelmail-1.2.6.bak/themes/* squirrelmail-1.4.0/themes/

When -u flag is used, command copies only missing and newer files.
When -i flag is used, command asks for confirmation before replacing
existing files.


4.  Change permissions
======================
The web server must have write permission to the data directory.  In this
example, we assume that user "nobody" and group "nobody" are the web server
as is often the case with Apache.

  $ cd squirrelmail-1.4.0
  $ chown -R nobody:nobody data

See INSTALL for alternate userid/groupid pairs.  Additionally, if "chown
user:group" doesn't work, you can use "chown user" and "chgrp group"
instead.  See the man pages for these commands for more information.


5.  Run conf.pl
===============
Run config/conf.pl to see the new configuration options available with the
new version, as well as to verify that all of your old options are set
properly.

Always save your options, also if you haven't changed anything.
This will ensure that any problems with conf.pl that might have been solved
are effective to your installation.


6.  DONE!
=========
That should be all!  The most important part is copying your users'
preference files back into the new data directory.  This will insure that
your users will have their old preferences.  Remember to do so with caution,
especially if you are upgrading from a version before 1.0.5 to version 1.0.5
or later.