Search code examples
laravelweb-deploymentlumen

Lumen Api deployement return 500 Internal Server Error


I develop a Laravel Api in local it's work, when I deploy I have a error 500.

  • I copied the folder to the server.
  • I moved the public folder to root and changed the path in index.php.
  • I modify the file .env with the prod value.

With I test with postman my route https://my-domain/public/api/v1/mytest : I have a error 500.

What did i miss ?


Solution

  • I resolve this problem. The version lumen in dev and prod was different. I upgraded the dev version (5.8) to be in phase with the server (8.x) and it's work !