hmdnawaz Posted July 6, 2011 Share Posted July 6, 2011 The php errors are not logged to the errors.log file. What can be the reason. In my php.ini file the the error_log_max_len = 1024. What should I change in the php.ini file so that my problem solve? Quote Link to comment https://forums.phpfreaks.com/topic/241209-errors-are-not-logging-to-errorslog/ Share on other sites More sharing options...
AyKay47 Posted July 6, 2011 Share Posted July 6, 2011 in you php.ini do you have display_errors set to ON? Also, make sure that your error reporting is set to 1 Quote Link to comment https://forums.phpfreaks.com/topic/241209-errors-are-not-logging-to-errorslog/#findComment-1239096 Share on other sites More sharing options...
gristoi Posted July 6, 2011 Share Posted July 6, 2011 have a look under /var/log/apache2 ( if you installed php as a module of apache that is) Quote Link to comment https://forums.phpfreaks.com/topic/241209-errors-are-not-logging-to-errorslog/#findComment-1239098 Share on other sites More sharing options...
hmdnawaz Posted July 7, 2011 Author Share Posted July 7, 2011 in you php.ini do you have display_errors set to ON? Also, make sure that your error reporting is set to 1 I have check and the error reporting is set to 1 and display_errors are Off. Quote Link to comment https://forums.phpfreaks.com/topic/241209-errors-are-not-logging-to-errorslog/#findComment-1239431 Share on other sites More sharing options...
hmdnawaz Posted July 7, 2011 Author Share Posted July 7, 2011 have a look under /var/log/apache2 ( if you installed php as a module of apache that is) What should I do in /var/log/apache2? Should I change something there? Quote Link to comment https://forums.phpfreaks.com/topic/241209-errors-are-not-logging-to-errorslog/#findComment-1239433 Share on other sites More sharing options...
AyKay47 Posted July 7, 2011 Share Posted July 7, 2011 set display_errors to ON Quote Link to comment https://forums.phpfreaks.com/topic/241209-errors-are-not-logging-to-errorslog/#findComment-1239561 Share on other sites More sharing options...
gristoi Posted July 7, 2011 Share Posted July 7, 2011 have a look under /var/log/apache2 ( if you installed php as a module of apache that is) your question was that you could not see the error logs for php. I presumed you were looking at the default server error logs. Whereas the php error logs are stored under the apache directory: /var/log/apache/error.log Quote Link to comment https://forums.phpfreaks.com/topic/241209-errors-are-not-logging-to-errorslog/#findComment-1239567 Share on other sites More sharing options...
hmdnawaz Posted July 7, 2011 Author Share Posted July 7, 2011 have a look under /var/log/apache2 ( if you installed php as a module of apache that is) your question was that you could not see the error logs for php. I presumed you were looking at the default server error logs. Whereas the php error logs are stored under the apache directory: /var/log/apache/error.log my error log file is in the /var/log/php/errors.log. Quote Link to comment https://forums.phpfreaks.com/topic/241209-errors-are-not-logging-to-errorslog/#findComment-1239574 Share on other sites More sharing options...
wildteen88 Posted July 7, 2011 Share Posted July 7, 2011 my error log file is in the /var/log/php/errors.log. Is PHP configured to log the errors there? Look for the error_log directive within your php.ini. If php is not configured to report errors to a specific location it will instead log the errors to your http servers error log. Quote Link to comment https://forums.phpfreaks.com/topic/241209-errors-are-not-logging-to-errorslog/#findComment-1239809 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.