install backpack on open server #1412
-
|
I install new laravel myproject.dev on my windows PC using openserver and make sure that homepage is accessible on url https://myproject.dev/, then I install backpack and I see that https://myproject.dev/admin gives me 404 error, whereas on http://localhost:8000/admin I can see admin panel when composer run dev is running. Why it is so? For me more comfortable to work under project url. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Your issue is likely related to how the APP_URL and your server (OpenServer) are configured, rather than a problem with Backpack itself. Backpack (and Laravel in general) relies on the APP_URL value in your .env file to generate URLs and load assets. If APP_URL does not match the actual URL you are using to access your project (including protocol and port), you may encounter 404 errors for routes like /admin or for assets. This is a common source of confusion, especially when using custom domains or ports in local development environments. From the knowledge sources:
Summary of what to do:
This should resolve the 404 error on https://myproject.dev/admin and allow you to use your preferred project URL comfortably. If you still have issues, double-check your virtual host configuration in OpenServer to ensure requests to /admin are routed to your Laravel project's public directory, as server misconfiguration can also cause 404s Deploy Backpack for Laravel in production. Let me know if you need more help! ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Github Issue (closed): 404 Error on CRUD pages /admin/page |
Beta Was this translation helpful? Give feedback.
-
|
Nothing of that helped |
Beta Was this translation helpful? Give feedback.
-
|
Hey @schel4ok . Doesn't sound like a Backpack issue - sounds like a misconfiguration of Laravel on your end. If a normal Laravel route works, so should |
Beta Was this translation helpful? Give feedback.
Hey @schel4ok . Doesn't sound like a Backpack issue - sounds like a misconfiguration of Laravel on your end. If a normal Laravel route works, so should
/adminfor Backpack.