Directory Structure
Locations marked as “internal” contain source code or other files that don’t need to be accessible through the web, and remote access can be safely restricted. Installed extensions may need relaxing such restrictions to work properly.
MyBB’s Root Directory
- admin/ — files related to the Admin Control Panel; name may be safely changed in the configuration file to improve security
- backups/ — default location for database backups (internal); should not be accessible remotely
- inc/ — source code (internal)
- jscripts/ — user interface scripts accessed by the browser
- modules/ — source code for specific ACP pages (internal)
- styles/ — user interface scripts accessed by the browser
- archive/ — archive mode-related files
- index.php — interface
- global.php — source code (internal)
- print.css, screen.css — interface-related files
- cache/ — pre-generated source code and interface files
- images/ — static interface files (usually images)
- inc/ — source code files (internal)
- 3rdparty/ — external software included in MyBB (internal)
- languages/ — language pack directories (internal)
LANGUAGE-NAME/
— phrase files of a language packLANGUAGE-NAME.php
— metadata file for a language pack
-
plugins/ — plugin source code files (internal)
- config.default.php — renamed to config.php after installation
- config.php — the MyBB configuration file (database connection details and security options)
- settings.php — compiled contents of the board’s Settings
- install/ — files related to the MyBB installer and upgrade script; should be removed after use
- jscripts/ — static JavaScript and related files
- uploads/ — user-supplied content;
- avatars/ — uploaded avatar images (in the
avatar_USER-ID.EXTENSION
format) YYYYMM
/ year & month number pattern — directories generated for storing raw attachment files; should not be accessible remotely (internal)*.attach
files — raw attachment files, usually in thepost_USER-ID_UNIX-TIMESTAMP_RANDOM-STRING.attach
format*_thumb.EXTENSION
— image preview files for attachments
- avatars/ — uploaded avatar images (in the
- global.php — source code (internal)
- other *.php files in the root directory — HTTP-accessible MyBB interface
Additional Files
- index.html — files placed in directories to prevent web servers from listing all files within them when accessed through web
- .htaccess — server rules related to redirections and security features (Apache servers only)
- error.log — default name of log files containing information about encountered errors for developers; usually found in the root directory and
admin/
; should not be accessible remotely (internal)