Where Does MyBB Store Uploads and Config?
MyBB attachment uploads and board settings paths for Apache forums hosted on Linux servers. Covers defaults.
Last updated
MyBB keeps attachments in an uploads folder inside the forum root. Avatars and thumbnails sit beside them in dated folders. That tree is the bulk of disk growth on file heavy boards.
Connection settings live in inc/config.php with database passwords. Back up uploads, the config file, and a database dump together. The database maps filenames to posts, so all three must match. Rebuild tools recount stats after imports. Task scheduler prunes old sessions nightly. Akismet filters spam signups. Plugins extend features.
Where MyBB stores this, by platform
/var/www/mybb/uploads
Attachment root with dated file subfolders. Serve with web user ownership. Copy whole tree with the database for migration.
/var/www/mybb/inc/config.php
Database credentials and table prefix for the board. Restrict read access to the web user. Keep a copy off the server with dumps.
Frequently asked questions
what do i back up for a MyBB move
Copy the uploads folder with config.php and a MySQL dump. Attachments use dated subfolders tracked by the database. Files alone without the database leave orphans.
where is the MyBB database configured
Open inc/config.php in the forum root to read database host and credentials. Attachments stay in uploads regardless. Keep the config private and off version control.
Notice an outdated path? Let us know.