Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Error when creating project with Nginx #55

Closed
Adesin-fr opened this issue May 10, 2022 · 3 comments
Closed

404 Error when creating project with Nginx #55

Adesin-fr opened this issue May 10, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@Adesin-fr
Copy link

Creating a new Laravel Project,
Selected Laravel 8 /Nginx / Php 7.4
Selected an empty folder.
The project gets created, starts well,
But when browsing the project (testnginx.stacks.run) I get a 404 error.

(BTW, the logs shows incoming traffic when browser hits the page !)

@sfx101
Copy link
Owner

sfx101 commented May 10, 2022

Hi @LemarinelNet, thanks for reporting. Could you please send over the generated .env file?
Open project in Code editor > copy & paste .env here

@Adesin-fr
Copy link
Author

Adesin-fr commented May 12, 2022

.env seems to be laravel's stock one :

APP_ENV=local
APP_KEY=base64:ToH22mLcsGpjr8XScQpBMLRY8iRJm0w5cm32WZp/Zpc=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

and here is the .env of the "dockerfile" section :

SERVER_ROOT=/var/www/public
APP_CODE_PATH_HOST=/home/ludovic/src/testdeck
APP_CODE_CONTAINER_FLAG=:cached
APP_CODE_PATH_LARAVEL=/var/www
PHP_VERSION=7.4
LARAVEL_HOST_HTTP_PORT=41447
DISPLAY_PHPERROR=false
XDEBUG=false
LARAVEL_VERSION=8
BACK_END=nginx
INSTALL_ADDITIONAL_EXTENSIONS=
USER_ID=501
GROUP_ID=20
DATA_PATH_HOST=/home/ludovic/.deck/data/testdeck
NETWORKS_DRIVER=deck-app
DB_NAME=
DB_USER=
DB_PASSWORD=

Haven't touched the project, just created an new project and open in a browser. My OS is Ubuntu 22.04

@nabad600 nabad600 added the bug Something isn't working label May 20, 2022
@nabad600
Copy link
Collaborator

nabad600 commented Jun 3, 2022

Hi @LemarinelNet, thanks for reporting.
Issue is resolved. following the step

  1. Delete old docker base image in your system.
  2. Install Laravel with Selected Laravel 8 /Nginx / Php 7.4

Appreciate your feedback here.

@nabad600 nabad600 closed this as completed Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants