dwchiang / nginx-php-fpm

Running Cloud Native Laravel/PHP app with nginx + php-fpm 8.2/8.1/8.0/7.4/7.3 across amd64, arm64 arch.
https://hub.docker.com/r/dwchiang/nginx-php-fpm
Apache License 2.0
163 stars 35 forks source link

Web not running in browser, nginx instead #15

Closed akbarsyidiqi closed 1 year ago

akbarsyidiqi commented 1 year ago

I am using dockerfile FROM php:8.0.20-fpm-alpine3.16, When Exec sudo docker build -t myrepo . --no-cache && sudo docker run -d -p 7878:80 --name=myrepo myrepo && sudo docker ps -a, its successfully built, At logs displays: 2023/01/10 09:14:04 [notice] 9#9: start worker process 21 2023/01/10 09:14:04 [notice] 9#9: start cache manager process 22 2023/01/10 09:14:04 [notice] 9#9: start cache loader process 23 [10-Jan-2023 09:14:04] NOTICE: fpm is running, pid 8 [10-Jan-2023 09:14:04] NOTICE: ready to handle connections 2023-01-10 09:14:05,656 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2023-01-10 09:14:05,656 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2023/01/10 09:15:04 [notice] 23#23: http file cache: /dev/shm 0.000M, bsize: 4096 2023/01/10 09:15:04 [notice] 9#9: signal 17 (SIGCHLD) received from 23 2023/01/10 09:15:04 [notice] 9#9: cache loader process 23 exited with code 0 2023/01/10 09:15:04 [notice] 9#9: signal 29 (SIGIO) received

but when i go to localhost:7878 at browser, only display "Welcome to nginx! displayed"

what's wrong ?

cassius425 commented 1 month ago

hi bro. I also met this problem and I couldn't fix it . could you tell me how did you resolve it?