[TYPO3-english] Updating to 4.4.0 from previous Versions

Andreas Becker ab.becker at web.de
Thu Jun 24 05:46:33 CEST 2010


Hi All

Due to the fact that we have to update a lot of sites where people contact
us for help - and it is getting quite a lot at the moment - I post it here:

We made the following experience when updating a previous Verion to 4.4.0
STABLE

*Preparation BEFORE you start the update:*

   1. Go inside the backend
   2. DEINSTALL Backend Skin you have installed
   3. ACTIVATE t3skin - don't worry TYPO3 will look much nicer afterwards
   :-)
   4. Update all your extensions to its newest Version
   5. ENABLE_INSTALL_TOOL
   6. Upload the Core 4.4.0 to your installation and unpack it
   7. If you have global installed extensions don't forget to change your
   typo3/ext folder in core to wherever you have stored those global extensions
   8. Change the typo3_src symlink to the new 4.4.0 source folder

*Work in the Install Tool*

   1. login to your install tool and run the update manager MULTIPLE times!!
   until every step is finished!
   2. If it shows a dependency to the static_template file - INSTALL IT!
   3. do a database compare
   4. Don't forget to insert the part for the .htaccess

Here i.e. is ours + some stuff against spamers:

### ThaiPo3 settings ###
### Compressed .js and .css files ###
<FilesMatch "\.js\.gzip$">

