Changelog
All notable changes to MageBox will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[2.2.2] - 2026-11-16
Added
magebox config --json- Prints the resolved project configuration as JSON. Integrations no longer need to parse.magebox.yamland copy the MageBox merge and service rules to get connection details. Theconfigkey holds the merged configuration, with local overrides and included files. Thederivedkey holds the database name and the database, cache, search and domain endpoints that MageBox uses. Standard output contains only the JSON. If MageBox cannot load the project configuration, the command exits with an error. The output can contain sensitive values, such as environment variables. (#165, #164)- Magento 2.4.6-p15, MageOS 4.0.0 and MageOS 3.6.0 - Added to the version registry. MageOS 4.0.0 is now the default MageOS version offered by
magebox new. (#160, #166)
[2.2.1] - 2026-11-12
Fixed
magebox phpmyadmin openOpens the Project's Own Database - The shared phpMyAdmin container knew only one server: the default MySQL version, or another version chosen by map order. It opened the start page there, so a project on another MySQL or MariaDB version showed the wrong server and none of its own data. phpMyAdmin now lists every MySQL and MariaDB container as a server, in a fixed order with the default first.openin a project directory selects that project's server and database. If the running container does not know the project's database server yet, it is recreated first. (#163)
Security
- Sury Keyring No Longer Downloaded to a Fixed
/tmpPath - On Ubuntu releases that use packages.sury.org, bootstrap downloaded the keyring package to/tmp/magebox-sury-keyring.deband then installed it withsudo dpkg -i. Another local user could create or replace that file first and have their own package installed as root. The package is now downloaded into a fresh directory only the current user can enter, and removed afterwards. Thanks to Akif Gumussu. (#161) - Domain Hosts and Store Codes Are Validated Before They Reach nginx -
hostandstore_codewere written unquoted into the nginx store map that every project shares. A value with a space, semicolon or brace closed themapblock and injected directives into thehttpcontext. Even a typo took nginx down for every project on the machine.magebox startandmagebox domain addnow reject a host that is not a valid hostname, and a store code that does not follow Magento's own rule (letters, digits and underscores, starting with a letter). The store map also refuses to render an unsafe entry. Thanks to Akif Gumussu. (#162)
[2.2.0] - 2026-09-28
Changed
MAGE_RUN_CODEIs Only Sent When a Domain Names a Store - MageBox injectedMAGE_RUN_CODEandMAGE_RUN_TYPEinto every vhost, so Magento looked for a store with that exact code even in single-store projects whose default code is notdefault, instead of resolving the store itself. A domain now contributes those variables only when it setsstore_code, and one project can mix store and website codes. Thanks to Louis de Looze. (#109, #107)mage_run_codeandmage_run_typeRenamed tostore_codeandstore_type- The old names still work and print a deprecation warning onmagebox start, because the config loader ignores unknown keys and a project written for an older release would otherwise lose its store codes silently and serve the wrong store.
Added
--store-typeonmagebox domain add- Declares whether a code names a store view or a website.
Fixed
- A Second Multistore Project Would Have Stopped nginx Entirely - The store map was written per project into the shared vhosts directory, and nginx rejects a second
mapfor the same variable withduplicate "MAGE_RUN_CODE" variable, which stops it serving every project on the machine. All projects now share one map file, rebuilt from every project onmagebox start, and the per-project files an earlier build left behind are removed. - Store Codes Leaked into Subdomains - The map matched with a leading dot in nginx's
hostnamesmode, so a deliberately code-lessadmin.mystore.testinherited the code ofmystore.test. Hosts are now matched exactly. - An Invalid
store_typePassed Silently - Anything other thanstoreorwebsitewas sent to Magento asMAGE_RUN_TYPE. A typo now fails validation.
[2.1.2] - 2026-09-24
Fixed
- PHP 8.1 to 8.4 Still Could Not Be Installed on Ubuntu 26.04 - 2.1.1 pinned Ondrej Sury's PPA to the newest suite it publishes. That makes apt work but offers packages depending on library versions (
libxml2,libicu74,libzip4t64) that 26.04 no longer ships, so every install failed on unsatisfiable dependencies. The PPA is being merged into packages.sury.org, which does publish for 26.04. Bootstrap now picks the repository that covers the running release, and warns plainly when none does. - Bootstrap Never Repaired a Broken Sudoers File - 2.1.1 generates valid rules, but
magebox bootstrapskipped the whole step whenever/etc/sudoers.d/mageboxalready existed, so every machine upgrading from an older release kept its rejected wildcard rules and nothing improved. The step now always runs; the installer decides whether a rewrite is needed and leaves a correct file alone. - Bootstrap Aborted Before It Could Fix the PHP Repository -
InstallPrerequisitesranapt updatefirst and returned on any error. A PPA with no packages for the running release makes apt exit 100, so bootstrap gave up before reaching the code that repairs exactly that repository. Bothapt updatecalls are now warnings rather than failures, andadd-apt-repository's own exit code is ignored for the same reason. - One Missing Certificate Took Every Site Offline - nginx refuses to start when a vhost references a certificate that is not on disk, so a single stale project stopped every other one. Bootstrap now checks the certificates every vhost references, regenerates the missing ones it manages, and names the file to remove for any it does not.
- "Docker Is Not Running" When Docker Was Running - A permission error on the Docker socket was reported as a stopped daemon, sending users to restart something that was already up. Bootstrap now distinguishes the two and, for the permission case, prints the command that adds the user to the docker group.
- One Half-Configured Package Blocked Every Install - A package left half-configured by an earlier failure makes
apt installexit 100 whatever it is asked for. Bootstrap treated that as fatal while installing its base tools, so it never reached the repository configuration that would have made PHP installable, and every PHP version was then reported as unavailable. Bootstrap now finishes configuring broken packages withdpkg --configure -abefore installing, and a failure to install base tools is a warning rather than the end of the run. - Every PHP Version Skipped Because apt Could Not Read a Source File - MageBox filters out packages
apt-cachedoes not know, but apt returns the same empty answer whether a package is missing or a sources file could not be read. A repository file MageBox itself wrote root-only therefore made everyphp8.1…php8.4package look unavailable, so bootstrap silently installed none and reported success. The check now treats a permission warning as "cannot tell" and lets apt decide, so an install either works or fails with a message worth reading. - "Local CA Already Installed" While Browsers Trusted a Different One - The check only looked for
rootCA.pemon disk, so on a machine restored from another install MageBox reported the certificate authority as installed while the browser still trusted the old one, and every local HTTPS site warned. Bootstrap now compares the authority's serial against the browser trust store and reinstalls it when they differ. - systemd-resolved Silently Ignored MageBox's Configuration - MageBox writes config through a temp file, which
os.CreateTempcreates as root-readable only, andcpkeeps that mode. systemd-resolved reads its configuration after dropping privileges, so it refused the drop-in with "Permission denied" at every restart and.testnames never resolved, while MageBox reported DNS as configured. Config files are now written world-readable, and callers that need something stricter, such as sudoers, still set their own mode. - Bootstrap Reported Working DNS When Only dnsmasq Answered - The check queried dnsmasq directly, which proves dnsmasq works and nothing else. Everything on the machine goes through the system resolver, so browsers and curl kept failing after a "resolves" line. Bootstrap now checks the system resolver too, and says which of the two answered.
.testNames Failed Outright After a dnsmasq Fallback - The systemd-resolved drop-in that sends.testlookups to MageBox's dnsmasq is written before dnsmasq is known to work. When dnsmasq could not be started, bootstrap fell back to/etc/hostsbut left the drop-in in place, pointing every.testlookup at a resolver that was not running, so names failed instead of falling through to the hosts file. The fallback now removes the drop-in and restarts systemd-resolved.- Bootstrap Ran as Root Broke the Machine - Run with
sudo, bootstrap built the whole environment under/root: the config, the certificate authority, PHP-FPM pools and an nginx include pointing into a directory nginx cannot read, which stopped nginx from starting at all. Bootstrap now refuses to run as root and says to run it as the normal user, which asks for a password where it needs one. - php-fpm.conf Accumulated Includes Until PHP-FPM Would Not Start - Every bootstrap run appended another MageBox pools include. Duplicates define the same pool twice, and an include left by a run under another user matches nothing; either stops PHP-FPM from starting, and a PHP-FPM that cannot start makes every later
dpkgoperation on the package fail, which cascaded into failed Blackfire and dnsmasq installs. Bootstrap now rewrites the file to hold exactly one include, dropping duplicates and includes naming another user's home. - dnsmasq Reported as Installed When Only the Library Was - Ubuntu's
dnsmasq-baseprovides the binary without a systemd unit, so MageBox skipped the install and then failed to start the service with a bare exit code. Installation now also requires the service unit on systemd machines.
[2.1.1] - 2026-09-23
Fixed
- Passwordless Sudo Broken on Ubuntu 26.04 - Ubuntu 26.04 ships sudo-rs, which refuses to parse wildcards in command arguments. MageBox wrote rules such as
systemctl start php*-fpm,cp /tmp/magebox-* /etc/nginx/nginx.confandapt install -y blackfire*, so/etc/sudoers.d/mageboxfailed to parse entirely and every MageBox operation, includingsudo -s, printed parse errors and asked for a password. Rules are now generated as complete commands, one line per PHP version and action, and are identical whether they come from the Go installers or the YAML installer definitions. Bootstrap validates the file withvisudobefore installing it and replaces an existing file that the local sudo rejects, so upgrading and re-runningmagebox bootstraprepairs a broken system. - PHP 8.1 to 8.4 Could Not Be Installed on Ubuntu 26.04 - Ondrej Sury's PPA publishes nothing for Ubuntu releases it has not caught up with, so on 26.04 apt had no
php8.1…php8.4packages and only Ubuntu's own PHP 8.5 could be installed. Bootstrap now checks which suites the PPA publishes, pins the newest one available, and says so. Packages built for the previous release normally install cleanly; a version that fails is reported and bootstrap continues.
Changed
- Ubuntu 26.04 is recognised as a supported release - It no longer triggers the "not officially tested" warning.
- Passwordless sudo is limited to service control - Only starting, stopping, reloading and restarting nginx, PHP-FPM and the Blackfire agent, plus
nginx -tandnginx -s reload, run without a password. Commands that run during bootstrap or an explicit install ask for one, as do Xdebug and Blackfire configuration edits. This also removes the previoussed -i *andln -s *rules, which allowed arbitrary arguments and amounted to unrestricted root for the MageBox user.
[2.1.0] - 2026-09-22
Added
- Magento 2.4.7-p10, MageOS 3.5.0 and MageOS 3.2.0 - Added to the version registry. MageOS 3.5.0 is now the default MageOS version offered by
magebox new. (#148, #145)
Fixed
magebox global stopDid Not Free Ports 80/443 on macOS -global stopstopped Nginx and the Docker services but left the port forwarding LaunchDaemon (com.magebox.portforward) loaded, so ports 80 and 443 stayed occupied and other local dev tools failed to bind them.magebox global stopnow unloads the daemon and waits until port 80 is actually released, andmagebox global startloads it again. The plist stays installed, so nomagebox bootstrapis needed to get forwarding back, andmagebox global statusreports the port forwarding state on macOS. Both commands prompt for sudo on macOS, which is now documented in the command reference, the FAQ and the testing matrix. A stop is reported as successful once the daemon is gone, even if an unrelated local service has meanwhile taken port 80 — handing the ports back is all the command promises — andmagebox global startgoes through the same reconciler asmagebox start, so an outdated daemon is upgraded instead of loaded as is. (#143, #108)bin/magentoFatals on MageOS 3.2.0 and Newer - Since MageOS 3.2.0 the shippedsetup/code referencesMageOS\Installer\Console\Command\InstallCommandfrom a class-constant array in Magento's command loader, so everybin/magentocall fatally errored without the matching psr-4 autoload root in the generatedcomposer.json. The root is now added, and a test guards the autoload roots against drift from the upstream MageOS project template. Thanks to Peter Jaap Blaakmeer.- Wrong PHP Versions Offered for MageOS 3.x - Every MageOS 3.x entry in the version registry advertised PHP 8.2 and omitted PHP 8.5, while upstream requires PHP 8.3, 8.4 or 8.5 for 3.2.0 through 3.5.0.
magebox newoffers that list, so it steered people onto a PHP version the install cannot run on and hid a supported one. Tests now guard the advertised versions against upstream drift, and the embedded and shipped copies of the registry against diverging.
[2.0.1] - 2026-09-01
Added
- Magento 2.4.8-p5 and MageOS 3.4.0 - Added to the version registry; MageOS 3.4.0 is now the default MageOS version. (#137)
Fixed
magebox dbCommands Failed with Exit 127 on MariaDB 11.x - Everydbsubcommand shelled out to a hardcodedmysql,mysqldumpormysqladmininside the database container, but MariaDB 11.0 removed those compatibility symlinks in favour ofmariadb,mariadb-dumpandmariadb-admin. On a project configured with MariaDB 11.x,db import,db export,db shell,db create,db drop,db reset,db topand bothdb snapshotcommands therefore failed with exit 127 and no useful message. Newdocker.DBClientBin/docker.DBDumpBinhelpers resolve the right binary from the configured database type and version, and every call site — including themagebox checkdatabase probe andinternal/project/lifecycle.go— now goes through them. MySQL and MariaDB 10.x are unaffected and keep using themysql*binaries. (#142)- Outdated Port Forwarding Daemon After a Binary Upgrade - Upgrading via Homebrew or
magebox selfupdatereplaces only the binary; the installed LaunchDaemon was upgraded exclusively bymagebox bootstrap, so users silently kept running an old daemon generation — including the removed pf-based approach — until they happened to run bootstrap again.EnsureRulesActivenow reconciles daemon state on everymagebox start: a daemon missing the current plist version marker is reinstalled, an inactive one is kickstarted, and an installed, current, responding daemon is left alone. The decision logic lives in a purenextAction()function with table-driven tests. The misleadingsudo launchctl listhint — which shows the job even when it does nothing useful — was replaced with the kickstart command that actually restarts it, and the FAQ entries that still described the removed pf anchor mechanism were updated. (#138) - Team Server TLS Config Failed Lint and gofmt -
internal/teamserver/server.goset the deprecatedPreferServerCipherSuitesfield (a no-op since Go 1.17, flagged by staticcheck) and was not gofmt-clean, breakingmake linton main. (#140, #141)
[2.0.0] - 2026-08-10
Added
mysql-clientas a Managed Dependency - magerun2's database commands (db:info,db:dump, …) shell out tomysql/mysqldump, but MageBox never checked for them, so those commands failed with no useful explanation.magebox bootstrapnow detectsmysqldumpalongside Docker, Nginx and mkcert, includesmysql-clientin the missing-dependency prompt, and installs it per platform (mysql-clienton Homebrew,default-mysql-clienton Ubuntu/Debian,community-mysqlon Fedora,mariadb-clientson Arch). On macOS the formula is keg-only, so bootstrap prints the shell-specific line needed to put it onPATHand warns — without failing — whenmysqldumpis still missing afterwards.magebox checkreportsmysql-clientstatus in its magerun2 section and surfaces the install command. (#114)- Magento 2.4.9 and MageOS 3.3.0 - Added to the version registry. (#135)
Changed
BREAKING: One Shared Search Container Per Engine - The global compose file was generated per search version, so each requested version got its own container, container name, volumes, and version-derived host port (OpenSearch 2.19 →
9259, Elasticsearch 7.17 →9657). A machine running several projects on different versions therefore ran several search containers, each holding its own JVM heap. MageBox now runs at most one OpenSearch and one Elasticsearch container for the whole machine, shared across every project, on fixed host ports: OpenSearch9200, Elasticsearch9500(distinct so both engines can run simultaneously). Service names (opensearch/elasticsearch), container names (magebox-opensearch/magebox-elasticsearch) and volumes (opensearch_data,opensearch_plugins, …) lost their version suffix. When projects request different versions, the version from global config wins, otherwise the highest requested version is used; the container is provisioned with the largestmemoryany project asks for.GetOpenSearchPort/GetElasticsearchPortreturn the fixed ports and no longer take a version argument, and the version→port helpers were removed.status, service-name matching,magebox newandmagebox checkfollow the fixed names and ports. (#129)Upgrading: projects configured against a version-derived port must be repointed to
9200/9500, and the new container starts on a fresh volume, socatalogsearch_fulltextneeds a reindex. The old per-version containers and volumes are orphaned and can be removed. See Upgrading from MageBox 1.x for the full procedure. Only rebuildable search indices are affected — no persistent data is lost.
Fixed
- Varnish Crash-Looped with Multiple Projects -
buildVCLConfigemitted one backend per registered project, but the template only ever referencesDefaultBackend. Varnish 7.x treats a defined-but-unused backend as a fatal compile error, so with two or more projects the sharedmagebox-varnishcontainer failed to compile its VCL and crash-looped, returning 502 on every request and recurring on eachmagebox start. Every generated backend was identical anyway, since Nginx already routes to the right project byHostheader, so the VCL now emits a singlemagentobackend. The health probe also usedHEAD /expecting301while Magento returns302, which marked the backend sick and returned 503; it now probesGET /health_check.phpexpecting200. Both the embedded template and thelib/templatescopy are fixed — the previous attempt patched only the latter, which is not the one rendered at runtime. (#131) - Stale Container Names in OpenSearch Service Docs - The troubleshooting and container-logs examples still referenced
magebox-opensearch-2.19instead of the sharedmagebox-opensearchcontainer. - Order-Dependent Search Version Test -
TestComposeService_Elasticsearch_FixedPortAndVolumesresolved amajor.minorversion without the Docker Hub mock installed, so it queried the real API and cached the unresolved fallback in the package-level tag cache, intermittently failingTestResolveElasticsearchVersionon CI depending on test order.
[1.19.1] - 2026-08-07
Fixed
- Self-Healing Web-UI Commands -
phpmyadmin,elasticvue, andmailpitnow start their container on demand instead of dead-ending when it is stopped (which happens routinely after a Docker Desktop or machine restart).phpmyadmin openandelasticvue openstart the container when the service is enabled but stopped, then open the browser;mailpit openalways starts it (Mailpit is always on).phpmyadmin enableandelasticvue enableare now idempotent — when already enabled but stopped, they restart the container instead of printing "already enabled" and doing nothing. Only the requested UI container is started (no fullglobal start, no databases dragged in), and a clear message is shown when Docker itself is not running.statusnow points to the relevantopencommand. Shared helpers (isContainerRunning,openInBrowser,ensureGlobalServiceRunning,decideServiceUI) de-duplicate the logic across the three commands. (#128)
[1.19.0] - 2026-08-07
Added
- Configurable PHP-FPM Process Manager - Pool configs previously hardcoded
pm = dynamicwithpm.max_children = 50, sized as if each pool had the machine to itself; on a host running several projects those defaults collectively oversubscribe it, and hand-edited pool files were overwritten on the nextmagebox start. Apmblock can now be set in.magebox.yaml/.magebox.local.yaml, with a machine-widedefault_pmbaseline in~/.magebox/config.yaml. Precedence is project > global > built-in, merged key by key so a local override can tune a single value.ondemandis the notable addition for multi-project machines: dormant projects start no workers at all. Only the directives valid for the selected mode are written, and values are validated before the pool file is written — a single malformed pool prevents the FPM master from starting, taking down every project on that PHP version. Lowering onlymax_childrenscales the untouched spare-server defaults down to fit rather than erroring. Defaults are unchanged, so existing installs render byte-identical pool files. (#133)
Fixed
- PHP-FPM Service Docs Showed Stale
pmValues - The service documentation still listed 5/2/10/500 forstart_servers/min_spare_servers/max_spare_servers/max_requestsrather than the 8/4/12/1000 the code has been generating. (#133) - CI Failed on Fork Pull Requests - The
comment-artifactsjob requestspull-requests: write, but GitHub capsGITHUB_TOKENto read-only forpull_requestruns originating from a fork, so posting the artifact comment failed with a 403 and marked the whole run as failed even when every build, test and lint job passed. This had broken every fork PR since the job was added. The job is now gated on the PR originating from this repository; PRs from branches in this repository keep their artifact comment. (#134)
[1.18.2] - 2026-06-23
Fixed
magebox open <worktree>Served the Wrong Project - The worktree branch skippedstartwhen the shared global services (MySQL, Redis, …) were already running for the base project, so the worktree's Nginx vhost was never generated and requests fell through to Nginx's default server (a different project). The worktree is now started unconditionally.- SSL for Nested Worktree Hosts - Certificates were generated only for the two-label base domain with a
*.basewildcard, which matches a single label, so a nested host such asshop.nl.b2b-case.localhostwas not covered and HTTPS failed. Certificate generation now adds each exact host as a SAN — regenerating only when the existing certificate does not already cover every host — fixing SSL for deeply nested domains.
[1.18.1] - 2026-06-23
Added
- Worktree Argument for
magebox open-magebox open <name>now targets the git worktree at.claude/worktrees/<name>. MageBox derives a.magebox.local.yamlfrom the worktree's.magebox.yaml— appending.<name>to the project name and inserting.<name>before the TLD of each domain host (e.g.mystore.localhost→mystore.<name>.localhost) — then starts and opens the worktree as its own isolated project. Comments and layout from.magebox.yamlare preserved, and the override is rewritten on every run.
[1.18.0] - 2026-05-28
Added
- STOP Protocol Support - New
magebox stop-protocolcommand group (enable,disable,status) that toggles the Static Precompilation & OPcache Protocol for the current project. Enabling writes the requiredopcache.*keys (includingopcache.preload = <project>/app/preload.php,opcache.preload_user, JIT settings, and 512 MB memory) to.magebox.local.yamland performs a full PHP-FPM restart (not a reload), becauseopcache.preloadis only evaluated at master start. A newFPMController.Restart()was added for this purpose. See the STOP guide. (#121) - PR Build Artifacts - CI now uploads binaries built from pull request branches as GitHub Actions artifacts and posts a comment on the PR with download links, so reviewers can test changes without building locally.
Changed
- Search Service Version Resolution -
opensearch:2orelasticsearch:7(major-only shorthands) are now resolved to a concrete image tag that actually exists in the registry, instead of failing with a missing-image error. Hardcoded version defaults were removed in favour of registry lookups, and the docs for OpenSearch and Elasticsearch were updated. (#118)
Fixed
- Redis No Longer Starts Unconditionally -
GenerateDefaultServicespreviously emitted a Redis service in the generated compose file even whenglobalCfg.DefaultServices.Rediswasfalse, somagebox startwould spin up Redis for every project. Redis is now only added when explicitly enabled, anddocker compose upruns with--remove-orphansso previously-started Redis containers are cleaned up on the next start. (#115) - Mailpit Sendmail Compatibility with Symfony Mailer - The generated PHP-FPM pool now sets
sendmail_pathtomailpit sendmail -t. Without-t, Symfony Mailer (used by recent Magento versions) fails to deliver mail through Mailpit because recipients aren't passed on the command line. (#125)
[1.17.0] - 2026-05-13
Added
- Auto-Managed
magerun2Wrapper - Bootstrap now installs~/.magebox/bin/magerun2, so no manual version management is required. The wrapper detects the Magento version fromcomposer.lockand maps it to the correctn98-magerun2release (7.5.0 for Magento < 2.4.5, latest GitHub release for 2.4.5+), downloads the phar once with SHA256 checksum verification, and runs fully offline on subsequent invocations.magebox checkreports wrapper and phar status. (#101) - AI-Accessible Documentation - The VitePress docs now generate
llms.txt,llms-full.txt, and per-page.mdfiles at build time viavitepress-plugin-llms, makingmagebox.devconsumable by AI agents per the llmstxt.org standard. (#110)
Changed
- OpenSearch/Elasticsearch Index Prefix Scoped to Project -
magebox newnow passes the project name as the index prefix in both the interactive wizard's displayedsetup:installcommand and the quick-install execution path. Multiple MageBox projects share one Docker search engine instance, so the previous hardcodedmagento2prefix caused index collisions across projects. Docs were updated to use project-name placeholders with a warning callout explaining why a project-scoped prefix is required. (#111)
Fixed
magebox startTouches Only This Project's Services - The Services summary lists services scoped to the current project, butdocker compose uppreviously started every service in the shared global compose file, so the printed container list includedmysql8.0,opensearch-2.12.0,rabbitmq, etc. owned by other projects.magebox startnow passes the current project's compose service names todocker compose up -d, so the container output matches the Services summary.- Installer Directory Creation - The
install.shscript now creates the installation directory before copying the binary into it, instead of failing when the parent directory doesn't already exist. The redundantINSTALL_DIRdefinition was also removed. (#113)
[1.16.1] - 2026-04-24
Added
- Interactive PHP Version Prompt on
magebox init-magebox initnow prompts for the PHP version, defaulting to the value detected from the project'scomposer.json(config.platform.php, falling back torequire.php) and finally to the global default when no supported version is declared. Supported versions are listed as hints, and the prompt annotates(from composer.json)when the default came from the project. (#97)
Changed
- Multitail Scrollback Buffer -
magebox logsandmagebox logs php|nginxnow keep 10000 lines of scrollback instead of 500, so meaningful log history is actually reachable when scrolling back. (#99)
Fixed
- MySQL/MariaDB Port 3306 Binding - Port 3306 is now bound strictly to the database version named by
globalCfg.DefaultServices.MySQL(or MariaDB when no MySQL default is configured). Previously any MySQL/MariaDB container in the compose file would also grab 3306, which conflicted with a default-version container left running from another project. Only one container ever claims the standard port now. (#100)
[1.16.0] - 2026-04-22
Changed
- macOS Port Forwarding: pf replaced with TCP proxy daemon - The previous approach used macOS
pf(packet filter) kernel rules to redirect ports 80→8080 and 443→8443. These rules were unreliable — Apple's own pf management would override custom anchors after reboot and sleep/wake, silently breaking all.testdomains. MageBox now uses a persistent TCP proxy daemon (magebox _portforward) managed by launchd withKeepAlive: true. The daemon listens on ports 80/443 and forwards connections to nginx on 8080/8443. This eliminates all interaction with the macOS pf subsystem. Legacy pf anchor files (/etc/pf.anchors/com.magebox), helper scripts, and/etc/pf.confmodifications are automatically cleaned up on upgrade. (#95)
Added
- Port forwarding self-healing on
magebox start/magebox restart- On macOS,magebox startandmagebox restartverify that the port forwarding daemon is running and restart it if needed. Domains work immediately without needingmagebox bootstrapagain. - Port Forwarding Health Check -
magebox checknow includes a Port Forwarding section on macOS that reports whether the LaunchDaemon is installed and port forwarding is active.
Fixed
- macOS PHP Detection for Unversioned Homebrew Formula - When PHP was installed via
brew install php(the unversioned/current formula), MageBox failed to find it because it only looked inCellar/[email protected]/. The unversioned formula installs toCellar/php/8.4.x/instead. Both the Go binary detection and the PHP wrapper script now check both paths.
[1.15.1] - 2026-04-21
Fixed
- PHP-FPM Pool Group Lookup -
getCurrentGroup()on Linux previously returned the username verbatim, assuming the primary group name matched the username (USERGROUPS_ENAB convention). On systems where the primary group is renamed or shared (e.g. userjohnwith primary groupjohn-doe), the generated FPM pool containedgroup = johnandphp-fpmrefused to start withcannot get gid for group 'john'. Because the pool file is regenerated on everymagebox start, hand-patching didn't stick. The group is now resolved viaos/user+ GID lookup, andgetCurrentUser()routes throughuser.Current()so both resolutions share one source of truth. (#92) - PHP Install on Ubuntu with PHP 8.5 - PHP 8.5 ships OPcache built into
php8.5-cli, so the Ondřej PPA no longer publishes a separatephp8.5-opcachepackage. The hardcoded install list caused bootstrap to fail withUnable to locate package php8.5-opcache. MageBox now filters the extension list throughapt-cache showbefore invokingapt install, printing a note for any skipped packages. Self-heals future packaging consolidations without requiring version-specific branches. (#94)
[1.15.0] - 2026-04-20
Added
- Auto-Start on
magebox open-magebox opennow starts the project automatically when it is not running. It checks each required service (skipping optional Xdebug and Blackfire) and brings up anything that is down before opening the browser. If everything is already up, the browser opens immediately without extra output. (#86) - MageOS 2.2.2 in Version Registry -
magebox newcan now scaffold MageOS 2.2.2 projects (base: Magento 2.4.8). (#89)
Fixed
magebox runPHP Version Shadowing on Linux -magebox runpreviously prepended/usr/bin(the directory of the versioned PHP binary on Linux) toPATH, which silently shadowed the~/.magebox/bin/phpwrapper and madephpin custom commands resolve to the system default (e.g./usr/bin/php→ PHP 8.4). With Magento 2.4.8-p3 and a mismatched system PHP,bin/magentodegraded to minimal bootstrap mode and commands likedeploy:mode:setwere silently absent.magebox runnow prepends~/.magebox/bininstead, sophp,composer, andblackfirein custom commands consistently resolve to the project-aware wrappers and pick the PHP version from.magebox.yaml. (#91)- Database Import Progress Bar Reaching 100% - The database import progress bar now reaches 100% instead of stopping at the last tick before EOF (e.g. 98.9%). (#87)
[1.14.2] - 2026-04-10
Changed
- Tideways API Key Scope - The Tideways API key is now configured per-project instead of globally. Because each Tideways API key is tied to a single Tideways project, storing it in
~/.magebox/config.yamleither pinned every local Magento project to the same Tideways project or silently got shadowed when reconfigured. The key now lives in the project's.magebox.local.yamlunderphp_ini.tideways.api_keyand is rendered into the FPM pool asphp_admin_value, so multiple local projects can each report to their own Tideways project.magebox tideways configprompts for the key when run inside a project that doesn't have one set, andmagebox tideways statusreports whether the current project has a key configured. Legacy globalapi_keyentries still unmarshal and are detected, surfaced as a migration warning, and removed on save. Access token and environment label remain global. (#82)
Added
--project-api-keyFlag -magebox tideways configaccepts a new--project-api-keyflag for non-interactive per-project API key configuration. Only applied when MageBox is run from inside a project. (#82)
Removed
TIDEWAYS_API_KEYEnvironment Variable - TheTIDEWAYS_API_KEYenv var is no longer read bymagebox tideways config, since the API key is no longer a global setting. Use--project-api-keyor setphp_ini.tideways.api_keyin.magebox.local.yamlinstead. (#82)
[1.14.1] - 2026-04-10
Fixed
- Tideways PHP Extension API Key -
magebox tideways confignow writes thetideways.api_keydirective into the PHP extension ini file for every installed PHP version, which the Tideways PHP extension requires to transmit traces. Previously MageBox only wrote a daemon config file, and traces never reached Tideways. (#77) - Composer Version Fallback -
magebox newno longer errors when the daily-updated version registry contains Magento/MageOS versions not present in the hardcoded composer plugin constraint map. Unknown versions now fall back to sensible defaults instead of failing project creation. (#80) - Self-Update Binary Sync -
magebox self-updatenow syncs the updated binary to all known locations (~/.magebox/bin/magebox,~/.magebox/bin/mbox,/usr/local/bin/magebox,/usr/local/bin/mbox) to prevent version mismatches betweenmageboxandmbox. (#80) magebox new ./Path Handling -magebox new ./now correctly resolves the project name to the current directory name instead of literally.. Paths are normalized viafilepath.Clean. (#80)
Added
- Tideways CLI Access Token -
magebox tideways confignow also prompts for (and stores) a separate Access Token used by thetidewayscommandline tool (tideways run,tideways event create,tideways tracepoint create). When provided, MageBox runstideways import <token>automatically. A new--access-tokenflag andTIDEWAYS_CLI_TOKENenvironment variable were added. The API key and access token are two different credentials — both are now managed. (#77) - Tideways Environment Label -
magebox tideways confignow prompts for an environment label (defaulting tolocal_<username>) and writes a systemd drop-in fortideways-daemonon Linux so traces from developer machines are tagged with the local environment instead of the server-side defaultproduction. A--environmentflag andTIDEWAYS_ENVIRONMENTenv var are also supported. macOS prints a clear manual-config hint. (#77)
Changed
- Troubleshooting Docs - Updated troubleshooting documentation with entries for version mismatch between
magebox/mboxbinaries and unsupported Magento version errors. (#80) - Tideways Docs - Updated Tideways service and global-config guide pages to document the API key vs. access token vs. environment credentials and the per-project Installation URL as the API key source. (#77)
[1.14.0] - 2026-04-08
Fixed
- Xdebug Linux Support - Fixed Xdebug detection on Linux by adding a Linux case to
findXdebugSo()usingphp-configto locate the extension directory. Also writes full Xdebug configuration (mode, start_with_request, client_host, client_port, idekey) when enabling, and updated install hint to usemagebox ext install xdebug. (#75) - Watch Command Cache Clean - The
magebox watchcommand now checks forcache-clean.jsin the project'svendor/bindirectory before falling back to a global install. (#73)
[1.13.1] - 2026-04-07
Changed
- Watch Command Theme Detection - The
magebox watchcommand now detects any theme with an npmwatchscript instead of only Hyvä themes. Walks the full theme tree underapp/design/frontend/and prompts the user to select when multiple themes are found. (#70) - MageOS Version Registry - Added MageOS 2.2.1 to the supported version registry. (#69)
Fixed
- Expose Revert NULL Handling - Fixed expose revert inserting literal string
'NULL'instead of SQLNULLintobase_static_urlandbase_media_urlconfig entries, corrupting the database values after reverting an expose session. (#71) - Tmux Theme Watcher - Fixed tmux theme watcher pane closing immediately when npm watch fails. Errors now stay visible with a user-friendly message. (#72)
- FAQ: Composer Patches on macOS - Added FAQ entry for composer patches hanging on macOS due to BSD patch interactive behavior. (#63)
[1.13.0] - 2026-04-06
Added
- Watch Command - New
magebox watchcommand that runsmage-os/magento-cache-cleanto watch for file changes and selectively clear affected cache types. Automatically detects Hyvä themes and launches a split tmux session with both the cache watcher and Tailwind CSS watcher. (#66) - Magerun2 Fallback - Unknown commands are now automatically forwarded to magerun2 if available, so you can run commands like
magebox cache:flushormagebox setup:upgradedirectly without prefixing withmagerun2. (#67)
[1.12.1] - 2026-04-04
Fixed
- Magento Version Matrix - Added missing Magento patch versions (2.4.8-p4, 2.4.7-p9, 2.4.6-p14) to the composer.json generator, fixing "unsupported Magento version" errors during project creation.
- Homebrew Install Instructions - Updated brew install instructions to use tap + install pattern.
- Release Workflow - Added versioned Homebrew formulae to release workflow and fixed YAML syntax error in auto-update-versions workflow.
[1.12.0] - 2026-04-04
Added
- Include Config Support - Split
.magebox.yamlacross multiple files usinginclude_configto organize large configurations into manageable pieces. (#60) - Automated Magento/MageOS Version Updates - New CI workflow that automatically checks for new Magento and MageOS releases and updates the supported versions list. (#64)
Fixed
- RabbitMQ Credentials - Fixed credential mismatch by using
guest/guestas the default RabbitMQ credentials. (#61) - Elasticsearch/OpenSearch Version Resolution - Short version numbers (e.g.,
8.17) are now resolved to full patch versions (e.g.,8.17.0) for Docker image compatibility. (#62)
[1.11.1] - 2026-04-02
Added
- Update Available Notification - MageBox now checks for new versions in the background and displays a notification after command output when an update is available. Results are cached for 24 hours in
~/.magebox/version-check.json. Skipped forself-updateand dev builds.
Fixed
- GitHub Release Notes - Release workflow now includes the changelog entry in GitHub release notes above the installation instructions.
[1.11.0] - 2026-04-02
Added
- Sandbox Command - New
magebox sandboxcommand to run AI coding agents (Claude, Codex) inside a bubblewrap (bwrap) sandbox with restricted filesystem access. Supports configurable tool profiles, extra bind mounts, and a--dry-runmode. Linux only. (#54) - IPv6 Support (macOS) - Added IPv6 port forwarding rules and nginx listen directives on macOS, fixing "connection refused" errors when clients resolve
.testdomains to::1first. (#52)
[1.10.1] - 2026-03-29
Fixed
- GitHub Actions Warnings - Fixed deprecation warnings in CI workflows. (#51)
- Homebrew Formula Audit - Fixed "Do not define methods in blocks" audit errors by using
on_arm/on_intelDSL and a class-leveldef install.
[1.10.0] - 2026-03-29
Added
- Purge Command - New
magebox purgecommand to remove all generated code, preprocessed views, static content, and caches in parallel. Flushes Redis/Valkey and Varnish when configured. (#47) - phpMyAdmin Service - Add phpMyAdmin as a built-in service with
magebox phpmyadmin enable/disable/status/opencommands and per-project config support. (#43) - Elasticvue Open Command - New
magebox elasticvue opencommand and fixed hardcoded port references. (#44) - Mailpit Commands - New
magebox mailpit openandmagebox mailpit statussubcommands. (#45) - Interactive TUI for Run Command -
magebox runwithout arguments now shows an interactive selector. Added--list/-lflag and implicitmagebox <name>rewrite tomagebox run <name>. (#50) - Expose Request Logs -
magebox exposenow displays incoming HTTP requests with color-coded status codes. (#40)
Fixed
- PHP Wrapper Recursion - Unset
MAGEBOX_PHP_WRAPPERbefore running the PHP binary, preventing infinite recursion when tools like GrumPHP spawn child processes. (#39)
[1.9.0] - 2026-03-17
Changed
- Version-Specific Search Ports - Refined port allocation for OpenSearch and Elasticsearch: moved Elasticsearch base from 9300 to 9500 to provide ample room for both search engines. Updated port documentation accordingly. (#36)
Removed
- Magerun2-Overlapping Commands - Removed
magebox admin,magebox mode,magebox queue, andmagebox reportcommands that duplicated functionality already provided by magerun2 (admin:user:*,deploy:mode:set,queue:consumers:*,dev:report:count). This keeps MageBox focused on environment management. (#38)
[1.8.0] - 2026-03-17
Added
- Valkey Support - Valkey is now available as a Redis alternative, configurable per project with
valkey: truein.magebox.yaml. Valkey is a Redis-compatible fork by the Linux Foundation that uses the same port (6379) and protocol. Themagebox rediscommands automatically detect which cache service is configured. (#36) - Open Command - New
magebox opencommand to quickly open the project's first domain in the default browser. (#35) - Version-Specific Search Ports - OpenSearch and Elasticsearch now use unique host ports per version (e.g., OS 2.19 → 9259, ES 7.17 → 9457), preventing port conflicts when running multiple projects with different search engine versions. When only one search service is configured, the standard port 9200 is additionally mapped for backward compatibility. (#35)
- Magento 2.4.8-p4, 2.4.7-p9, 2.4.6-p14 - Added latest Magento Open Source patch releases to the version matrix.
[1.7.3] - 2026-03-17
Added
- Unattended Bootstrap - New
--unattendedflag formagebox bootstrapthat auto-accepts all interactive prompts, enabling use in Ubuntu autoinstall and other automated provisioning contexts. - Bootstrap TLD Flag - New
--tldflag formagebox bootstrapto set the top-level domain during setup (e.g.,--tld local), saving it to the global config before DNS and vhost configuration runs.
[1.7.2] - 2026-03-17
Added
- Autostart Service - New
magebox servicecommand withinstall,uninstall, andstatussubcommands. Installs a system service (systemd on Linux, launchd on macOS) that automatically starts all global services and projects on boot/login — no more manualmagebox startafter reboot. - Bootstrap Autostart Prompt -
magebox bootstrapnow offers to install the autostart service at the end of setup.
[1.7.1] - 2026-03-17
Added
- Varnish Log Streaming - New
magebox varnish logsandmagebox logs varnishcommands for streaming varnishlog output from the container. - Varnish Request Histogram - New
magebox varnish hist(alias:history) command showing a live histogram of request processing times via varnishhist. - Varnish Admin CLI - New
magebox varnish admincommand for interactive or single-command varnishadm access (e.g.,magebox varnish admin backend.list). - VCL Import Backend Host Check -
magebox varnish vcl-importnow detects when backend.hostis set tolocalhostor127.0.0.1and offers to rewrite it tohost.docker.internalso Varnish in Docker can reach Nginx on the host. - Varnish Enable Health Check -
magebox varnish enablenow verifies the container is healthy after starting and shows container logs on failure. Also detects when Varnish is enabled in config but not running.
Fixed
- Elasticvue Port Conflict - Moved Elasticvue from port 8080 to 8090 to avoid conflict with the Varnish backend port (Nginx listens on 8080 for Varnish).
- Global Start Compose Regeneration -
magebox global startnow regenerates the docker-compose file before starting, so config changes take effect without requiring a full bootstrap.
[1.7.0] - 2026-03-17
Added
- PHP Extension Management - New
magebox extcommand withinstall,remove,list, andsearchsubcommands for managing PHP extensions across all installed PHP versions. Automatically resolves platform-specific package names (apt/dnf/pacman/pecl) from a single canonical extension name. (#31) - PIE Integration - Install custom PHP extensions from Packagist using the
vendor/packageformat (e.g.,magebox ext install noisebynorthwest/php-spx). Uses PIE, the official PECL replacement from the PHP Foundation. PIE and PHP dev tools are installed automatically on first use. - PHP Version Selection - Extension install and remove commands prompt to select which installed PHP version(s) to target, with "All installed" as the default.
- Custom Docker Compose Support - New
compose_fileconfig option to reference a project-leveldocker-compose.yml. Onmagebox start/stop, MageBox prompts to manage these containers and connects them to the MageBox Docker network for service discovery. (#27)
[1.6.0] - 2026-03-15
Added
- Service-Specific Log Tailing - New
magebox logs php/nginx/mysql/redissubcommands for viewing per-service logs. PHP-FPM and Nginx tail local log files with multitail support, while MySQL and Redis stream Docker container logs. Supports-f(follow) and-n(lines) flags. (#26) - Expose / Share via Cloudflare Tunnels - New
magebox exposecommand to share local projects via public Cloudflare Tunnel URLs. Automatically backs up and updates Magento base URLs, nginx vhosts, and env.php, with full revert on Ctrl+C. (#25) - Auto Document Root Discovery - MageBox now automatically discovers the document root directory, removing the need to manually configure it in most cases. (#24)
- Elasticvue Integration - New
magebox elasticvue enable/disable/statuscommands for managing the Elasticvue web UI for OpenSearch/Elasticsearch. (#23) - Database Process Monitor - New
magebox db topcommand for real-time MySQL/MariaDB process monitoring using innotop or mysqladmin processlist. (#23) - VCL Import/Reset - New
magebox varnish vcl-importandmagebox varnish vcl-resetcommands for custom Varnish VCL management. (#23)
[1.5.0] - 2026-03-15
Added
- Hyvä Theme Support - Install and activate the Hyvä theme with
magebox new --hyva. Handles Composer authentication, package installation, and automatic theme activation aftersetup:upgrade. (#21) - Automatic Composer Installation -
magebox newnow detects if Composer is missing and installs it automatically. (#13) - New Magento & MageOS Versions - Added support for latest Magento and MageOS releases. (#14)
Changed
- CGO-Free Builds - Replaced
mattn/go-sqlite3withmodernc.org/sqlitefor CGO-free builds, simplifying cross-compilation. (#15)
Fixed
- IPv6 Nginx Listen Directives - Added IPv6 (
[::]:port) listen directives to nginx vhost templates on Linux. (#20) - Quick Install DI Error - Fixed dependency injection error during quick install by removing pre-generated
env.phpbeforesetup:install. (#18) - Tideways INI Modifications - Use
sudo sedfor tideways PHP INI modifications to match the approach used for xdebug. (#16) - Global Config Defaults - Fixed
magebox initto respectdefault_phpanddefault_servicesfrom global configuration. (#12) - Custom MySQL/MariaDB Config - Fixed mounting of custom MySQL/MariaDB configuration files in docker-compose. (#12)
- macOS sed Compatibility - Use platform-aware sed flags for xdebug enable/disable on macOS. (#12)
[1.4.0] - 2026-03-14
Special thanks to Peter Jaap Blaakmeer for his contributions to this release.
Added
- Laravel Project Type Support - MageBox now supports Laravel projects with a dedicated vhost template,
--type laravelproject type, and proper nginx configuration for Laravel routing. (#8 - @peterjaap) - Uninstall
--purge-packagesFlag - New flag to remove installed system packages (PHP, nginx, etc.) during uninstall, not just MageBox config and data. - Bootstrap MySQL Default Selection - The bootstrap command now asks which MySQL version should be the default and exposes it on port 3306 alongside the version-specific port.
Changed
- Project Name Slash Handling - Slashes in project names are now replaced with dots for cleaner domain and directory names.
Fixed
- Ubuntu 24.04 Bootstrap - Resolved multiple bootstrap failures on Ubuntu 24.04, including package installation, service configuration, and PHP-FPM setup. (#7 - @peterjaap)
- Nginx http2 Compatibility - Use compatible
http2syntax for nginx 1.24 (Ubuntu 24.04) which doesn't support the newerhttp2 ondirective. - DNS Setup Permissions - Use sudo to read
/etc/dnsmasq.confduring DNS setup to avoid permission errors. - Test Host Config Independence - Tests no longer depend on host global configuration, making CI more reliable.
[1.3.3] - 2026-03-04
Added
- Single VERSION File - Version is now managed in a single
VERSIONfile at the repo root, read by Go (via Makefile ldflags), VitePress (viafs.readFileSync), and CI workflows. Eliminates version drift across binaries, docs, and nav. - MageOS 2.1.0 Support - Added MageOS 2.1.0 as the default distribution for new projects (PHP 8.2/8.3/8.4).
- Weekly Upstream Release Check - GitHub Action runs every Monday to detect new Magento/MageOS releases and opens an issue when new versions are found.
Changed
- Simplified Quick Install - Removed Redis and RabbitMQ from
--quickmode to keep it minimal and avoid connection errors during setup. Users can add these services later via.magebox.yaml. - OPcache/JIT Disabled by Default - OPcache and JIT are now disabled by default in PHP-FPM pool settings. Prevents segfaults during
setup:upgradeon PHP 8.3 and eliminates stale cache issues during development. Users can re-enable viaphp_iniin.magebox.yamlfor production-like testing. - Increased PHP-FPM Pool Sizes - Doubled
pm.max_childrenfrom 25 to 50 and proportionally increased start/spare servers (8/4/12) for both shared and isolated pools. Reduces 502 errors under concurrent Magento requests. - PHP Wrapper Disables OPcache CLI - The PHP wrapper now passes
-d opcache.enable_cli=0to all CLI commands, preventing JIT-related segfaults insetup:install,setup:upgrade, and other bin/magento commands.
Fixed
- Quick Install Database Name - Fixed
setup:installusing raw project name (e.g.product-feeds) as--db-namewhileensureDatabasecreated the sanitized name (product_feeds). Both interactive and quick install now use the sanitized name. - Quick Install PHP Wrapper - Fixed
setup:install,sampledata:deploy,setup:upgrade,indexer:reindex, andcache:flushbeing executed via the Composer wrapper instead of the PHP wrapper, causing "Command bin/magento is not defined" errors. - Embedded MageOS Default - Fixed embedded
versions.yamlfallback still using MageOS 2.0.0 as default instead of 2.1.0. - Composer Version Maps - Synced hardcoded composer version maps with
versions.yaml: added MageOS 2.1.0/1.3.x/1.2.0, Magento 2.4.8/2.4.8-p1/2.4.8-p2/2.4.8-p3/2.4.7-p4/2.4.6-p8. Fixed "unsupported MageOS version: 2.1.0" error. - CI Lint Errors - Fixed all
golangci-linterrors (uncheckedjson.Decodereturn values,goimportsformatting).
[1.3.0] - 2026-02-21
Added
Project-Level Custom Nginx Snippets - Add custom nginx config per project:
- Create
{project}/.magebox/nginx/*.conffiles to add custom nginx directives - Snippets are automatically included inside the server block of the generated vhost
- Useful for custom headers, rewrites, proxy rules, or additional location blocks
- No need to modify the global nginx configuration
- Create
Project-Level Vhost Template Override - Full control over the nginx vhost template per project:
- Place a custom template at
{project}/.magebox/templates/nginx/vhost.conf.tmpl - Overrides the default vhost structure for that project only
- Override precedence: project → user global (
~/.magebox/yaml-local/) → default embedded - Useful when custom snippets aren't enough and you need to change the entire vhost structure
- Place a custom template at
Fixed
- Fedora Nginx Permissions - Fixed
/var/lib/nginxownership not persisting across reboots:- Added
/var/lib/nginxbase directory to tmpfiles.d config - Added
/var/log/nginxdirectory entry for proper log permissions - Renamed tmpfiles.d config to
nginx.confto properly override the system default - Prevents systemd from resetting ownership to
nginx:rooton boot
- Added
[1.2.7] - 2026-02-04
Fixed
Isolated PHP-FPM Template - Fixed "Array are not allowed in the global section" error:
php_admin_value[]directives were incorrectly placed in the[global]section of isolated PHP-FPM configs- PHP-FPM only allows these directives in pool sections
- Moved system settings (
opcache.enable_cli, etc.) into the pool section where they work correctly php_admin_valuein pool sections can still override PHP_INI_SYSTEM settings, preserving full isolation
Isolated PHP-FPM Config Regeneration - Fixed configs not updating on restart:
StartAllIsolated()andRestart()now regenerate the config from the embedded template before starting- Previously, config was only generated during initial
Enable(), so template fixes required re-isolating projects - Ensures config always reflects the latest template and settings
Fedora SELinux Log Permissions - Fixed nginx 502 errors caused by SELinux:
- Added
httpd_log_tcontext for~/.magebox/logsdirectory - Nginx was denied writing log files due to
user_home_tcontext on the logs directory - Added both persistent
semanage fcontextrule and immediatechconfallback
- Added
Fedora PHP-FPM Management - Removed systemd enable/start for PHP-FPM:
- MageBox manages PHP-FPM directly to avoid SELinux
httpd_trestrictions on user home directories - Prevents conflicts between systemd-managed and MageBox-managed PHP-FPM processes
- MageBox manages PHP-FPM directly to avoid SELinux
Fedora SELinux PHP 8.5 Support - Added PHP 8.5 to Remi run directory SELinux rules
Arch Linux Bootstrap - Moved common directory setup to base installer
[1.2.6] - 2026-01-24
Fixed
- Nginx Config Setup Resilience - Made MageBox include insertion more robust:
- Tries multiple include markers (conf.d, sites-enabled)
- Falls back to finding http block closing brace
- Provides helpful error message with manual instructions if all methods fail
- Works with custom nginx configurations that lack standard markers
[1.2.5] - 2026-01-24
Fixed
Ubuntu Nginx Permissions - Fixed
/var/lib/nginxpermission denied errors:- Added ownership fix for nginx lib directory (same as Fedora)
- Added tmpfiles.d config for persistent permissions across reboots
- Nginx now restarts after user change to apply configuration
Sudoers Temp File Whitelist - Fixed nginx config update failing without password:
- Changed temp file pattern from
nginx-conf-*tomagebox-nginx-* - Matches existing sudoers whitelist
/tmp/magebox-*
- Changed temp file pattern from
Ubuntu PHP-FPM Bootstrap - Fixed "no pool defined" error:
- Creates placeholder pool before restarting PHP-FPM
- PHP-FPM restart is now non-fatal during bootstrap
- Real pools are created when
magebox startruns
[1.2.4] - 2026-01-24
Fixed
MariaDB Port Mapping - Fixed env.php port mapping to match docker-compose:
- MariaDB 10.6 now correctly uses port 33106 (was incorrectly 33110)
- MariaDB 11.4 now correctly uses port 33114 (was incorrectly 33111)
- All port mappings now use explicit maps instead of string manipulation
Docker Compose Service Drift - Fixed "last project wins" bug:
magebox startnow aggregates services from ALL registered projects- Prevents services required by other projects from being dropped
- Each project start regenerates compose with full service set
Admin Command MariaDB Support - Fixed fallback database config:
- Now uses sanitized database name (hyphens → underscores)
- Added MariaDB port mapping support in admin password/list commands
Isolated PHP-FPM Stop - Fixed isolated masters not stopping:
magebox stopnow properly stops isolated PHP-FPM master processes- Correctly handles both isolated and shared pool configurations
Dry-Run Accuracy - Fixed misleading
--dry-runoutput:- No longer claims Docker containers would be stopped
- Accurately reflects that shared services remain running
Exit Code on Errors - Fixed start/stop returning success on failure:
- Commands now return proper error codes for automation reliability
[1.2.3] - 2026-01-21
Fixed
- PHP Wrapper Recursion Loop - Fixed infinite loop when
/usr/local/bin/phpsymlinks to MageBox wrapper:- Added recursion detection using
MAGEBOX_PHP_WRAPPERenvironment variable - Removed problematic symlink recommendation from documentation
- Wrapper now errors clearly instead of hanging forever
- Added recursion detection using
[1.2.2] - 2026-01-20
Fixed
- Bootstrap Nginx Warning Fix - Fixed false "Nginx is not installed" warning:
- Error message was shown even after successful nginx installation during bootstrap
- Removed premature error that was added before offering to install nginx
[1.2.1] - 2026-01-20
Fixed
- Ubuntu PHP-FPM Installation Failure - Fixed installation failure on Ubuntu with Sury PPA:
- Handles www.conf socket conflict that caused exit code 78 (configuration error)
- Auto-recovers by disabling conflicting www.conf and completing package configuration
- Applies to all PHP versions installed via ondrej/php PPA
[1.2.0] - 2026-01-13
Added
IPv6 Support for DNS Resolution - dnsmasq now responds to both IPv4 and IPv6 (AAAA) queries:
- Fixes 30+ second DNS resolution delays on
.testdomains - Added
address=/test/::1alongside existingaddress=/test/127.0.0.1 - Applied to runtime dnsmasq configuration and all bootstrap installers (Fedora, Ubuntu, Arch)
- Prevents IPv6 AAAA query timeouts that caused slow domain resolution
- Fixes 30+ second DNS resolution delays on
New
magebox php systemCommands - Manage system-wide PHP INI settings (PHP_INI_SYSTEM):mbox php system list- List current system PHP settingsmbox php system set <key> <value>- Set a system-wide PHP INI valuembox php system get <key>- Get current value of a system PHP settingmbox php system unset <key>- Remove a system PHP INI override- These settings apply to the PHP-FPM master process (opcache, JIT, preload, etc.)
Changed
- Improved PHP-FPM Pool Defaults - Updated default pool settings for better Magento performance:
pm.max_children: 10 → 25 (handle more concurrent requests)pm.start_servers: 2 → 4 (faster startup response)pm.min_spare_servers: 1 → 2 (better availability)pm.max_spare_servers: 3 → 6 (handle traffic spikes)pm.max_requests: 500 → 1000 (reduce worker recycling overhead)
Fixed
- DNS Resolution Speed - Resolves the issue where
.testdomains took 6+ seconds to resolve after periods of inactivity due to IPv6 AAAA query timeouts
Technical Notes
- PHP_INI_SYSTEM vs Pool Settings: Pool-level
php_admin_valuedirectives only work for PHP_INI_PERDIR settings. True system-level settings (opcache.memory_consumption, opcache.jit, opcache.preload) require PHP-FPM master process configuration, which is now managed viamagebox php systemcommands.
[1.1.3] - 2026-01-10
Added
- Separated PHP_INI_SYSTEM Settings - System-level PHP settings now managed separately from pool settings:
- Pool configs use
php_admin_valuefor per-request settings - System settings (opcache, preload) require master process configuration
- Clearer separation between project-specific and system-wide PHP configuration
- Pool configs use
[1.0.5] - 2025-12-30
Fixed
Database Name Sanitization - MySQL database names now replace hyphens with underscores:
- Project
m2-layout-xml-compilercreates databasem2_layout_xml_compiler - Added
DatabaseName()method to Config for consistent sanitization - Applied to all database operations: create, import, export, shell, reset, snapshots
- Project
Search Plugins Volume Definition - Fixed Docker Compose volume errors:
- OpenSearch and Elasticsearch plugins volumes now properly defined
- Fixes "undefined volume" error on
mbox start
[1.0.4] - 2025-12-30
Fixed
ImageMagick PHP Extension - Bootstrap now properly installs imagick for all PHP versions:
- Fixed
InstallImagickon Fedora to installphp*-php-pecl-imagick-im7 - Fixed
InstallImagickon Ubuntu to installphp*-imagick - Added
php-imagickto Arch Linux default PHP packages - macOS already working via PECL
- Fixed
OpenSearch/Elasticsearch Reliability - Plugins now persist across container restarts:
- Added plugins volume to prevent re-downloading on every start
- Fixes restart loops caused by temporary DNS/network issues
PHP-FPM Pool Isolation - Fixed pool configuration path bug:
- Each PHP version now uses isolated pool directory (
pools/8.1/,pools/8.3/, etc.) - Prevents version conflicts when running multiple PHP versions
- Each PHP version now uses isolated pool directory (
[1.0.3] - 2025-12-29
Added
New
magebox cloneCommand - Dedicated command for cloning team projects:- Clones repository from configured Git provider
- Creates
.magebox.yamlif not present - Runs
composer installautomatically - Optional
--fetchflag to also download database and media
SELinux Fix for Fedora - Bootstrap now sets
httpd_read_user_contentboolean:- Fixes "Permission denied" errors when nginx accesses files in home directories
- Resolves issues with PHP-created files being inaccessible to nginx
Changed
- Simplified
magebox fetchCommand - Now works on existing projects:- Reads project name from local
.magebox.yaml - Searches team asset storage for matching files
- Downloads and imports database by default
- Use
--mediaflag to also download media files - Use
--teamflag to specify team explicitly
- Reads project name from local
Improved
- Better Error Messages - Clearer guidance when project not found in asset storage
- Unit Tests - Added tests for Cloner and AssetFetcher
- E2E Test Setup - Added integration test framework with Docker SFTP
[1.0.2] - 2025-12-26
Fixed
macOS Port Forwarding Persistence - Completely fixed port forwarding rules not persisting after sleep/restart:
- Added
KeepAlive.NetworkStatetrigger - rules now reload automatically when network comes up after wake - Fixed rule detection using
-sn(NAT rules) instead of-sr(filter rules) - Added
sleep 2delay to wait for network stability after wake - Reduced check interval from 60s to 30s for faster recovery
- Added
ThrottleInterval: 5to prevent rapid re-execution - LaunchDaemon now correctly reloads anchor rules directly instead of full pf.conf
- Added
LaunchDaemon Auto-Upgrade - Running
magebox bootstrapnow automatically upgrades old LaunchDaemon versions:- Version marker (
<!-- MageBox-Version-X -->) tracks plist version - Bootstrap detects outdated versions and reinstalls with new configuration
- Existing users get sleep/wake fixes automatically
- Version marker (
Improved
- Refactored
addAnchorToPfConf()- Split complex function into smaller, focused functions for better maintainability - Future-proofed
insertVersionDots()- Better handling of MariaDB 10.x/11.x version formats in Docker Compose
Added
- Makefile - Added development tooling with
make lint,make test,make buildtargets
[1.0.1] - 2025-12-23
Added
Per-Domain Nginx Logging - Each domain now gets its own access and error logs stored in
~/.magebox/logs/nginx/- Access logs:
~/.magebox/logs/nginx/<domain>-access.log - Error logs:
~/.magebox/logs/nginx/<domain>-error.log
- Access logs:
Sodium PHP Extension - Bootstrap now installs the
sodiumextension for all PHP versions. Required for Argon2i password hashing in Magento.
Fixed
- PHP Wrapper Local Override - Fixed bug where PHP wrapper ignored
.magebox.local.yamlPHP version. Local config now correctly takes priority over main config - PHP Version Switching - Fixed critical bug where switching PHP versions (e.g.,
mbox php 8.1) would fail because all pool configs were in a single directory. Now pools are organized by version:~/.magebox/php/pools/<version>/ - macOS Port Forwarding Reliability - Added
StartIntervalto LaunchDaemon to re-apply pf rules every 60 seconds (catches resets by other apps like Little Snitch)
[1.0.0] - 2025-12-22
🎉 First Stable Release
MageBox v1.0.0 marks the first stable release, ready for team collaboration and production use.
Security Hardening
This release includes comprehensive security improvements following a full code audit:
- Shell Injection Prevention - SSH key deployment now uses base64 encoding instead of heredocs to prevent command injection
- X-Forwarded-For Protection - Proxy headers only trusted when connection is from configured
trusted_proxies, with rightmost non-proxy IP extraction - SSH Host Key Verification - TOFU (Trust On First Use) with fingerprint storage and verification for subsequent connections
- TOTP Replay Attack Prevention - Used codes are tracked and rejected within validity window (90 seconds)
- HMAC Upgraded to SHA-256 - MFA now uses HMAC-SHA256 with 32-byte secrets (was SHA-1/20-byte)
- URL Validation - Server join command validates URLs and warns about private/local addresses
- Security Headers - Added HSTS, Content-Security-Policy, Referrer-Policy, Permissions-Policy, Cache-Control
- Input Validation - SSH public keys validated for format and base64 encoding; usernames sanitized
Added
TrustedProxiesconfiguration option for secure proxy header handlingHostKeyfield in Environment for SSH host key verificationValidateCodeForUser()MFA method with replay protection- SSH key format validation (
validateSSHPublicKey) - Username sanitization (
sanitizeUsername)
Changed
- TOTP secret length increased from 20 to 32 bytes for SHA-256
- SSH key deployment uses base64 encoding for security
- Client IP extraction requires explicit proxy configuration
Fixed
- IDE Terminal PHP Wrappers - Bootstrap now adds PATH to
.zshenvfor zsh users, which is sourced by ALL shell invocations including IDE terminals - Fedora/RHEL PHP Detection - Added direct Remi PHP path (
/opt/remi/phpXX/root/usr/bin/php) as fallback - macOS Port Forwarding Persistence - Use WatchPaths instead of KeepAlive for reliable pf rule persistence across network changes
Testing
- All unit tests pass (17 packages)
- Static analysis clean (
go vet,staticcheck) - No known vulnerabilities (
govulncheck)
[0.19.1] - 2025-12-19
Added
Server-Side SSH Key Generation - Team Server now generates Ed25519 SSH key pairs for users:
- Keys are generated server-side when users join (no need to provide public key)
- Private key is securely returned to client and stored in
~/.magebox/keys/ - Public key is automatically stored on the server for deployment
- Each user gets a unique key pair per Team Server
New CLI Commands:
magebox ssh <environment>- SSH into team server environments using stored keysmagebox env sync- Sync accessible environments from team server
Environment Sync API - New
/api/environmentsendpoint for clients to fetch accessible environments
Changed
magebox server joinno longer requires--keyflag - server generates the key- Join response now includes
private_key,server_host, andenvironmentslist
Testing
- Added comprehensive unit tests for SSH key generation (
crypto_test.go) - Added E2E integration tests with Docker containers for actual SSH connections
- Tests cover key uniqueness, access grant/revoke, and environment sync
[0.19.0] - 2025-12-18
Added
- Team Server - Centralized team access management system for secure SSH key distribution:
- Project-Based Access Control - Users granted access to projects containing multiple environments
- User Management - Invite flow with admin approval, role-based permissions (admin, dev, readonly)
- SSH Key Distribution - Automatic deployment/removal of SSH keys to environments
- Multi-Factor Authentication - TOTP support (Google Authenticator compatible)
- Tamper-Evident Audit Logging - Hash chain verification for compliance
- Email Notifications - SMTP support for invites, security alerts
- Security Features - AES-256-GCM encryption, Argon2id token hashing, IP lockout
- ISO 27001 Compliance - Documentation with control mapping and recommended procedures
New Commands
magebox server init- Initialize team server with master key and admin tokenmagebox server start- Start team server with TLS, SMTP, and security optionsmagebox server stop- Stop running team servermagebox server status- Check team server statusmagebox server user add/list/show/remove- User managementmagebox server user grant/revoke- Project access managementmagebox server project add/list/show/remove- Project managementmagebox server env add/list/show/remove/sync- Environment managementmagebox server audit- View and export audit logs with filteringmagebox server join- Accept invitation and register SSH key
Documentation
- New
docs/TEAMSERVER.mdwith comprehensive documentation - ISO 27001 compliance section with control mapping
- Recommended procedures for access review, onboarding/offboarding
- Docker deployment examples
- Integration testing guide
[0.14.5] - 2025-12-16
Added
- Debian 12 and Rocky Linux 9 test containers - Expanded CI testing coverage
- Improved Linux distro detection - Better support for derivative distributions:
- Proper parsing of
/etc/os-release(handles quoted values) ID_LIKEsupport for derivatives (EndeavourOS, Pop!_OS, Garuda, etc.)- Warning for untested but compatible distros instead of hard failure
- Proper parsing of
Fixed
- Docker Compose V1 fallback - Auto-detects and uses
docker-compose(standalone) whendocker compose(V2) is not available - EndeavourOS bootstrap - Fixed detection failing due to quoted values in os-release
- Ubuntu PHP installation - Removed non-existent
php-sodiumpackage (bundled in php-common) - OpenSearch version - Updated from 2.12 to 2.19.4 (2.12 tag doesn't exist on Docker Hub)
- Self-update permissions - Automatic sudo when updating binary in /usr/local/bin
[0.14.4] - 2025-12-16
Added
- Self-hosted GitLab/Bitbucket support - New
--urlflag formagebox team addto specify custom instance URLs:magebox team add myteam --provider=gitlab --org=mygroup --url=https://gitlab.mycompany.com- Supports both GitLab CE/EE and Bitbucket Server/Data Center
- Clone URLs automatically use the custom host
- Bitbucket Server API support - Repository listing now works with self-hosted Bitbucket instances
Fixed
- Bitbucket authentication error - Now shows helpful message when token is required for private repos
[0.14.3] - 2025-12-16
Fixed
- Installer non-interactive mode - Fixed alias prompt hanging when running via
curl | bashby auto-detecting non-interactive mode and using default alias
[0.14.2] - 2025-12-16
Fixed
- Installer checksum verification - Fixed bug where download info message was captured with filename, causing checksum verification to fail
[0.14.1] - 2025-12-15
Added
- Interactive alias selection - Install script now prompts for short command alias:
mbox- recommended, descriptive (default)mb- shortest (2 chars)- Both or skip options available
- Version display in installer - Banner now shows version number
Changed
- Updated ASCII logo in installer to match CLI
[0.14.0] - 2025-12-15
Added
magebox test- Comprehensive testing and code quality commands:magebox test setup- Interactive wizard to install PHPUnit, PHPStan, PHPCS, PHPMDmagebox test unit- Run PHPUnit unit tests with filter and testsuite optionsmagebox test integration- Run Magento integration tests with tmpfs supportmagebox test phpstan- Run PHPStan static analysis (levels 0-9)magebox test phpcs- Run PHP_CodeSniffer with Magento2 or PSR12 standardsmagebox test phpmd- Run PHP Mess Detector with configurable rulesetsmagebox test all- Run all tests except integration (for CI/CD)magebox test status- Show installed tools and their configuration status
- Tmpfs MySQL for integration tests - Run MySQL in RAM for 10-100x faster tests:
--tmpfsflag to enable RAM-based MySQL container--tmpfs-sizeto configure RAM allocation (default: 1g)--mysql-versionto specify MySQL version (default: 8.0)--keep-aliveto keep container running after tests- Container naming:
mysql-{version}-test(e.g.,mysql-8-0-test)
- PHPStan Magento extension support - Automatic integration with
bitexpert/phpstan-magento:- Factory method analysis for ObjectManager
- Auto-generates
phpstan.neonwith extension includes
- Testing configuration in
.magebox.yaml- Configure paths, levels, standards, and rulesets per project - Comprehensive testing documentation - Added "Testing" section in navigation with detailed command reference
Changed
- Added "Testing" link to VitePress navigation header
[0.13.3] - 2025-12-15
Fixed
- Test containers: Added missing Magento-required PHP extensions to all Dockerfiles:
- Ubuntu (24.04, 22.04, ARM64): Added
bcmath,gd,intl,mysql,soap - Fedora 42: Added
bcmath,gd,intl,mysqlnd,soap - Arch Linux: Added
php-gd,php-intl,php-sodium
- Ubuntu (24.04, 22.04, ARM64): Added
[0.13.2] - 2025-12-15
Added
magebox dev- Switch to development mode optimized for debugging:- OPcache: Disabled (immediate code changes)
- Xdebug: Enabled (step debugging)
- Blackfire: Disabled (conflicts with Xdebug)
- Settings persisted in
.magebox.local.yaml
magebox prod- Switch to production mode optimized for performance:- OPcache: Enabled (faster execution)
- Xdebug: Disabled (no overhead)
- Blackfire: Disabled (enable manually when needed)
magebox queue- RabbitMQ queue management for Magento:magebox queue status- View queue status with message countsmagebox queue flush- Purge all queues (use with caution)magebox queue consumer [name]- Run Magento queue consumersmagebox queue consumer --all- Start all consumers via cron- Uses RabbitMQ Management API for status/flush operations
Fixed
- Config Loader - PHP INI overrides (
php_ini) are now properly merged from local config
[0.13.1] - 2025-12-15
Added
magebox db snapshot- Database snapshot management for quick backup/restore:magebox db snapshot create [name]- Create a compressed snapshotmagebox db snapshot restore <name>- Restore from a snapshotmagebox db snapshot list- List all snapshots for the projectmagebox db snapshot delete <name>- Delete a snapshot- Snapshots stored in
~/.magebox/snapshots/{project}/ - Automatic gzip compression for smaller files
- HTTPS Auth for Teams - New
--auth=httpsoption for public repositories:- Default auth method changed from
sshtohttps - Enables cloning public repos without SSH keys (e.g.,
magento/magento2) - SSH still available with
--auth=sshfor private repos
- Default auth method changed from
Security
- SSH Host Key Verification - SFTP connections now verify host keys against
~/.ssh/known_hostsinstead of accepting any key
[0.13.0] - 2025-12-15
Added
magebox start --all- Start all discovered MageBox projects at oncemagebox stop --all- Stop all running MageBox projects at oncemagebox restart- Restart project services (stop + start)magebox uninstall- Clean uninstall of MageBox components:- Stops all running projects
- Removes CLI wrappers (php, composer, blackfire)
- Removes nginx vhost configurations
- Use
--keep-vhoststo preserve nginx configs - Use
--forceto skip confirmation
- Test Mode (
MAGEBOX_TEST_MODE=1) - Run MageBox in containers without Docker:- Skips Docker operations for container-based testing
- Useful for CI/CD and integration testing
- Docker Integration Tests - Comprehensive test suite for multiple distributions:
- Fedora 42 (Remi PHP)
- Ubuntu 24.04 (ondrej/php PPA)
- Ubuntu 22.04 (ondrej/php PPA)
- Ubuntu 24.04 ARM64 (ondrej/php PPA)
- Arch Linux (latest PHP)
- Tests: init, start/stop/restart, domains, SSL, Xdebug, Blackfire, team, uninstall
- Run with:
./test/containers/run-tests.sh
[0.12.14] - 2025-12-15
Fixed
- Multi-domain store code - Fixed
mage_run_codeandmage_run_typenot being passed to nginx - Dynamic
MAGE_RUN_TYPE- No longer hardcoded tostore, now reads from domain config (supportsstoreorwebsite)
[0.12.13] - 2025-12-15
Fixed
- Xdebug enable/disable on Fedora - Now supports Remi PHP paths (
/etc/opt/remi/php{ver}/php.d/) - Uses sudo sed for Xdebug ini modifications (required on Fedora)
magebox blackfire onnow properly disables Xdebug on Fedora before enabling Blackfire
[0.12.12] - 2025-12-15
Added
- Blackfire CLI wrapper -
~/.magebox/bin/blackfireuses project's PHP forblackfire runcommands - Bootstrap now installs three shell script wrappers in
~/.magebox/bin/:php- Automatically uses PHP version from.magebox.yamlcomposer- Runs Composer with project's PHP versionblackfire- Uses project's PHP forblackfire runcommands
Fixed
- Blackfire agent configuration - Uses
sudo sedto update/etc/blackfire/agentcredentials - Blackfire PHP extension on Fedora - Uses single
blackfire-phppackage (not versioned) - Tideways on Fedora 41+ - Downloads RPMs directly (dnf5/cloudsmith compatibility)
- GPG key import - Imports Blackfire and Tideways GPG keys before installing packages
- Non-fatal xdebug disable - Enabling Blackfire/Tideways no longer fails if xdebug ini is missing
[0.12.11] - 2025-12-15
Fixed
- Tideways repository URL for Fedora - Changed from
fedora/$releasever/$basearchto just$basearch
Added
- Passwordless sudo for Blackfire/Tideways installation and systemctl commands
[0.12.10] - 2025-12-14
Added
- Blackfire & Tideways in Bootstrap - Bootstrap now automatically installs profilers for all PHP versions:
- Fedora: Adds Blackfire/Tideways repos, installs agent and PHP extensions
- Ubuntu/Debian: Adds repos with GPG keys, installs packages
- macOS: Uses Homebrew tap and pecl
- Arch: Uses pecl (agent must be installed from AUR)
[0.12.9] - 2025-12-14
Fixed
- Varnish backend connectivity on Linux - Use
host.docker.internalinstead of host LAN IP - Varnish backend port - Added dedicated backend port (8080) for Varnish on Linux
- Nginx now listens on port 8080 as backend when Varnish is enabled
[0.12.8] - 2025-12-14
Added
- PHP INI configuration in Bootstrap - Automatically configures PHP INI settings:
- Sets
memory_limit = -1(unlimited) for CLI - Sets
max_execution_time = 18000for long-running CLI scripts - Works on all platforms: Fedora (Remi), Ubuntu (Ondrej PPA), macOS (Homebrew), Arch
- Sets
- Fedora 43 Support - Added to officially supported Linux distributions
[0.12.7] - 2025-12-14
Changed
- PHP memory limits - Increased for Magento compatibility
- PHP-FPM pool: 768M (was 756M)
- PHP CLI wrapper: unlimited (
-1) for commands likesetup:di:compile
[0.12.6] - 2024-12-14
Fixed
- Bootstrap sudoers creation - Fixed silent failure when creating
/etc/sudoers.d/mageboxWriteFilenow usesRunSudoinstead ofRunSudoSilentto allow password prompt- Previously failed silently if no cached sudo session existed
[0.12.5] - 2024-12-14
Changed
- Simplified Composer wrapper - Now uses the PHP wrapper instead of duplicating version detection logic
- Composer wrapper at
~/.magebox/bin/composercalls the PHP wrapper - Reduced code duplication, single source of truth for PHP version detection
- Composer wrapper at
Removed
- Removed
magebox composercommand - No longer needed since~/.magebox/bin/composerwrapper handles this automatically- Just use
composerdirectly (with~/.magebox/binin PATH)
- Just use
[0.12.4] - 2024-12-14
Added
- Automatic PATH configuration during bootstrap - No longer need to manually add
~/.magebox/binto PATH- Bootstrap automatically adds PATH entry to shell config (
.zshrc,.bashrc,.bash_profile) - Supports zsh (macOS default), bash, and fish shells
- Creates
.zshrcif it doesn't exist on macOS - Shows reload instructions after bootstrap completes
- Bootstrap automatically adds PATH entry to shell config (
[0.12.3] - 2024-12-14
Added
magebox composercommand - Run Composer with the project's configured PHP version- Automatically uses PHP version from
.magebox.yaml - Passes all arguments to Composer
- Sets
COMPOSER_MEMORY_LIMIT=-1for large projects
- Automatically uses PHP version from
[0.12.2] - 2024-12-14
Added
- Composer install in fetch workflow - Automatically runs
composer installafter cloning a team project - Enhanced Fedora SELinux support - Bootstrap now configures persistent SELinux fcontext rules using
semanage:httpd_var_run_tcontext for~/.magebox/run/(PHP-FPM sockets)httpd_config_tcontext for~/.magebox/nginx/and~/.magebox/certs/
- Sudoers rule for /etc/hosts - Bootstrap adds passwordless sudo for hosts file modifications
Fixed
- PHP-FPM socket location - Moved from
/tmp/magebox/to~/.magebox/run/to avoid nginx PrivateTmp isolation - Fedora PHP-FPM binary path - Fixed detection to use Remi paths (
/opt/remi/php*/root/usr/sbin/php-fpm)
Changed
- PHP-FPM pool generator now uses platform-aware binary path detection
- Nginx vhost generator uses
~/.magebox/run/for socket paths
[0.12.1] - 2024-12-14
Added
- SELinux support for Fedora - Bootstrap automatically configures SELinux:
- Sets
httpd_can_network_connectboolean for nginx to proxy to Docker containers - Configures
httpd_config_tcontext on~/.magebox/nginx/and~/.magebox/certs/
- Sets
- Added
ConfigureSELinux()method to installer interface
Changed
- Simplified PHP-FPM configuration - No longer modifies PHP-FPM config files on Linux
- Uses default repository log paths to avoid permission and SELinux issues
- Reduces potential for configuration conflicts
Documentation
- Added comprehensive SELinux troubleshooting guide
- Updated bootstrap documentation with SELinux configuration details
- Updated Linux installers documentation with SELinux tips
[0.12.0] - 2024-12-14
Added
- CLI flags for non-interactive command execution:
magebox team addnow supports--provider,--org,--authflagsmagebox team addsupports asset storage flags:--asset-provider,--asset-host,--asset-port,--asset-path,--asset-usernamemagebox blackfire confignow supports--server-id,--server-token,--client-id,--client-tokenflagsmagebox tideways confignow supports--api-keyflag
- Homebrew tap for easy installation:
brew tap qoliber/magebox && brew install magebox - Install script for curl-based installation:
curl -fsSL https://get.magebox.dev | bash - GitHub Actions workflows:
- Automatic Homebrew formula updates on new releases
- Install script deployment to documentation server
Fixed
- Dynamic team subcommand routing (
magebox team <teamname> <subcommand>now works correctly)
Changed
- All interactive commands now fall back to prompts only when required flags are not provided
- Improved CI workflow: removed deprecated macOS-13 runner
[0.11.0] - 2024-12-14
Added
- Team collaboration feature - Share project configurations across teams:
magebox team add <name>- Add a new team with repository and asset storage configmagebox team list- List all configured teamsmagebox team remove <name>- Remove a team configurationmagebox team <name> show- Show team configuration detailsmagebox team <name> repos [--filter]- Browse repositories in team namespacemagebox team <name> project add/list/remove- Manage team projects
- Repository provider support:
- GitHub, GitLab, and Bitbucket integration
- SSH and token-based authentication
- Repository listing with filtering (glob patterns)
- Asset storage support:
- SFTP/FTP for database dumps and media files
- Progress tracking with download speed and ETA
- Secure credential storage via environment variables
- Fetch command -
magebox fetch <project>:- Clone repository from configured provider
- Download and import database automatically
- Download and extract media files
- Support for
--branch,--no-db,--no-media,--dry-runflags
- Sync command -
magebox sync:- Sync latest database and media for existing projects
- Auto-detect project from git remote
- Support for
--db,--media,--backup,--dry-runflags
- New packages:
internal/team/with comprehensive test coverage - Team configuration stored in
~/.magebox/teams.yaml - Documentation:
docs/teamwork.md- Complete guide for team features
Changed
- Fixed printf format string issues across multiple commands for cleaner linter output
[0.10.12] - 2024-12-14
Added
- Xdebug state restoration when disabling Blackfire
- When enabling Blackfire, Xdebug state is saved if it was enabled
- When disabling Blackfire, Xdebug is automatically restored to previous state
- State stored in
~/.magebox/run/xdebug-state-{version}
Fixed
- Blackfire installation on macOS now installs PHP-specific formula (
blackfire-php82, etc.) - Blackfire extension detection updated for Homebrew's path format
- Blackfire agent detection now handles
blackfire agent:startprocess name - Service detection fallback for Elasticsearch/OpenSearch when compose file is stale
Changed
- Blackfire enable/disable properly handles Homebrew's ini file format
[0.10.11] - 2024-12-14
Fixed
- Docker service detection now falls back to container name when compose file is stale
- Service names like
elasticsearch8170properly map to containermagebox-elasticsearch-8.17.0
Changed
- Updated version display to 0.10.11
[0.10.10] - 2024-12-13
Added
- MageBox logo to README
- Complete CLI commands reference documentation
- Logs & Reports guide page
Fixed
- Xdebug installation detection now uses
php -minstead of file checks - Skip xdebug pecl install if already installed (avoids confusing error messages)
[0.10.2] - 2024-12-13
Added
magebox db create- Create project database from configmagebox db drop- Drop project database (with confirmation)magebox db reset- Drop and recreate project database (with confirmation)- Database commands now use
DefaultDBRootPasswordconstant for consistency
Changed
- Updated
db import,db export,db shellto use password constant
[0.10.1] - 2024-12-13
Fixed
- Linting issues: unchecked error return, unused functions, gofmt formatting
[0.10.0] - 2024-12-13
Added
- Blackfire profiler integration:
magebox blackfire on/off- Enable/disable Blackfire profilingmagebox blackfire status- Show current Blackfire statusmagebox blackfire install- Install Blackfire agent and PHP extensionmagebox blackfire config- Configure Blackfire credentials- Platform support: macOS (Homebrew), Fedora (dnf), Ubuntu/Debian (apt), Arch (AUR)
- Automatic Xdebug disable when enabling Blackfire to avoid conflicts
- Tideways profiler integration:
magebox tideways on/off- Enable/disable Tideways profilingmagebox tideways status- Show current Tideways statusmagebox tideways install- Install Tideways daemon and PHP extensionmagebox tideways config- Configure Tideways API key- Platform support: macOS (Homebrew), Fedora (dnf), Ubuntu/Debian (apt), Arch (AUR)
- Automatic Xdebug disable when enabling Tideways to avoid conflicts
- Global profiling credentials storage:
- New
profilingsection in~/.magebox/config.yaml - Secure credential storage (no credentials in per-project config)
- Environment variable fallback (
BLACKFIRE_*,TIDEWAYS_API_KEY)
- New
- New packages:
internal/blackfire/,internal/tideways/
Changed
GlobalConfignow includesProfilingconfiguration section- Added helper methods for credential management with environment variable precedence
[0.9.1] - 2024-12-13
Added
- Additional template files for better maintainability:
internal/dns/templates/systemd-resolved.conf.tmpl- systemd-resolved configurationinternal/xdebug/templates/xdebug.ini.tmpl- Xdebug INI configurationinternal/php/templates/not-installed-message.tmpl- PHP installation instructions (platform-aware)internal/ssl/templates/not-installed-error.tmpl- mkcert installation error
XdebugConfigstruct for customizable Xdebug settingsSystemdResolvedConfigstruct for DNS configuration
Changed
- Refactored Xdebug configuration to use template
- Refactored PHP not-installed message to use template with platform detection
- Refactored systemd-resolved config generation to use template
- Refactored mkcert error message to use template
[0.9.0] - 2024-12-13
Added
- Template-based configuration generation using Go's
text/templateengine - New template files:
internal/project/templates/env.php.tmpl- Magento env.php with conditionalsinternal/dns/templates/dnsmasq.conf.tmpl- dnsmasq configurationinternal/dns/templates/hosts-section.tmpl- /etc/hosts entries
EnvPHPDatastruct for clean template data separation- Mailpit always enabled for local development safety (prevents accidental real emails)
- Comprehensive test coverage for env.php generation
- New
internal/bootstrap/package with platform-specific installers:installer/darwin.go- macOS (Homebrew) supportinstaller/fedora.go- Fedora/RHEL/CentOS (dnf + Remi) supportinstaller/ubuntu.go- Ubuntu/Debian (apt + Ondrej PPA) supportinstaller/arch.go- Arch Linux (pacman) support
- OS version validation during bootstrap
- Explicit supported platform versions in bootstrap help
Changed
- Refactored
internal/project/env.gofrom 310 lines of string builders to 195 lines using templates - Refactored
internal/dns/dnsmasq.goto use embedded template - Refactored
internal/dns/hosts.goGenerateMageBoxSection()to use template with - Mailpit Docker service now always included in docker-compose.yml
- Mailpit PHP-FPM configuration (sendmail_path) always enabled
- Refactored
cmd/magebox/bootstrap.goto use new bootstrap package - Bootstrap now uses
Installerinterface for clean platform abstraction
Fixed
ValidationErrorindex conversion bug (now works for indices > 9)- Missing Varnish merge in config loader
- PHP-FPM config path for Fedora/RHEL (Remi repository)
- Silently ignored errors in bootstrap.go PHP-FPM setup
- MySQL/MariaDB memory configuration now properly used
Improved
- Added constants for magic numbers in
cmd/magebox/new.go - Database credentials now use constants (
DefaultDBRootPassword, etc.) - Test coverage for
internal/projectimproved from 19.4% to 63.7% - Bootstrap command is now more maintainable with separate installer files per platform
[0.7.1] - 2024-12-12
Changed
- Refactored commands into separate files for better maintainability
[0.7.0] - 2024-12-11
Changed
- Database operations refactor and fixes
[0.6.1] - 2024-12-10
Added
- Auto-execute installation in new
--quickcommand
[0.6.0] - 2024-12-09
Added
- PHP wrapper for Fedora Remi repository support
- Nginx user configuration for Linux
Fixed
- Removed sudo from SSL certificate generation