laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.48k stars 419 forks source link

Getting the error 404 Not Found when deploying Lumen API app to Ubuntu 20.04/Nginx/PHP 7.4 #1131

Closed Djas2017 closed 3 years ago

Djas2017 commented 3 years ago

Description:

The developer developed the app on his local computer. This screensjot show his testing locally:

api-developer-lumen-create-user-tested-locally-Screenshot (73)(1)

When uploading the app to the Ubuntu Server 20.04 / Nginx/PHP 7.4/Mysql server, I get an error: "404 Not Found" when I go to: "https://domain_name_replaced_here.tld/userCat/api/v1/create_user"

Steps To Reproduce:

Is there something I am missing?

GrahamCampbell commented 3 years ago

Are you deploying to a sub-directory "userCat"? Lumen does not support that.

Djas2017 commented 3 years ago

Thanks Graham for the followup. As I said the root folder to which the app code was deployed to is: root /var/www/app/html The api I want it to be accessible like: https://domain_name_replaced_here.tld/userCat/api/v1/getSingleUser/user/{useridhere}/{tokenhere}

GrahamCampbell commented 3 years ago

And what does your route look like please?

driesvints commented 3 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.