Nico Huber | ee52fbc | 2023-06-24 11:52:57 +0000 | [diff] [blame^] | 1 | Upgrading SimpleID |
| 2 | ================== |
| 3 | |
| 4 | Introduction |
| 5 | ------------ |
| 6 | |
| 7 | SimpleID is currently in heavy development, with the software changing rapidly. |
| 8 | As a result, it is very important to upgrade SimpleID when a new version is |
| 9 | released. |
| 10 | |
| 11 | General information on upgrading can be found at |
| 12 | <http://simpleid.org/docs/1/upgrading/>. |
| 13 | |
| 14 | This document sets out the additional steps which may need to be performed to |
| 15 | upgrade to a specific version of SimpleID. |
| 16 | |
| 17 | Upgrading to SimpleID 0.9 |
| 18 | ------------------------- |
| 19 | |
| 20 | 1. System requirements |
| 21 | |
| 22 | The system requirements for SimpleID have changed. The most important |
| 23 | changes 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 | |
| 44 | For further information on the revised system requirements, see the SimpleID |
| 45 | web site at <http://simpleid.org/docs/1/system-requirements/> |
| 46 | |
| 47 | 2. Enhanced password security |
| 48 | |
| 49 | Version 0.9 now supports storing passwords with hashing algorithms other than |
| 50 | MD5 and with a salt. You may wish to update your identity file to take |
| 51 | advantage of this new feature. |
| 52 | |
| 53 | 3. File extensions |
| 54 | |
| 55 | SimpleID PHP code files no longer use the .inc file extension. Instead only |
| 56 | the .php file extension is used. This prevents misconfigured web servers to |
| 57 | return SimpleID source code. |
| 58 | |
| 59 | You 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 | |
| 68 | 4. upgrade.php |
| 69 | |
| 70 | You will need to run the upgrade script to complete the upgrade. To run the |
| 71 | script, use your web browser to go to |
| 72 | |
| 73 | http://www.exmaple.com/simpleid/upgrade.php |
| 74 | |
| 75 | where 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 |
| 77 | an administrator to proceed with the script. |
| 78 | |
| 79 | Upgrading to SimpleID 0.8 |
| 80 | ------------------------- |
| 81 | |
| 82 | SimpleID 0.8 does not require any additional steps as part of the upgrade |
| 83 | process. |
| 84 | |
| 85 | However, you will still need to run the upgrade script to complete the |
| 86 | upgrade. To run the script, use your web browser to go to |
| 87 | |
| 88 | http://www.exmaple.com/simpleid/upgrade.php |
| 89 | |
| 90 | where 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 |
| 92 | an administrator to proceed with the script. |
| 93 | |
| 94 | |
| 95 | Upgrading to SimpleID 0.7 |
| 96 | ------------------------- |
| 97 | |
| 98 | 1. New storage framework |
| 99 | |
| 100 | SimpleID introduced a new storage framework. The new framework allows SimpleID |
| 101 | to store additional information about your identity. |
| 102 | |
| 103 | As a result, you will need to be aware that there is a new configuration option |
| 104 | called SIMPLEID_STORE_DIR, which specifies the directory where this information |
| 105 | will be stored. This directory must exist and be readable and writable by the |
| 106 | web server. |
| 107 | |
| 108 | If you are upgrading from SimpleID 0.6, this setting will default to the |
| 109 | directory specified by SIMPLEID_CACHE_DIR in your config.inc. However, it is |
| 110 | a good idea to place this in a separate directory. To do this, add the |
| 111 | following line to your config.inc: |
| 112 | |
| 113 | define('SIMPLEID_STORE_DIR', '<your directory here>'); |
| 114 | |
| 115 | 2. Administrators |
| 116 | |
| 117 | SimpleID 0.7 introduced the concept of administrators. Administrators |
| 118 | have access to certain functions which regular users cannot. To make a user |
| 119 | an administrator, edit the user's identity file to include the following line: |
| 120 | |
| 121 | administrator=1 |
| 122 | |
| 123 | 3. User Interface Extension |
| 124 | |
| 125 | SimpleID 0.7 introduced support for the draft OpenID User Interface Extension. |
| 126 | It is enabled by default for new installations of SimpleID, however if you |
| 127 | are upgrading you may need to enable it manually. To do so, edit |
| 128 | your config.inc to change the SIMPLEID_EXTENSIONS configuration option to |
| 129 | include ui. For example: |
| 130 | |
| 131 | define('SIMPLEID_EXTENSIONS', 'sreg,ui'); |
| 132 | |
| 133 | 4. Upgrade script |
| 134 | |
| 135 | SimpleID introduced a new upgrade script. This means that whenever you |
| 136 | upgrade you will also need to run the script. To run the script, use your |
| 137 | web browser to go to |
| 138 | |
| 139 | http://www.exmaple.com/simpleid/upgrade.php |
| 140 | |
| 141 | where 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 |
| 143 | an administrator to proceed with the script. |
| 144 | |
| 145 | |
| 146 | Upgrading to SimpleID 0.6 |
| 147 | ------------------------- |
| 148 | |
| 149 | SimpleID version 0.6 introduced a new log in system. The new system allows |
| 150 | you to log in to SimpleID without sending your password in plain text. Your |
| 151 | password is used to create a cryptographic digest, which is then sent to |
| 152 | the SimpleID server and verified. |
| 153 | |
| 154 | As a result, you need to be aware of two things: |
| 155 | |
| 156 | 1. 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 | |
| 161 | 2. 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 | |