Skip to content

fix: resolve Ubuntu 24.04 bootstrap failures and update uninstall command to remove packages as well - #7

Merged
jakwinkler merged 7 commits into
qoliber:mainfrom
peterjaap:fix-ubuntu
Mar 14, 2026
Merged

jakwinkler merged 7 commits into
qoliber:mainfrom
peterjaap:fix-ubuntu

Conversation

@peterjaap

@peterjaap peterjaap commented Mar 14, 2026 •

Copy link
Copy Markdown
Collaborator
  • [FIX] Call InstallPrerequisites() during bootstrap to add ondrej/php PPA before installing PHP versions (fixes PHP 8.1/8.2 not found)
  • [FIX] Use sudo for creating /etc/dnsmasq.d directory in DnsmasqManager (fixes permission denied on DNS setup)
  • [FIX] Resolve dpkg architecture in Go instead of relying on shell expansion inside single quotes for Blackfire/Tideways apt sources (fixes malformed apt source list entries)
  • [FIX] Use sudo to read /etc/dnsmasq.conf in dns setup
  • [FIX] Use compatible http2 syntax for nginx 1.24 (Ubuntu 24.04)
  • [FEATURE] Adds UninstallPHP, UninstallNginx, and UninstallDnsmasq methods to the installer interface with implementations for all platforms. The existing magebox uninstall command gains a --purge-packages flag that removes system packages (PHP, Nginx, dnsmasq) in addition to MageBox components
  • [FEATURE] The bootstrap command now asks which MySQL will be default and exposes that version on 3306 next to a version-specific port
  • [IMPROVEMENT] Replace slashes in project names with dots

- Call InstallPrerequisites() during bootstrap to add ondrej/php PPA
  before installing PHP versions (fixes PHP 8.1/8.2 not found)
- Use sudo for creating /etc/dnsmasq.d directory in DnsmasqManager
  (fixes permission denied on DNS setup)
- Resolve dpkg architecture in Go instead of relying on shell expansion
  inside single quotes for Blackfire/Tideways apt sources (fixes
  malformed apt source list entries)
- Pre-create placeholder FPM pool before apt install to prevent
  "no pool defined" exit code 78 during package installation
- Make InstallSodium a no-op on Ubuntu (sodium is in php-common)
- Fix Blackfire PHP probe package name (blackfire-php, not
  blackfire-php81/82/etc)
- Update Tideways repo URL to new Cloudsmith-hosted location
  (apt-packages-main instead of apt-packages)
- Handle missing /etc/dnsmasq.conf on Ubuntu 24.04 by creating
  a minimal config with conf-dir directive
- Add --yes flag to gpg --dearmor to avoid interactive overwrite
  prompt on re-runs
Adds UninstallPHP, UninstallNginx, and UninstallDnsmasq methods to the
installer interface with implementations for all platforms. The existing
`magebox uninstall` command gains a `--purge-packages` flag that removes
system packages (PHP, Nginx, dnsmasq) in addition to MageBox components.
@peterjaap peterjaap changed the title fix: resolve Ubuntu 24.04 bootstrap failures fix: resolve Ubuntu 24.04 bootstrap failures and update uninstall command to remove packages as well Mar 14, 2026
Replace 'http2 on;' directive (requires nginx 1.25.1+) with
'listen ... ssl http2;' syntax which works on nginx 1.9.5+ and
is compatible with both Ubuntu 24.04 (nginx 1.24) and newer versions.
The file may not be world-readable on Ubuntu, causing permission denied
when running magebox dns setup without sudo.
…s that version on 3306 next to a version-specific port
@jakwinkler

Copy link
Copy Markdown
Contributor

@peterjaap approved

@jakwinkler
jakwinkler merged commit d7f5086 into qoliber:main Mar 14, 2026
9 checks passed
@peterjaap
peterjaap deleted the fix-ubuntu branch March 14, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants