Overview
This article explains how to temporarily enable PHP warnings in your website's error log.
Background
PHP warnings and deprecated notices are hidden by default, so error logs only show critical errors. However, you can temporarily enable these hidden warnings to allow further troubleshooting of a website.
Understanding the messages displayed
The following table provides information on error messages that appear after you enable PHP warnings.
DreamHost recommends upgrading to PHP 7.4+ to benefit from better error handling and visibility.
PHP version | Default errors displayed | Messages displayed after enabling PHP warnings |
---|---|---|
7.4+ |
PHP Fatal Errors |
|
7.3 or lower | None |
|
Enabling PHP warnings
To temporarily enable PHP warnings in a website's error log:
- Navigate to the Manage Websites page.
- Click the Manage button to open the Domain Settings page, which allows you to adjust various settings for your site.
- Click the Settings tab.
- On the Web Options row, click the Modify button.
- Click the toggle to the right of Temporarily Enable PHP Warnings to enable.
PHP warnings are visible for a period of 7 days and are then disabled automatically.