Linux

Where Does XenForo Store Config and Data?

XenForo keeps database credentials in src/config.php, with attachments in data and internal_data beside it.

Last updated

XenForo splits state between files and MySQL. The config.php file under src carries database credentials for the install. Uploads land in data and internal_data folders under the web root, while posts live in the database.

The web root path varies by host, so only relative locations stay constant. Add-ons drop code into src/addons with their own data folders. Back up config.php with a database dump plus both data folders for a restorable set.

Where XenForo stores this, by platform

Linux
[WebRoot]/src/config.php

Database credentials for the install. Uploads sit in data and internal_data under the same root. Web root varies by host and panel.

Frequently asked questions

How do I back up a XenForo forum?

Dump the MySQL database and copy config.php with the data and internal_data folders. The set restores onto a fresh web root. Test restores on staging first.

Where are XenForo attachments?

Under data and internal_data in the web root by file hash, served through PHP. The database maps hashes to posts. Keep both folders with the dump.

Notice an outdated path? Let us know.