You can create php error logs for each domain in two ways:
1. .htaccess method
Add this into your .htaccess file
2.Virtual host method
=> open OnDaemonRun.hook.php file in C:\Sentora\panel\modules\apache_admin\hooks
find ## Regular Domain or Subdomain ## part
Add this:
after ErrorLog and Customlog part.
You can check php logs of domains in sentora -> logs -> domains folder with this modification.
1. .htaccess method
Code:
# enable PHP error logging
php_flag log_errors on
php_value error_log C:\Sentora\logs\php\php_error_your_domain_name.log
Add this into your .htaccess file
2.Virtual host method
=> open OnDaemonRun.hook.php file in C:\Sentora\panel\modules\apache_admin\hooks
find ## Regular Domain or Subdomain ## part
Add this:
Code:
$line .= ' php_admin_value log_errors on' . fs_filehandler::NewLine();
$line .= ' php_admin_value error_log "' . ctrl_options::GetSystemOption( 'log_dir' ) . "domains/" . $vhostuser[ 'username' ] . "/" . $rowvhost[ 'vh_name_vc' ] . '-phperror.log" ' . fs_filehandler::NewLine();
after ErrorLog and Customlog part.
Code:
$line .= ' ErrorLog "' . ctrl_options::GetSystemOption( 'log_dir' ) . "domains/" . $vhostuser[ 'username' ] . "/" . $rowvhost[ 'vh_name_vc' ] . '-error.log" ' . fs_filehandler::NewLine();
$line .= ' CustomLog "' . ctrl_options::GetSystemOption( 'log_dir' ) . "domains/" . $vhostuser[ 'username' ] . "/" . $rowvhost[ 'vh_name_vc' ] . '-access.log" ' . ctrl_options::GetSystemOption( 'access_log_format' ) . fs_filehandler::NewLine();
You can check php logs of domains in sentora -> logs -> domains folder with this modification.