[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-preparing-pnpm-for-immediate-activation":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":18,"titleAccent":19,"lead":20,"facts":23,"why":38,"log":48,"fix":69,"engine":82,"related":90,"pitch":105},"php","preparing-pnpm-for-immediate-activation","PHP install fails because Composer is unavailable","Php, Sveltekit, Vite",{"description":9},"Learn what causes PHP install fails because Composer is unavailable, how PanelAlpha Engine responds to it during deployment.",[11,14,17],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":15,"href":16},"Php","\u002Fapps\u002Fstacks\u002Fphp",{"label":6},"PHP install fails because ","Composer is unavailable",[21],{"text":22},"Error recorded 23 times in PanelAlpha Engine deploys on Php, Sveltekit, Vite. The deploy log below is the recorded failure output.",[24,29,32,34],{"label":25,"value":26,"tone":27,"tooltip":28},"Type","Error","err","An error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.",{"label":30,"value":31},"Seen","23 times · 3 variants",{"label":33,"value":7},"Where",{"label":35,"value":36,"tooltip":37},"Status","Observed","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":39,"body":40},"Why it happens",[41,43,46],{"text":42},"The repository was detected as a PHP app without Composer, but its pnpm install runs PHP package postinstall scripts. Those scripts invoke ",{"text":44,"code":45},"composer install",true,{"text":47},", and Composer is not installed or not available on PATH in the build environment. The deployment then stops during dependency installation.",{"heading":49,"block":50},"What the log looks like",{"header":51,"lines":52},"Deploy log",[53,57,61,65],{"segments":54},[55],{"text":56},"packages\u002Fphp\u002Fblueprint postinstall$ XDEBUG_MODE=off composer install --quiet",{"segments":58},[59],{"text":60},"packages\u002Fphp\u002Femail-editor postinstall$ sh vendor-prefixed\u002Fsetup.sh && XDEBUG_MODE=off composer install --quiet",{"segments":62},[63],{"text":64},"packages\u002Fphp\u002Fblueprint postinstall: sh: 1: composer: not found",{"segments":66},[67],{"text":68},"…",{"heading":70,"steps":71,"block":79},"How to fix it",[72],[73,75,77],{"text":74},"Use a build environment that includes Composer and ensure it is available on PATH before installing dependencies. Alternatively, select a Node\u002Fmonorepo build strategy and configure the required PHP dependency step explicitly. Re-run the deployment after confirming the account or build container can execute ",{"text":76,"code":45},"composer --version",{"text":78},".",{"header":80,"lines":81},"Fix by hand",[],{"heading":83,"body":84,"block":87},"How PanelAlpha Engine solves it",[85],{"text":86},"The PHP\u002Fno-Composer strategy was selected despite package.json and pnpm-lock.yaml indicating a Node monorepo with PHP postinstall scripts. Engine could detect Composer invocations before installation, report the missing tool clearly, and offer a compatible build strategy or install Composer automatically.",{"header":88,"lines":89},"",[],{"heading":91,"items":92},"Apps affected",[93,97,101],{"title":94,"badge":95,"tone":27,"href":96},"woocommerce-monorepo","17 occurrences","\u002Fapps\u002Fwoocommerce\u002Fwoocommerce",{"title":98,"badge":99,"tone":27,"href":100},"realworld.svelte.dev","5 occurrences","\u002Fapps\u002Fsveltejs\u002Frealworld",{"title":102,"badge":103,"tone":27,"href":104},"element-call","1 occurrence","\u002Fapps\u002Felement-hq\u002Felement-call",{"heading":106,"body":107,"footNote":108,"docsLabel":109,"docsHref":110},"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 CPU","Read the documentation","https:\u002F\u002Fpanelalpha.com\u002Fdocs"]