Upgrading Traq¶
This guide explains how to safely update your self-hosted Traq instance to the latest version.
Always Back Up First!
Before performing any upgrade, you must create a backup of both your database and any configuration files, plugins and themes. This ensures you can restore your instance if anything goes wrong.
Make sure to backup:
- Config files in
vendor/traq/config - Any plugins you installed into
vendor/traq/plugins - Themes you installed into
vendor/traq/views
Directory Changes in v3.9
These directories (vendor/traq/config, vendor/traq/plugins, and vendor/traq/views) will be moved in v3.9. Make sure to check the upgrade notes for v3.9 when upgrading to that version or later.
Upgrade Steps¶
-
Back Up Your Database & Configuration
-
Database: Use a tool like
mysqldumpto create a complete backup of your Traq database.mysqldump -u YOUR_DB_USER -p YOUR_DB_NAME > traq_backup.sql -
Configuration, Plugins & Themes: Create a backup of your configuration directory, plugins, and themes.
# Run this from your Traq project root zip -r traq_backup.zip vendor/traq/config/ vendor/traq/plugins/ vendor/traq/views/
-
-
Download the Latest Version Get the latest stable
.zipor.tar.gzrelease from the official website. -
Extract and Upload Files Extract the new version on your local machine. Using an FTP/SFTP client, upload the new files to your server, overwriting the existing application files.
Restoring Configuration, Plugins & Themes
After uploading, check your
vendor/traq/config/,vendor/traq/plugins/, andvendor/traq/views/directories. If your custom settings, plugins, or themes were overwritten, restore them from thetraq_backup.zipfile you created in Step 1. -
Run Database Migration After-replacing the files, visit your Traq instance in your web browser. Traq should automatically detect that an upgrade is needed and present an on-screen prompt to run any necessary database migrations.
Already up to date
If you are not automatically redirected, you may already be up to date with any database changes. If you would like to double check, you can navigate to
/install/upgrade.php, if it reports "Already up to date" then there is nothing you need to do. -
Clear Caches Clear your browser cache to ensure you are loading the new version's JavaScript and CSS files.