Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony 2 : dev to pro = blank page

first I took you to excuse my English. I made a website with Symfony which works fine locally. (dev and prod). But as soon as I put online the dev version works but the prod version displays a blank page. Lighttpd does not give me error. PHP does not give me error. Cache and log are writable.

I do not understand anything.

like image 781
user4032720 Avatar asked Mar 26 '14 22:03

user4032720


1 Answers

OK, this is highly undesirable situation as you need to squash bugs one-by-one. It could be as benign as missing php module or some major httpd misconfiguraion.

Some steps that should shed some light on the issue:

  1. Fire up the Terminal (you do have ssh access, right?)
  2. Check logs (both httpd and symfony)

httpd log:

tail -f /var/log/httpd/error_log

... and refresh your page

Symfony

tail -f /path-to-your-symfony-app/app/logs/prod.log

... again, refresh your page

In your comment, you said you encountered HTTP500 error. Is that Apache's or Symfony's HTTP500?

If you do not hape ssh access upload your app_dev.php and run it directly. Be sure to add your IP address to list of allowed (within the file)

like image 195
Jovan Perovic Avatar answered Sep 29 '22 13:09

Jovan Perovic