docker-symfony
docker-symfony copied to clipboard
File not found
Cannot find the entry point for the project. localhost:80 out puts : File not found.
check that WEBAPP_PATH in .env file is the same name as your directory project
@youssame solved :+1: thank you at lot.
@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 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.
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.
are you running symfony 3 or 4 ?
symfony 3
that's why then in symfony 4 that app.php was renamed to index.php I believe
okey. Thanks