You are here: Cant get logging to work with mod_php in apache « PHP Language « IT news, forums, messages
Cant get logging to work with mod_php in apache

Posted by DC on 10/09/19 11:34

apache 2.0x
php 4.3x


/etc/php.ini
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = "/var/log/httpd/phperror_log-web1"
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off



From the command line i can do
# echo "<?php echo'asdfeasldfj;?>" | php
and sure enough it goes right to /var/log/httpd/php.... as expected.

but when i go to the web page and try to make a simular error, i get nothing in the log file. (which is chowned by apache).

in the "apache" errorlogs i do get PHP Notice:'s. but thats it.
I dont want any php stuff in the apache error log, thats why im trying to get the php log to work.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация