Linux

Where Does MantisBT Store Config and Data?

MantisBT keeps instance config in config/config_inc.php under its web root with attachments and uploads beside it, over a MySQL or Postgres database.

Last updated

MantisBT splits state three ways: PHP config in config_inc.php, uploaded attachments on disk, and issues in the database. The config file sets database credentials and paths while the database holds everything users see.

Upgrades respect this split by leaving config and data in place. New versions add settings with safe defaults rather than overwriting customizations. Full migrations need all three pieces moving together or attachments detach from issues.

Where MantisBT stores this, by platform

Linux
/var/www/html/mantis/config/config_inc.php

Instance config with credentials and paths beside uploads. Database holds issues separately. Back up all three halves together.

Frequently asked questions

How do I back up MantisBT?

Copy config_inc.php plus a database dump and the uploads folder with the web server stopped. All three halves matter: config, files, and rows. Restore in reverse order on the new host.

Where are MantisBT settings?

Edit config_inc.php for database credentials, paths, and mail settings, since the installer writes it once. Version upgrades preserve the file while adding new defaults. Keep it out of web reachable version control.

Notice an outdated path? Let us know.