If I run following php file
<?php
$str = 'he;
echo $str;
?>
it will log a parse error to standard apache log file.
I can specify a logfile in php.ini but that would change logfile for all php scripts.
Is it possible to log errors from specific script to a particular log file?
You can achieve that using
.htaccessdirective in conjunction with<Files>:Also, make sure you have PHP installed as Apache module, else it won’t work.