| Red Hat Docs > Manuals > Red Hat Applications > |
In order to upgrade WAF, there are several steps you must follow:
Perform a back up of your server and database to preserve your current data.
Delete all files in your webapp/ directory.
Download the upgraded version of WAF. One the download is complete, read the release notes to gain a better understanding of new features and potential upgrade issues. API changes and improvements are generally listed in the release notes.
Install the latest version of WAF on top of your current version of WAF, letting it overwrite the WAF files.
![]() | Tip | |
|---|---|---|
If you have modified any of the existing WAF code, you will need to reapply your patches to the newly upgraded code. Source control systems such as CVS have features that facilitate merging with third-party sources. Note, in CVS this is known as a vendor branch. For more information, see:
|
Run the appropriate data model upgrade scripts. These scripts reside in the sql/upgrade/ directory.
Update the enterprise.init file to match the enterprise.init.in file.
Finally, restart your server and test your system to ensure that the upgrade was successful. You can run all of the built in regression tests with the command ant runtests; these include tests that verify specific database invariants.
![]() | Caution |
|---|---|
Although every attempt is made to ensure the integrity of your data, it is highly recommended that you make a backup copy of your database before you upgrade, and that you test the upgrade process on a backup copy before running it in production. |