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

Laravel doesn't work #62

Open
LucasBonafe opened this issue Oct 31, 2022 · 2 comments
Open

Laravel doesn't work #62

LucasBonafe opened this issue Oct 31, 2022 · 2 comments

Comments

@LucasBonafe
Copy link

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
Copy link
Member

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

@diazzaid
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants