docker-symfony icon indicating copy to clipboard operation
docker-symfony copied to clipboard

File not found

Open wpkgrola opened this issue 6 years ago • 13 comments

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

wpkgrola avatar Jul 03 '18 14:07 wpkgrola

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

youssame avatar Jul 20 '18 15:07 youssame

@youssame solved :+1: thank you at lot.

wpkgrola avatar Jul 20 '18 15:07 wpkgrola

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

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

youssame avatar Nov 29 '18 13:11 youssame

@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 ./ ?

@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"

Great.. I did not know that.

youssame avatar Nov 29 '18 13:11 youssame

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

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

youssame avatar Nov 29 '18 14:11 youssame

are you running symfony 3 or 4 ?

symfony 3

youssame avatar Nov 29 '18 14:11 youssame

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

okey. Thanks

youssame avatar Nov 29 '18 14:11 youssame