To enable error logging on a website that is hosted on DirectAdmin.
Download or edit the htacess file via the file manager
Add the following to the htaccess file, save and upload back to the server
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
php_value error_log /home/user/domains/domain.com/public_html/PHPERROR.log