apache - Debug php on production, what configuration is used and where is the log -


i'm getting error on production server unable figure out is. blank page 500 response code isn't helpful , adding ini_set output error doesn't because i'm using symfony , has way of dealing errors take me 2 days figure out.

apache logs php errors , php supposed log php errors, phpinfo tells me log_errors on , error_log /var/log/php.log. file contains warning of 1.5 years ago guess symfony messing things somewhere.

try apache/httpd log. after figuring out config files used , log can't find in there after getting 500 error. take while before gets written?

stuck here , not sure how figure out that's causing error. there other options? guess symfony should log somewhere symfony/app/logs empty, there large dev.log there after renaming it isn't created again.

make sure file have set php log in php.ini file in group http server runs as. typically user www-data

chown /var/log/php_errors.log root::www-data chmod 664 /var/log/php_errors.log  sudo apache2 restart 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -