wyveo / nginx-php-fpm

Nginx + PHP-FPM 8.2.x / 8.1.x / 8.0.x / 7.4.x / 7.3.x / 7.2.x / 7.1.x / 7.0.x + Composer built on Debian (Bullseye/Buster) image
https://hub.docker.com/r/wyveo/nginx-php-fpm
MIT License
342 stars 245 forks source link

Laravel doesn't work #62

Open LucasBonafe opened 1 year ago

LucasBonafe commented 1 year ago

Running:

docker run -d -p 80:80 --restart=unless-stopped wyveo/nginx-php-fpm:latest

I can see the index.php generated automatically by Nginx, but when cloning the repository of a Laravel project on usr/share/nginx/html/ I get numerous errors, even with 777 permissions on files and folders.

colinwilson commented 1 year ago

Could you post some of the errors you're seeing?

diazzaid commented 1 year ago

change the nginx settings.

  1. root point to the public folder root /usr/share/nginx/html/public;

  2. location / location / { try_files $uri $uri/ /index.php?$query_string; }