AddType "text/javascript" .gzip
</FilesMatch>
<FilesMatch "\.css\.gzip$">
AddType "text/css" .gzip
</FilesMatch>
AddEncoding gzip .gzip
### Begin: Rewrite stuff ###
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
RewriteRule
^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/
- [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
### Begin: PHP optimisation ###
php_flag register_globals off
php_flag register_argc_argv off
php_flag magic_quotes_gpc off
php_value variables_order GPCS
### Begin: Miscellaneous ###
# Make sure that directory listings are disabled
#Options -Indexes
# There is a problem with Internet Explorer and mod_gzip on Apache servers.
# For more information, see
# http://typo3.org/documentation/document-library/rtehtmlarea/Tutorial-79/
#mod_gzip_item_exclude file \.css$
#mod_gzip_item_exclude file \.png$
#mod_gzip_item_exclude file \.gif$
#mod_gzip_item_exclude file \.jpg$
#mod_gzip_item_exclude file \.jpeg$
#mod_gzip_item_exclude file \.js$
### End: Miscellaneous ###
# Add your own rules here
# ...
### Blocking Bots and Spams ###
###
http://diveintomark.org/archives/2003/02/26/how_to_block_spambots_ban_spybots_and_tell_unwanted_robots_to_go_to_hell]
###
# Blocking User Agents with no privileges
# User-Agents with no privileges (mostly spambots/spybots/offline
downloaders that ignore robots.txt)
RewriteCond %{HTTP_USER_AGENT} http://www.t3pack.com/t3pack.com [OR] # ERROR
SPAM
RewriteCond %{REMOTE_ADDR} "^63\.148\.99\.2(2[4-9]|[3-4][0-9]|5[0-5])$" [OR]
# Cyveillance spybot
RewriteCond %{REMOTE_ADDR}
^12\.148\.196\.(12[8-9]|1[3-9][0-9]|2[0-4][0-9]|25[0-5])$ [OR] # NameProtect
spybot
RewriteCond %{REMOTE_ADDR} ^12\.148\.209\.(19[2-9]|2[0-4][0-9]|25[0-5])$
[OR] # NameProtect spybot
RewriteCond %{REMOTE_ADDR} ^64\.140\.49\.6([6-9])$ [OR] # Turnitin spybot
RewriteCond %{HTTP_REFERER} iaea\.org [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} Wget [NC,OR] # rude
RewriteCond %{HTTP_USER_AGENT} "Java/1.6.0_04" [OR] # OD
RewriteCond %{HTTP_USER_AGENT} "Java/1.6.0_11" [OR] # rude
RewriteCond %{HTTP_USER_AGENT} ^[A-Z]+$ [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} anarchie [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} Atomz [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} cherry.?picker [NC,OR] # spambot
RewriteCond %{HTTP_USER_AGENT} "compatible ; MSIE 6.0" [OR] # spambot (note
extra space before semicolon)
RewriteCond %{HTTP_USER_AGENT} crescent [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} "^DA \d\.\d+" [OR] # OD
RewriteCond %{HTTP_USER_AGENT} "DTS Agent" [OR] # OD
RewriteCond %{HTTP_USER_AGENT} "^Download" [OR] # OD
RewriteCond %{HTTP_USER_AGENT} EasyDL/\d\.\d+ [OR] # OD
RewriteCond %{HTTP_USER_AGENT}
e?mail.?(collector|magnet|reaper|siphon|sweeper|harvest|collect|wolf)
[NC,OR] # spambot
RewriteCond %{HTTP_USER_AGENT} express [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} extractor [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} "Fetch API Request" [OR] # OD
RewriteCond %{HTTP_USER_AGENT} flashget [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} FlickBot [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} FrontPage [OR] # stupid user trying to edit
my site
RewriteCond %{HTTP_USER_AGENT} getright [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} go.?zilla [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} "efp at gmx\.net" [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} grabber [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} imagefetch [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} httrack [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} "Indy Library" [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} "^Internet Explore" [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} ^IE\ \d\.\d\ Compatible.*Browser$ [OR] #
spambot
RewriteCond %{HTTP_USER_AGENT} "LINKS ARoMATIZED" [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} "Microsoft URL Control" [OR] # spambot
RewriteCond %{HTTP_USER_AGENT} "mister pix" [NC,OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} "^Mozilla/4.0$" [OR] # dumb bot
RewriteCond %{HTTP_USER_AGENT} "^Mozilla/\?\?$" [OR] # formmail attacker
RewriteCond %{HTTP_USER_AGENT} MSIECrawler [OR] # IE's "make available
offline" mode
RewriteCond %{HTTP_USER_AGENT} ^NG [OR] # unknown bot
RewriteCond %{HTTP_USER_AGENT} offline [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} net.?(ants|mechanic|spider|vampire|zip)
[NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} nicerspro [NC,OR] # spambot
RewriteCond %{HTTP_USER_AGENT} ninja [NC,OR] # Download Ninja OD
RewriteCond %{HTTP_USER_AGENT} NPBot [OR] # NameProtect spybot
RewriteCond %{HTTP_USER_AGENT} PersonaPilot [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} snagger [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} Snapbot [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} Sqworm [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} SurveyBot [OR] # rude bot
RewriteCond %{HTTP_USER_AGENT} tele(port|soft) [NC,OR] # OD
RewriteCond %{HTTP_USER_AGENT} TurnitinBot [OR] # Turnitin spybot
RewriteCond %{HTTP_USER_AGENT}
web.?(auto|bandit|collector|copier|devil|downloader|fetch|hook|mole|miner|mirror|reaper|sauger|sucker|site|snake|stripper|weasel|zip)
[NC,OR] # ODs
RewriteCond %{HTTP_USER_AGENT} vayala [OR] # dumb bot, doesn't know how to
follow links, generates lots of 404s
RewriteCond %{HTTP_USER_AGENT} zeus [NC]
RewriteRule .* - [F,L]
RewriteCond %{HTTP_USER_AGENT} ^(-?|[A-Z]{10})$                    [OR]
# A host which tries to hide itself in reverse DNS lookup
RewriteCond %{REMOTE_HOST} ^private$                               [NC,OR]
# Web surveying sites (may require using ipchains)
RewriteCond %{HTTP_REFERER} (traffixer|netfactual|netcraft)\.com   [NC,OR]
RewriteCond %{REMOTE_HOST} \.netcraft\.com$                        [NC,OR]
# A fake referrer that's often used -- use this unless your pages are
related
# in some way to atomic energy and could really be linked to from
www.iaea.org
RewriteCond %{HTTP_REFERER} ^[^?]*iaea\.org                        [NC,OR]
# "addresses.com" is a referer used by an email address extractor
RewriteCond %{HTTP_REFERER} ^[^?]*addresses\.com                   [NC,OR]
# A fake referrer that's used in conjuncting with formmail exploits
RewriteCond %{HTTP_REFERER} ^[^?]*\.ideography\.co\.uk             [NC]
# The rule which blocks out further access from the host
RewriteRule .* /cgi-bin/bad.pl [L,T=application/x-httpd-cgi]
# Bad requests which look like attacks (these have all been seen in real
attacks)
RewriteRule
^[^?]*/(owssvr|strmver|orders|Auth_data|redirect\.adp|MSOffice|DCShop|msadc|winnt|system32|script|autoexec|formmail\.pl|_mem_bin|NULL\.)
/cgi-bin/bad.pl [NC,L,T=application/x-httpd-cgi]
# Filter out bad requests (may need to be adjusted to your needs)
RewriteCond %{THE_REQUEST} "^((GET|POST|HEAD) [^/]|CONNECT)" [NC]
RewriteRule .* /cgi-bin/bad.pl [L,T=application/x-httpd-cgi]
RewriteRule
^(/(scripts|msadc|MSADC|./winnt)|.*(default\.ida|[NX]{30}|c\+dir)) /cgi-bin/
blocklist.pl [L,T=application/x-httpd-cgi]


=====================


*Work in the Foldertree*


   1. delete the .temp files in typo3conf
   2. delete the files and folders inside typo3temp folder

*Work in the Backend*

   1. Log into the backend
   1. when you don't see a skin i.e. if the loginbox is missing and you get
      a white background, than most likely you have forgotten to install the
      t3skin - go back to installtool and repeat *ALL* steps from there!
      2. If you get a blank screen it helped here to clear caches so go back
      to the *Work in the Foldertree *and start over from there
   2. When you are inside the backend run an extension update and update all
   your extensions - actually as you have run it already before it just should
   be fine - just in case.
   3. Clear all caches.

*Problems, Checks and possible Solutions:*


   1. If you have still problems with the backend, than set the compression
   to 0 (ZERO) and have a look if it is working now. If yes most likely you
   have forgotten to insert the .htaccess part! or an extension is causing
   problems.
   2. Check if all your extensions are working again. This should be the
   case in most cases but unfortunately some stoneage and even some newer
   extensions have still a lot of deprecated functions in . If you see an error
   with deprecated functions, than in most cases you are running on PHP 5.3.+
   what is pretty good. It helped for us in 90% the cases to inform the
   developer of this extension which is causing the problem. Before you do this
   check if on forge/svn is already an update available but hasn't been
   published.

*If you still can't get your TYPO3 4.4.0 working contact a TYPO3 Agent and
let them do the job! The update from previous versions to 4.4.0 is in our
opinion NOT AN EASY JOB as you have to take care a lot of things this time,
so better let it do somebody who knows how to do it if you are not
knowledgeable or have a hightraffic site which is critical in downtimes!*
*
*
*They could even combine the update also with a general Server update i.e.
to PHP 5.3.2+ etc which will help you to. It is worth to invest in this!*
*
*
=============


Is it worth to update? you might ask!


YYYEEESSSS!


You will get a much faster, much better looking TYPO3 than ever before. For
us it is the best Version we have seen so far - unfortunately still in CORE
are deprecated functions which really bothers, but we hope that the update
to 4.4.1 is only a change of the core folder again and symlink change like
in all the TYPO3 Versions before.


I would like to Thank the Core Team for their great Stuff they provide to
the community!


Andi


p.s.

please add steps if steps are missing or if you have other solutions or
experiences.


More information about the TYPO3-english mailing list