Re: How to Separate PHP Errors to a file different than Apache Errors
| From: | Fahad Pervaiz | Date: | Sun, 24 Dec 2006 06:42:45 +0000 |
| Subject: | Re: How to Separate PHP Errors to a file different than Apache Errors | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-246187@lists.php.net to get a copy of this message | ||
First of all php errors are not logged in apache error log. PHP errors are
logged seperately.
if you want to custom define error log file for your apache errors you can
use virtualhost directive in apache httpd config file
If you do not specify an ErrorLog directive within a
<VirtualHost> container, error messages relating to that virtual host will
be logged here. If you *do* define an error logfile for a
<VirtualHost> container, that host's errors will be logged there.
If you want to change the default log file for php error then use
"error_log" directive to define the path. "error_log" is located in php.inifile.
--
Fahad Pervaiz
www.ecommerce-xperts.com