5.Upgrade to 2.1
6.Upgrade to 2.3
7.Upgrade to 2.5
8.Upgrade to 2.7.1
On one installation I upgraded directly from 2.3 to 2.7 without problems so I think that 2.5 can be skipped (note that this is only my expirience, there might appear some problems).