[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-warning-health-database-error":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":17,"titleAccent":6,"lead":18,"facts":20,"why":35,"log":40,"fix":73,"engine":82,"related":89,"pitch":97},"php","health-database-error","PHP app starts but cannot reach its database","Php",{"description":9},"The application is running but cannot reach its database. Check the database credentials in the project environment, and that the database service is up.",[11,14,16],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":7,"href":15},"\u002Fapps\u002Fstacks\u002Fphp",{"label":6},"",[19],{"text":9},[21,26,29,31],{"label":22,"value":23,"tone":24,"tooltip":25},"Type","Warning","warn","An issue PanelAlpha Engine catches around a deploy that does not break it. It tells you, before or after, that you may need to do something.",{"label":27,"value":28},"Seen","3 times",{"label":30,"value":7},"Where",{"label":32,"value":33,"tooltip":34},"Status","Observed","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":36,"body":37},"Why it happens",[38],{"text":39},"The container starts successfully and responds with HTTP 200 on port 8000, but the application reports a database connection error. The project has no configured environment source, so required database credentials may be missing. A database service may also be absent or unreachable.",{"heading":41,"block":42},"What the log looks like",{"header":43,"lines":44},"Deploy log",[45,49,53,57,61,65,69],{"segments":46},[47],{"text":48},"Detected project type: PHP (no Composer)",{"segments":50},[51],{"text":52},"Using strategy: php",{"segments":54},[55],{"text":56},"Starting application (docker compose up -d)",{"segments":58},[59],{"text":60},"Container project-app-1 Started",{"segments":62},[63],{"text":64},"Health check: http:\u002F\u002F[ip]:8000\u002F answered HTTP 200",{"segments":66},[67],{"text":68},"Check failed: The application is running but cannot reach its database.",{"segments":70},[71],{"text":72},"Deploy finished with warnings",{"heading":74,"steps":75,"block":79},"How to fix it",[76],[77],{"text":78},"Check the project environment for the database host, name, user, and password expected by the application. Ensure the database service is running and that its hostname matches the application configuration. Redeploy, then verify the application no longer shows a database error.",{"header":80,"lines":81},"Fix by hand",[],{"heading":83,"body":84,"block":87},"How PanelAlpha Engine solves it",[85],{"text":86},"The Engine could distinguish HTTP reachability from application readiness and surface the missing environment source or database service more explicitly. It could also validate database configuration and compose service connectivity before marking the deployment partial.",{"header":17,"lines":88},[],{"heading":90,"items":91},"Apps affected",[92],{"title":93,"badge":94,"tone":95,"href":96},"Tt Rss","3 occurrences","err","\u002Fapps\u002Ftt-rss\u002Ftt-rss",{"heading":98,"body":99,"footNote":100,"docsLabel":101,"docsHref":102},"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"]