## 3.15. Upgrading from 4.1.4 to 5.0.x

Install OLAT as described in the installation chapter but DON'T RUN 'ant dbsetup'!! We recommend to move your existing installation from PATH_TO_YOUR_OLAT/olat3 to PATH_TO_YOUR_OLAT/olat4.1.4 and install the 5.0.1 package as your new PATH_TO_YOUR_OLAT/olat3. All user data is located in the olatdata directory which should not be located in the PATH_TO_YOUR_OLAT/olat3. The olatdata directory and the database won't be changed when installing the new code.

    #cd PATH_TO_YOUR_OLAT
    #rm olat (if olat is a symlink, otherwise: mv olat3 olat4.1.4)
    #unzip OLAT-5.0.1.zip
    #ln -s OLAT-5.0.1-FINAL-XXXXX olat3
    #cd olat
    #cp build.properties.default build.properties
    #vi build.properties
    #ant config-all
    #ant install

Update your database manually according to PATH_TO_YOUR_OLAT/olat3/database/alter_4_1_4_to_5_0_0.sql

Now start tomcat.