Skip to main content

Remediation Steps

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

  1. Disable PHP error display in php.ini or via .htaccess:

    php_flag display_errors off
    php_flag log_errors on
    php_value error_log /var/log/php_errors.log
  2. Configure custom error pages:

    ErrorDocument 500 /errors/500.html
  3. Reload Apache:

    sudo systemctl reload apache2