Skip to main content

Remediation Steps

Follow the steps below to remediate this finding on Apache webserver.

  1. In your Apache configuration or .htaccess file, configure custom error pages:

    ErrorDocument 500 /errors/500.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
  2. In php.ini (or via .htaccess), disable PHP error output:

    php_flag display_errors off
    php_flag log_errors on
  3. Reload Apache:

    sudo systemctl reload apache2