Project

General

Profile

Migration » History » Version 39

Carsten Rose, 11.04.2023 13:58

1 1 Benjamin Baer
h1. Update Typo3 v8 > v9 > v10
2
3 28 Carsten Rose
h2. Compatibility
4
5 29 Carsten Rose
 * https://typo3.org/cms/roadmap
6 24 Carsten Rose
 * Required PHP version per Typo3, default PHP Version per Ubuntu OS, required PHP Version per PHP-Unit version.
7 26 Carsten Rose
 * PHPUnit: Aktuell haben wir noch Ubuntu 18.04 Hosts (PHP 7.2) - Ziel waere schnell auf Ubuntu 20.04 zu migrieren
8
9 27 Carsten Rose
   * Dev Umgebung mit U18 / PHP7.2 sollten PHPUnit 8 nutzen.
10
   * Dev Umgebung mit >=U20 / PHP7.4 sollten PHPUnit 9 nutzen.
11
   * 
12 23 Carsten Rose
13 39 Carsten Rose
| *Typo3* | *T3 EOL*   | *QFQ* | *PHP required T3*   | *U18.04* | *U20.04* | *U22.04* | *PHPUnit 6* | *PHPUnit 7* | *PHPUnit 8* | *PHPUnit 9* | *PHPUnit 10* | ldap 3.6.0 | ldap 3.7.1 |
14
| *V8*    |-31.03.2020-| ?     | 7.0-7.4             | 7.2      | 7.4      | -8.1-    | 7.0-7.2     | 7.1-7.3     | >=7.2       | >=7.3       | ->=8.1-      | 8.7 - 10.4 | -          |
15
| *V9.5*  |-30.04.2021-| 19.5.0| 7.2-7.4             | 7.2      | 7.4      | -8.1-    | 7.0-7.2     | 7.1-7.3     | >=7.2       | >=7.3       | ->=8.1-      | 8.7 - 10.4 | 9.5 - 11.5 |
16
| *V10*   |_30.04.2023_|22.10.1| 7.2-7.4             | 7.2      | 7.4      | -8.1-    | 7.0-7.2     | 7.1-7.3     | >=7.2       | >=7.3       | ->=8.1-      | 8.7 - 10.4 | 9.5 - 11.5 |
17
| *V11*   | 31.10.2024 | -     | 7.4, 8.0-8.2        | -7.2-    | 7.4      | 8.1      | -7.0-7.2-   | -7.1-7.3-   | >=7.2       | >=7.3       | >=8.1        | -          | 9.5 - 11.5 |
18
| *V12*   | 30.04.2026 | -     | 8.1, 8.2            | -7.2-    | -7.4-    | 8.1      | -7.0-7.2-   | -7.1-7.3-   | >=7.2       | >=7.3       | >=8.1        | -          | -          |
19
20 20 Carsten Rose
21 1 Benjamin Baer
h2. Preparation Typo3 v8
22
23
* Update Extensions to avoid problems after update.
24
** The IG LDAP Extension is the most likely culprit, we recommend to update to version 3.6.0 (which is compatible for typo3 v8 - v10). (Warning: later versions had problem with our LDAP Server, do not install any newer version if not needed)
25
*** Open the ldap 3.6 extension config dialog and save it, this prevents error after typo3 update to 9
26
*** Check if login still works (if not, it is possible to create new local admin users via /typo3/install.php)
27
** Update QFQ
28
* To easily downgrade again:
29
** copy the entire `typo3conf` Folder and store it in a temporary folder.
30
** Backup the typo3 database
31
32 3 Benjamin Baer
Versions of Extensions:
33 4 Benjamin Baer
|_.Extension|_.Version|
34 3 Benjamin Baer
| ig_ldap_sso | 3.6.0 |
35
36
37 1 Benjamin Baer
h2. upgrade to newest version of Typo3 v9
38
39
* download 9.5.26
40
* replace symlink typo3_src
41
<pre>
42
rm typo3_src
43
ln -s /var/www/typo3_src-9.5.26/ typo3_src
44
</pre>
45
46
* go to installtool: /typo3/install.php
47
* Run the upgrade wizard under menu "Upgrade"
48
** Whenever there is an option, choose the default (most of the time to not do it, like backward compability to typo3 7 etc.)
49
* Afterwards run the database analyzer and apply the changes
50
* Go to "Environment > Directory Status" and autofix problems (this should create .htaccess for page slugs)
51
* Flush Caches
52
* Try to login to the backend
53
* Update to the newest Version of uzh_cd: https://www.math.uzh.ch/repo/?dir=uzhcd/v9
54
** Please note changes that have to be made to the config:
55
*** Remove all default js and css references for qfq, they are included now
56
*** Rewrite cd.fullWidth.pidList = 5,10 to: 
57
    <pre>cd.fullWidth.pidList = 5 in tree.rootLineIds || 10 in tree.rootLineIds</pre>
58
* If not happened before, update QFQ: https://qfq.io/download/?dir=releases (at least v 22.10.1)
59
* Do not update ig_ldap past 3.6.0!
60 3 Benjamin Baer
61
Versions of Extensions:
62 4 Benjamin Baer
|_.Extension|_.Version|
63 3 Benjamin Baer
| ig_ldap_sso | 3.6.0 |
64 5 Benjamin Baer
| uzh_cd_extension | 22.11.07 + |
65 3 Benjamin Baer
| qfq | 22.10.1 + |
66
67 9 Enis Nuredini
h3. Enable content columns
68 7 Enis Nuredini
69 10 Enis Nuredini
Edit root page
70
71 1 Benjamin Baer
!columnDesignT3V9.png!
72 16 Enis Nuredini
73 19 Enis Nuredini
h3. Cache problem
74 16 Enis Nuredini
75 19 Enis Nuredini
Pages don't refresh immediately when the backend user is logged in. This behavior is not given with logged out beUser.
76 6 Enis Nuredini
77 1 Benjamin Baer
h2. Upgrade to Typo3 v10
78
79
* download Typo3 v10
80
<pre>
81
cd /var/www/
82
wget --content-disposition https://get.typo3.org/10.4.15
83
tar -xzf typo3_src-10.4.15.tar.gz
84
rm typo3_src-10.4.15.tar.gz
85
</pre>
86
87
* update reference index:
88
** “System” > “DB check” module and use the “Check and update global reference index” function.
89
*** https://docs.typo3.org/m/typo3/guide-installation/master/en-us/Upgrade/UpdateReferenceIndex/Index.html
90
91
* replace symlink
92
<pre>
93
rm typo3_src
94
ln -s /var/www/typo3_src-10.4.15/ typo3_src
95
</pre>
96
97 38 Enis Nuredini
Hint: After changing the symlink to newer typo3 versions sometimes it's helpful to delete the content from typo3temp folder. This clears some errors that can appear after version upgrade.
98 1 Benjamin Baer
* upgrade wizzard
99
** go install tool: /typo3/install.php
100
** upgrade > run upgrade wizard
101
** execute all except the ones that install extensions
102
** Analyze Database Structure > apply all changes
103
** Dump TCA
104
105
106
* clear caches
107
** Maintanance > Flush Cache
108
109
* delete the other temporary files, which TYPO3 saves in typo3temp/ by doing:
110
** Install tool > Maintanance > Remove Temporary Assets
111
112
* Go to "Environment > Directory Status" and autofix problems (this should create/update .htaccess for page slugs)
113
114
* Create a SiteConfiguration: typo3 Backend > Sites > New Configuration 
115
** This is needed for slugs to work. Also you need to create a second language entry here, if you have a german/english site.
116
117 12 Enis Nuredini
* Configure apache webserver correctly:
118 11 Enis Nuredini
** If not done then insert following parameters in /etc/apache2/sites-enabled/default-ssl.conf
119
<pre><code class="yaml">
120
<Directory /var/www/html>
121
	Options -Indexes +FollowSymLinks +Includes
122
	AllowOverride All
123
	Order allow,deny
124
	Allow from all   
125
	DirectoryIndex index.php index.html index.shtml
126
</Directory>
127
</code></pre>
128
129
** Execute 'service apache2 reload' in terminal
130
131 2 Benjamin Baer
* Open any page with a qfq record, you will get a warning message that you need to update {{pageAlias:T}} and {{pageId:T}} with an option to automatically do this > run the updater
132
** Afterwards click on check again and then choose "to never check for this again".
133
** Please note that all handwritten urls in qfq and form records have to be changed to slugs!
134
** Check if everything is working and make adjustment. Usually it just misses the slugs.
135
** For multilanguage setup, note that there is no longer an L=1 url parameter and you have to adjust records accordingly
136
137 14 Enis Nuredini
* If Typo3 V10.4 or newer is used, then felogin plugin is deprecated and the previously setup configuration of the UZH CD Extension doesn't work anymore. New setup content should look like this:
138 13 Enis Nuredini
!felogin.png!
139 15 Enis Nuredini
140 1 Benjamin Baer
h2. Nginx
141
142
NGinx does not read .htaccess files, so you need to manually add the config to your nginx sites. Here is an include:
143
144
<pre>
145
# Compressing resource files will save bandwidth and so improve loading speed especially for users
146
# with slower internet connections. TYPO3 can compress the .js and .css files for you.
147
# *) Set $GLOBALS['TYPO3_CONF_VARS']['BE']['compressionLevel'] = 9 for the Backend
148
# *) Set $GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel'] = 9 together with the TypoScript properties
149
#    config.compressJs and config.compressCss for GZIP compression of Frontend JS and CSS files.
150
location ~ \.js\.gzip$ {
151
    add_header Content-Encoding gzip;
152
    gzip off;
153
    types { text/javascript gzip; }
154
}
155
location ~ \.css\.gzip$ {
156
    add_header Content-Encoding gzip;
157
    gzip off;
158
    types { text/css gzip; }
159
}
160
161
# TYPO3 - Rule for versioned static files, configured through:
162
# - $GLOBALS['TYPO3_CONF_VARS']['BE']['versionNumberInFilename']
163
# - $GLOBALS['TYPO3_CONF_VARS']['FE']['versionNumberInFilename']
164
if (!-e $request_filename) {
165
    rewrite ^/(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ /$1.$3 last;
166
}
167
168
# TYPO3 - Block access to composer files
169
location ~* composer\.(?:json|lock) {
170
    deny all;
171
}
172
173
# TYPO3 - Block access to flexform files
174
location ~* flexform[^.]*\.xml {
175
    deny all;
176
}
177
178
# TYPO3 - Block access to language files
179
location ~* locallang[^.]*\.(?:xml|xlf)$ {
180
    deny all;
181
}
182
183
# TYPO3 - Block access to static typoscript files
184
location ~* ext_conf_template\.txt|ext_typoscript_constants\.txt|ext_typoscript_setup\.txt {
185
    deny all;
186
}
187
188
# TYPO3 - Block access to miscellaneous protected files
189
location ~* /.*\.(?:bak|co?nf|cfg|ya?ml|ts|typoscript|tsconfig|dist|fla|in[ci]|log|sh|sql|sqlite)$ {
190
    deny all;
191
}
192
193
# TYPO3 - Block access to recycler and temporary directories
194
location ~ _(?:recycler|temp)_/ {
195
    deny all;
196
}
197
198
# TYPO3 - Block access to configuration files stored in fileadmin
199
location ~ fileadmin/(?:templates)/.*\.(?:txt|ts|typoscript)$ {
200
    deny all;
201
}
202
203
# TYPO3 - Block access to libraries, source and temporary compiled data
204
location ~ ^(?:vendor|typo3_src|typo3temp/var) {
205
    deny all;
206
}
207
208
# TYPO3 - Block access to protected extension directories
209
location ~ (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?|Documentation|docs?)/ {
210
    deny all;
211
}
212
213
214
location / {
215
    try_files $uri $uri/ /index.php$is_args$args;
216
}
217
218
location ~ [^/]\.php(/|$) {
219
    fastcgi_split_path_info ^(.+?\.php)(/.*)$;
220
    if (!-f $document_root$fastcgi_script_name) {
221
        return 404;
222
    }
223
    fastcgi_buffer_size 32k;
224
    fastcgi_buffers 8 16k;
225
    fastcgi_connect_timeout 240s;
226
    fastcgi_read_timeout 240s;
227
    fastcgi_send_timeout 240s;
228
229
    # this is the PHP-FPM upstream - see also: https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/#connecting-nginx-to-php-fpm
230
    include snippets/fastcgi-php.conf;
231
    fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
232
233
}
234
</pre>
235
236
the fastcgi_pass needs to be edited, here it is for standard ubuntu 20.04 nginx server.
237
238
You can save this file to /etc/nginx/snippets/typo3.conf and include it in your site config via `include ../snippets/typo3.conf`