Seperate PHP error logs per domain,
07-20-2016, 07:33 PM
(This post was last modified: 07-20-2016, 07:33 PM by cathelest.)
Hello,
At present my server does not display errors but logs them to the
error_log = "C:/zpanel/logs/php/php_errors.log" which i believe is default,
But all domain errors go onto the same log,
I wish to separate them per domain,
I tried to do via .htaccess but it throws 500 errors and kills the site,
It does work if i manually add a line into the httpd-vhosts.conf
php_value error_log "C:/zpanel/logs/php/<MYDOMAIN>_php.error.log"
But ofcorse this will be overwritten,
My question, is there a better way, or is it possible to have sentora write this line to conf when it generates the vhosts conf?
All files are fine to stay in the same directory, I am the only person who uses my server for multiple domains, and no one else,
Many thanks for your help in advance,
Cathelest.
At present my server does not display errors but logs them to the
error_log = "C:/zpanel/logs/php/php_errors.log" which i believe is default,
But all domain errors go onto the same log,
I wish to separate them per domain,
I tried to do via .htaccess but it throws 500 errors and kills the site,
It does work if i manually add a line into the httpd-vhosts.conf
php_value error_log "C:/zpanel/logs/php/<MYDOMAIN>_php.error.log"
But ofcorse this will be overwritten,
My question, is there a better way, or is it possible to have sentora write this line to conf when it generates the vhosts conf?
All files are fine to stay in the same directory, I am the only person who uses my server for multiple domains, and no one else,
Many thanks for your help in advance,
Cathelest.