Re: php.ini not creating logs
| From: | Ray Hunter | Date: | Fri, 21 Jun 2002 18:09:42 +0000 |
| Subject: | Re: php.ini not creating logs | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103317@lists.php.net to get a copy of this message | ||
Do this, set "log_errors = on" in your php.ini file. Do not set the
"error_log = file" comment that line out and all other error_log ones as
well. This will then log all errors to apache's log files and you can view
the errors there.
RAY HUNTER
----- Original Message -----
From: "Anil Garg" <anilg@niksun.com>
To: "Ray Hunter" <rhunter@venticon.com>; <php-general@lists.php.net>
Cc: <tyler@captainjack.com>
Sent: Friday, June 21, 2002 12:00 PM
Subject: Re: [PHP] php.ini not creating logs
> ya i have tried that too..
> wot else can be the problem.
> my php.ini looks like this:
> --------------------------------
> ; 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). Keeping display_errors enabled on a production web
> site
> ; may reveal security information to end users, such as file paths on your
> Web
> ; server, your database schema or other information.
> display_errors = Off
>
> ; Even when display_errors is on, errors that occur during PHP's startup
> ; sequence are not displayed. It's strongly recommended to keep
> ; display_startup_errors off, except for when debugging.
> 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.
> log_errors = /var/log/php-errors.log
>
> ; Store the last error/warning message in $php_errormsg (boolean).
> track_errors = On
>
> ; Disable the inclusion of HTML tags in error messages.
> ;html_errors = Off
>
> ; String to output before an error message.
> ;error_prepend_string = "<font color=ff0000>"
>
> ; String to output after an error message.
> ;error_append_string = "</font>"
>
> ; Log errors to specified file.
> ;error_log = Off
> -----------------------
>
>
> ----- Original Message -----
> From: "Ray Hunter" <rhunter@venticon.com>
> To: "Anil Garg" <anilg@niksun.com>; <php-general@lists.php.net>
> Cc: <tyler@captainjack.com>
> Sent: Friday, June 21, 2002 1:53 PM
> Subject: Re: [PHP] php.ini not creating logs
>
>
> > Like i said make sure the webserver has the privilege to write to the
log
> > file...
> >
> >
> >
> >
> > S RAY HUNTER
> > email: rhunter@venticon.com
> > www: http://www.venticon.com
> > aim: spinebl8d3
> >
> >
> >
> > ----- Original Message -----
> > From: "Anil Garg" <anilg@niksun.com>
> > To: <php-general@lists.php.net>
> > Cc: <tyler@captainjack.com>; <rhunter@venticon.com>
> > Sent: Friday, June 21, 2002 11:40 AM
> > Subject: [PHP] php.ini not creating logs
> >
> >
> > >
> > > Hi,
> > >
> > > sorry i forgot to mention that.
> > > yes i restarted my webserver.
> > >
> > > In fact the error messages are getting hidden(on setting
> display_errors
> > =
> > > Off) but the logs are not getting created:(log_errors =
> > > /var/log/php-errors.log ) in php.ini file.
> > >
> > > thanx
> > > anil
> > >
> > >
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >