How to Enable or Disable PHP’s display_errors via CloudLinux Selector in DirectAdmin?

Contents

    Sometimes, we need to debug PHP. Hence, we need to enable display_errors or disable them for security reasons. You can do this using the CloudLinux Selector to enable or disable PHP’s display_errors in DirectAdmin.

     

    1. Log-in to your DirectAdmin account.

    2. In the Extra Features section, click on the Select PHP version icon or type Select PHP in the navigation filter box. The option will appear. Click on it.

     

    3. Click on the Options menu.

    Note: If the Options page shows an error related to the native PHP version, change it to a non-native version first.

     

    4. For enabling display_errors, tick mark it. For disabling it, uncheck it.

    Updated on December 11, 2020
    Was this article helpful?

    7 responses to “How to Enable or Disable PHP’s display_errors via CloudLinux Selector in DirectAdmin?”

    1. Columbus Boreham Avatar

      Does turning display_errors off actually hide everything, or do some warnings still slip into the logs?

    2. Reinaldo McComas Avatar

      Does leaving errors on in production ever make sense, or is that asking for trouble?

    3. Cortney Roach Avatar

      Tiny toggle, huge difference when a page goes blank. Good reminder.

    4. Marina Cadman Avatar

      Why do some hosts hide this setting so deep in the panel?

    5. Samual Daecher Avatar

      Finally a clear walkthrough for flipping display_errors. Debugging gets a lot less guessy once errors are visible.

    6. Elouise Lamontagne Avatar

      Handy to know the display_errors toggle lives in the Selector. Why did you need it off, a live site leaking notices?

    7. Fausto Loton Avatar

      Turning errors on for debugging, then off again before anyone notices. Classic.

    Leave a Reply

    Your email address will not be published. Required fields are marked *