PHP errors and warnings generated by your websites are logged in error_log files in the directory where your PHP files are located.
You can view or download your PHP error log using the steps below.
If you cannot find an error_log file it means your account has not encountered a PHP error yet, or you have previously disabled PHP error logging.
View or Download your PHP error_log using cPanel File Manager
- Log in to cPanel.
- Click File Manager.
- Open the directory where your PHP files are located.
- Select your error_log file and click View or Download.
Download your PHP error_log using FTP
- Connect to your account using your FTP app.
- Open the directory where your PHP files are located.
- Download or open your error_log file.