Browse documentation
Configuration
Ports, config files, and service defaults.
On this page
Configuration reference
Quick reference for DevStackBox service defaults. For port conflicts, localhost binding, and firewall behavior, see Environment & Networking.
Default ports
| Service | Default port | Config file (under user data) | Config key |
|---|---|---|---|
| Apache HTTP | 80 | config/httpd.conf | Listen 80 |
| MySQL | 3306 | config/my.cnf | port = 3306 |
| phpMyAdmin | (via Apache) | config/phpmyadmin.conf | served on port 80 |
Apache and MySQL bind to 127.0.0.1 by default (localhost only).
Config file locations
Runtime configs are generated and stored under the user data root:
%LOCALAPPDATA%\DevStackBox\
config\
httpd.conf
my.cnf
php.ini (editable user copy; loaded through PHPRC)
phpmyadmin.conf
config-backups\ timestamped .bak files from in-app editsThe install directory (C:\devstackbox by default) holds binaries and the default www folder served by localhost. Connected projects can stay in any accessible local folder, including another drive. Edit configs from the DevStackBox UI or directly in %LOCALAPPDATA%\DevStackBox\config\.
Override the user data root with the DEVSTACKBOX_DATA_DIR environment variable (advanced).
configVersion
Apache and MySQL use configuration version markers. Apache currently uses configVersion: 9; the v0.1.17 directory baseline is a separate additive migration, so it does not trigger wholesale regeneration. PHP import limits use a separate phpImportLimitsVersion comment. Preserve these markers. Older Apache template migrations can regenerate configuration with a backup; do not assume every migration preserves every custom directive.
Common changes
| Goal | Where to edit |
|---|---|
| Change Apache port | config/httpd.conf → Listen |
| Change MySQL port | config/my.cnf → port |
| PHP settings | config/php.ini or in-app PHP editor |
| Project document root | Projects → Manage project → document root |
After editing, restart the affected service from the dashboard.
PHP settings and updates
The bundled php.ini is a seed template. The editor reads and writes the user copy, which survives normal upgrades. Pinned project runtimes use config/php-runtimes/BRANCH/php.ini; the global editor and terminal use the global configuration.
Custom upload, memory and timeout settings are preserved by the import-limit migration. App-managed extension/session paths and logging/error-display settings can be normalized during configuration preparation. Do not describe every directive as untouched.
Apache .htaccess baseline
v0.1.17 adds AllowOverride None and AllowOverrideList None at the filesystem-root scope. Existing document-root AllowOverride All blocks still enable site rewrites on HTTP and HTTPS. Explicit, more-specific custom rules remain effective. The migration validates a staged file and retains a timestamped backup beside httpd.conf. Restart Apache after upgrading. See Projects.
Related
- Environment & Networking - port conflicts, binding, virtual hosts
- Troubleshooting - errors and fixes
- Commands - Tauri config read/write commands