Re: PHP5.2.4 setup problems....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 14 Nov 2007, Bryan C wrote:

To: php-install@xxxxxxxxxxxxx
From: Bryan C <bac512@xxxxxxxxxxx>
Subject: Re:  PHP5.2.4 setup problems....

yes, 2.2.6 is the version I'm using (I just checked.. sorry about that :) ) is there any way to turn on a debug log or any kind of log for php? the apache error.log says it configured it, but never says weither it's actually running it or not....

On Fedora Linux:

the php error log needs to be set to:

 rw-rw-rw- root root php_error_log

otherwise php cannot write to the error_log file.

If php cannot write to it's own error_log file, then it will write it's output into the apache error_log file.

You also need to set the following in php.ini, to tell php where to write it's errors to:

from my php.ini file:

;===========================================================================
; Error Reporting and Logging

; Print out errors (as a part of the output). For ; production web sites, ; you're strongly encouraged to turn this feature off, and ; use error logging ; instead (see below). Also set in live directory containers ; in /etc/sites.cfg
;
display_errors = ON

; enables startup errors (such as php.ini syntax errors) to ; be output
;
display_startup_errors = OFF

; Log errors into a log file (server-specific log, stderr, ; or error_log (below) ; As stated above, you're strongly advised to use error ; logging in place of
; error displaying on production web sites.
; Set this to ON or 1, to enable logging to the specific ; file in error_log below.
;
log_errors = ON

; Log errors to a specified filename or syslog
; syslog errors - (Event Log on NT, not valid in Windows ; 95).
error_log = /var/log/apache-2.2.0/php_error_log

; Disable the inclusion of HTML tags in error messages.
html_errors = ON

; Store the last error/warning message in $php_errormsg ; (boolean).
track_errors = OFF

; String to output before an error message.
error_prepend_string = "<font color=0000FF>"

; String to output after an error message.
error_append_string = "</font>"

;Show all errors and warnings but not run-time notices
;error_reporting = E_ALL & ~E_NOTICE

;Show all errors and warnings, including php coding suggestions
error_reporting = E_ALL | E_STRICT

; error_reporting is a bit-field. Add the values of the ; error reporting levels
; to get to the required error reporting level you need.
;

; E_ALL             - All errors and warnings
; E_ERROR           - fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings ; which often result from a bug in your code, but it's ; possible that it was intentional (e.g., using an ; uninitialized variable and relying on the fact it's automatically ; initialized to an empty string)
;
; E_CORE_ERROR - fatal errors that occur during PHP's ; initial startup ; E_CORE_WARNING - warnings (non-fatal errors) that occur ; during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal ; errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_STRICT          - new in php 5
;===========================================================================


Kind Regards

Keith Roberts

------------------------------------------------------------
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

This email address is challenge-response protected with
http://www.tmda.net
------------------------------------------------------------

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux