nginx-php-fpm icon indicating copy to clipboard operation
nginx-php-fpm copied to clipboard

Laravel doesn't work

Open LucasBonafe opened this issue 2 years ago • 2 comments

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.

LucasBonafe avatar Oct 31 '22 20:10 LucasBonafe

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

colinwilson avatar Nov 04 '22 02:11 colinwilson

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; }

diazzaid avatar Dec 30 '22 05:12 diazzaid