makapaka's avatar

404 after deploying Lumen API

I'm hoping someone can help me work through why I might be getting 404 URL not found - we have recently deployed a laravel app to the same linux servers, however I seem to be having a different issue with Lumen which makes me question if its the same ? So I see lumen api also has a /public folder, even though its not supposed accessed via the browser ?

The 404 i'm getting is in testing the API in Postman - what might be the steps to troubleshoot where this issue might be ? Linux (centOS) server with Apache.

thanks and sorry if its vague.

0 likes
2 replies
makapaka's avatar

more info - as per laravel deployment, we set up the server with /public as root folder - however I just found apache log:

File does not exist: /var/www/vhosts/site.com.au/public/api

Its looking for the route as a folder ?

The route is simply `site.com.au/api/categories

meeshka's avatar

@makapaka 1) Does public folder have index.php? Looks like requests are not reaching index.php. 2) Make sure rewrite rules are in place. More here

Please or to participate in this conversation.