blob: 16c1856dee1a26a489ea8ad9a3aed5c57b1a51b8 [file] [log] [blame]
Nico Huberee52fbc2023-06-24 11:52:57 +00001Upgrading SimpleID
2==================
3
4Introduction
5------------
6
7SimpleID is currently in heavy development, with the software changing rapidly.
8As a result, it is very important to upgrade SimpleID when a new version is
9released.
10
11General information on upgrading can be found at
12<http://simpleid.org/docs/1/upgrading/>.
13
14This document sets out the additional steps which may need to be performed to
15upgrade to a specific version of SimpleID.
16
17Upgrading to SimpleID 0.9
18-------------------------
19
201. System requirements
21
22The system requirements for SimpleID have changed. The most important
23changes are:
24
25 (a) PHP
26
27 From version 0.9, the minimum version of PHP is 5.3.0. PHP 4 is no
28 longer supported.
29
30 (b) HTTPS support
31
32 From version 0.9, HTTPS support is mandatory. The evolving security
33 environment means that it is no longer safe to accept logins from
34 unencrypted connections.
35
36 If you run your own server, there are now many inexpensive certificate
37 authorities from which to get certificates. Self-signed certificates
38 are also acceptable (although not recommended).
39
40 If you are using a shared server from a web hosting provider, check
41 with them regarding SSL capabilities. Many offer a shared SSL
42 certificate to the server at no extra cost.
43
44For further information on the revised system requirements, see the SimpleID
45web site at <http://simpleid.org/docs/1/system-requirements/>
46
472. Enhanced password security
48
49Version 0.9 now supports storing passwords with hashing algorithms other than
50MD5 and with a salt. You may wish to update your identity file to take
51advantage of this new feature.
52
533. File extensions
54
55SimpleID PHP code files no longer use the .inc file extension. Instead only
56the .php file extension is used. This prevents misconfigured web servers to
57return SimpleID source code.
58
59You will need to perform the following manually:
60
61 (a) Rename config.inc to config.php
62
63 (b) Rename any custom extensions in the extensions directory from
64 .extension.inc to .extension.php
65
66 (c) Delete all old .inc files from the SimpleID web directory.
67
684. upgrade.php
69
70You will need to run the upgrade script to complete the upgrade. To run the
71script, use your web browser to go to
72
73http://www.exmaple.com/simpleid/upgrade.php
74
75where http://www.exmaple.com/simpleid/ is the URL of your SimpleID server
76(where you have moved the www directory). You will need to be logged in as
77an administrator to proceed with the script.
78
79Upgrading to SimpleID 0.8
80-------------------------
81
82SimpleID 0.8 does not require any additional steps as part of the upgrade
83process.
84
85However, you will still need to run the upgrade script to complete the
86upgrade. To run the script, use your web browser to go to
87
88http://www.exmaple.com/simpleid/upgrade.php
89
90where http://www.exmaple.com/simpleid/ is the URL of your SimpleID server
91(where you have moved the www directory). You will need to be logged in as
92an administrator to proceed with the script.
93
94
95Upgrading to SimpleID 0.7
96-------------------------
97
981. New storage framework
99
100SimpleID introduced a new storage framework. The new framework allows SimpleID
101to store additional information about your identity.
102
103As a result, you will need to be aware that there is a new configuration option
104called SIMPLEID_STORE_DIR, which specifies the directory where this information
105will be stored. This directory must exist and be readable and writable by the
106web server.
107
108If you are upgrading from SimpleID 0.6, this setting will default to the
109directory specified by SIMPLEID_CACHE_DIR in your config.inc. However, it is
110a good idea to place this in a separate directory. To do this, add the
111following line to your config.inc:
112
113define('SIMPLEID_STORE_DIR', '<your directory here>');
114
1152. Administrators
116
117SimpleID 0.7 introduced the concept of administrators. Administrators
118have access to certain functions which regular users cannot. To make a user
119an administrator, edit the user's identity file to include the following line:
120
121administrator=1
122
1233. User Interface Extension
124
125SimpleID 0.7 introduced support for the draft OpenID User Interface Extension.
126It is enabled by default for new installations of SimpleID, however if you
127are upgrading you may need to enable it manually. To do so, edit
128your config.inc to change the SIMPLEID_EXTENSIONS configuration option to
129include ui. For example:
130
131define('SIMPLEID_EXTENSIONS', 'sreg,ui');
132
1334. Upgrade script
134
135SimpleID introduced a new upgrade script. This means that whenever you
136upgrade you will also need to run the script. To run the script, use your
137web browser to go to
138
139http://www.exmaple.com/simpleid/upgrade.php
140
141where http://www.exmaple.com/simpleid/ is the URL of your SimpleID server
142(where you have moved the www directory). You will need to be logged in as
143an administrator to proceed with the script.
144
145
146Upgrading to SimpleID 0.6
147-------------------------
148
149SimpleID version 0.6 introduced a new log in system. The new system allows
150you to log in to SimpleID without sending your password in plain text. Your
151password is used to create a cryptographic digest, which is then sent to
152the SimpleID server and verified.
153
154As a result, you need to be aware of two things:
155
1561. You browser must have JavaScript switched on in order to use the new
157 log in system. If JavaScript is not switched on, SimpleID reverts to the
158 "legacy" log in system used in previous versions, subject to the important
159 point below.
160
1612. By default, SimpleID version 0.6 will not accept logins under the legacy
162 system. You can override this by putting the following line in your
163 config.inc:
164
165 define('SIMPLEID_ALLOW_LEGACY_LOGIN', true);
166
167 It is STRONGLY RECOMMENDED that you DO NOT switch the legacy login system
168 on, as it is substantially less secure than the new login system. Use this
169 ONLY if your browser does not support JavaScript.
170
171