Why is my Symfony2 install 404ing when I access app.php?

Viewed 45776

In Symfony2, when accessing my application locally via app_dev.php, everything works fine. However, when I access app.php it 404s:

Oops! An Error Occurred

The server returned a "404 Not Found".

Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for

12 Answers

I had the same problem and I just cleared the cache. php app/console cache:clear --env=prod This has solved my problem.

Do not put the attribute to true: $ kernel = new AppKernel ('prod', TRUE); it will activate the debug mode and it is not recommended for the prod.

Related