New Feature Announcement: Master Your Email Delivery with the Mail Delivery Center

How do I find my error_log file to find errors for my PHP application?

The error_log files are generated within the 'path' of where the actual error is produced. 

If we use WordPress as an example, and your homepage (or any other 'page' of the site), the error_log would be created in the domains public_html. 

For example, if this is the main domain of an account, the location would be...

/home/USERNAME/public_html/error_log

However, if the error was something that took place in the wp-admin (which is a directory of its own), then the error_log file would be instead placed in the following...

/home/USERNAME/public_html/wp-admin/error_log

The reason this differs is that the error took place within a subdirectory of the domain. 

If you are diagnosing an issue with an addon domain, then the error_log would be placed based on a similar pattern to the above, but from the respective path of the addon domain. For example...

/home/USERNAME/youraddondomain.tld/error_log
  • 413 Users Found This Useful
Was this answer helpful?

Related Articles

 Connect to your server via SSH

SSH allows secure file transfer and remote logins over the internet. Your connection via SSH is...

 How to force your site to use SSL (HTTPS) using

First of all, you will need to install an SSL certificate to your siteOnce your certificate is...

 How do I change PHP versions, or change my PHP settings / config?

The process of setting your PHP version and the 'variables' (such as memory_limit values) differs...

 How do I install a free SSL via cPanel?

Installing an SSL certificate in cPanel is easy! Best of all, it's free with WebGee!Important:...

 How to send emails in WordPress using the WP SMTP Mail plugin

Instead of using the default PHP mail() function, you can send emails using our SMTP services via...

Powered by WHMCompleteSolution