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

File not found #102

Open
wpkgrola opened this issue Jul 3, 2018 · 13 comments
Open

File not found #102

wpkgrola opened this issue Jul 3, 2018 · 13 comments

Comments

@wpkgrola
Copy link

wpkgrola commented Jul 3, 2018

Cannot find the entry point for the project.
localhost:80 out puts : File not found.

@youssame
Copy link

check that WEBAPP_PATH in .env file is the same name as your directory project

@wpkgrola
Copy link
Author

@youssame solved 👍 thank you at lot.

@gabrielspiteri-highlight

@youssame having the same issue here i m not sure what the correct value for SYMFONY_APP_PATH is in the .env

@youssame
Copy link

youssame commented Nov 29, 2018

SYMFONY_APP_PATH="here you have to make the path of your symfony project"
Exp:
SYMFONY_APP_PATH=./web
My symfony project is located in "web" folder.

then rebuild your docker

@gabrielspiteri-highlight
Copy link

gabrielspiteri-highlight commented Nov 29, 2018

@youssame the path relative to the .env file? my symfony project lives in the same directory as the .env and docker-compose.yml ... so i am assuming the correct value should be ./ ?

@gabrielspiteri-highlight
Copy link

gabrielspiteri-highlight commented Nov 29, 2018

@youssame just noticed in the symfony.conf the rewrite was pointing to app.php ... whilst it should be index.php ... now I am getting an internal server error ....

rewrite or internal redirection cycle while redirect to named location "@rewriteapp", client: 172.18.0.1, server: symfony.local, request: "GET / HTTP/1.1", host: "symfony.local"

@youssame
Copy link

Great.. I did not know that.

@gabrielspiteri-highlight

Also needed to modify the location ~ ^/(index|app|app_dev|config).php(/|$) { to add index.php file ... working now :)

@youssame
Copy link

it's weird, because i didn't do that in my case. But if it works for you that will be awesome.

@gabrielspiteri-highlight

are you running symfony 3 or 4 ?

@youssame
Copy link

symfony 3

@gabrielspiteri-highlight

that's why then in symfony 4 that app.php was renamed to index.php I believe

@youssame
Copy link

okey. Thanks

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