How to View Your PHP Error Log Print

  • 0

PHP error logs are useful for diagnosing issues with your website, such as broken pages, plugin errors, or script failures. This guide explains where to find yours and how to access it.

Where Is the PHP Error Log?

The PHP error log file is named php-error.log and is stored in your website's home (root) directory.

How to Access It

You can view the log file using any of the following methods:

  • File Manager: Log in to the Webfort control panel, navigate to your website, and open the built-in File Manager. Browse to the root directory and click on php-error.log to view its contents.
  • FTP: Connect to your hosting account using an FTP client (such as FileZilla). Navigate to the root directory and download or open php-error.log.
  • SSH: If you have SSH access, connect to your server and view the file using a command such as tail -f php-error.log.

Tips

  • The log only records errors that PHP is configured to log. If the file is empty, PHP errors may not be enabled in your php.ini settings.
  • For large log files, use SSH to view the most recent entries rather than downloading the whole file.

If you need help interpreting an error in your log, our support team is happy to take a look.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution