[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-packages-php-blueprint-postinstall-sh-composer-not-found":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":17,"titleAccent":18,"lead":19,"facts":22,"why":37,"log":42,"fix":67,"engine":76,"related":84,"pitch":91},"php","packages-php-blueprint-postinstall-sh-composer-not-found","PHP deploy fails because Composer is unavailable","Php",{"description":9},"Learn what causes PHP deploy fails because Composer is unavailable, how PanelAlpha Engine responds to it during deployment.",[11,14,16],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":7,"href":15},"\u002Fapps\u002Fstacks\u002Fphp",{"label":6},"PHP deploy fails because ","Composer is unavailable",[20],{"text":21},"Error recorded 1 times in PanelAlpha Engine deploys on Php. The deploy log below is the recorded failure output.",[23,28,31,33],{"label":24,"value":25,"tone":26,"tooltip":27},"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":29,"value":30},"Seen","1 times",{"label":32,"value":7},"Where",{"label":34,"value":35,"tooltip":36},"Status","Observed","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":38,"body":39},"Why it happens",[40],{"text":41},"The repository was deployed with the PHP (no Composer) strategy, but its Node monorepo install runs PHP package postinstall scripts. Those scripts call Composer, which is not installed in the selected runtime. The repository also declares Node dependencies, indicating the selected strategy may not match the application.",{"heading":43,"block":44},"What the log looks like",{"header":45,"lines":46},"Deploy log",[47,51,55,59,63],{"segments":48},[49],{"text":50},"packages\u002Fphp\u002Fblueprint postinstall$ XDEBUG_MODE=off composer install --quiet",{"segments":52},[53],{"text":54},"packages\u002Fphp\u002Femail-editor postinstall$ sh vendor-prefixed\u002Fsetup.sh && XDEBUG_MODE=off composer install --quiet",{"segments":56},[57],{"text":58},"packages\u002Fphp\u002Fblueprint postinstall: sh: 1: composer: not found",{"segments":60},[61],{"text":62},"packages\u002Fphp\u002Femail-editor postinstall: ❌ Composer is not installed. Please install Composer first.",{"segments":64},[65],{"text":66}," ELIFECYCLE  Command failed.",{"heading":68,"steps":69,"block":73},"How to fix it",[70],[71],{"text":72},"Use a Node-capable deployment strategy for this repository, or provide an explicit build configuration that installs and runs the required Node and PHP tooling. If PHP is intentional, use a strategy with Composer available and verify the account can install it. Redeploy after confirming the selected strategy matches the repository.",{"header":74,"lines":75},"Fix by hand",[],{"heading":77,"body":78,"block":81},"How PanelAlpha Engine solves it",[79],{"text":80},"Detect the Node ecosystem and package-manager manifests before selecting php-plain. If PHP postinstall scripts are found, preflight Composer availability and report the strategy\u002Ftooling mismatch before dependency installation.",{"header":82,"lines":83},"",[],{"heading":85,"items":86},"Apps affected",[87],{"title":88,"badge":89,"tone":26,"href":90},"woocommerce-monorepo","1 occurrence","\u002Fapps\u002Fwoocommerce\u002Fwoocommerce",{"heading":92,"body":93,"footNote":94,"docsLabel":95,"docsHref":96},"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"]