How to enable error logging for websites hosted on DirectAdmin

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
  • directadmin, error logging, 503, error, wordpress
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to create an FTP account via your Client services Area for DirectAdmin hosting

This guide will assist you in creating an FTP account for your DirectAdmin control panel.Follow...

How to create Email accounts via your Client Services Area for DirectAdmin hosting

This guide will assist you in creating email accounts via your client services area for your...

How to install a Free Lets Encrypt SSL on your Domain with DirectAdmin

NB : Free SSL Certificates are provided as is and with absolutely no support, read our knowledge...

How to change the PHP version being used for DirectAdmin

This guide will walk you through how to change the PHP version for your website and change...

How to add or edit a DNS record within DNS Management inDirectAdmin

This guide will assist you in adding and editing DNS records within your DirectAdmin Control...