Composer lock requires PHP 8.4, but the build targets PHP 8.1

This project needs PHP ^8.4, but it was built with PHP 8.1.0; overridden via config.platform, actual: 8.4.25.

Seen14 times · 4 variants
WherePhp

Why it happens

The locked dependency aura/sql 6.0.0 requires PHP ^8.4. Composer is using PHP 8.1.0 from the project's config.platform setting, even though the build image provides PHP 8.4.25. As a result, the lock file is rejected before the application starts.

What the log looks like

Deploy log
Resolving PHP dependencies on hostInstalling dependencies from lock fileVerifying lock file contents can be installed on current platform.Your lock file does not contain a compatible set of packages.Problem 1- aura/sql 6.0.0 requires php ^8.4- your php version (8.1.0; overridden via config.platform, actual: 8.4.25) does not satisfy that requirement.Deploy failed: This project needs PHP ^8.4, but it was built with PHP 8.1.0

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation