Date Published: March 1, 2022
Executable PHP Error on Insight Section of Drupal 7 website
Issue¶
I am seeing Executable PHP Error message on insight report even if I have followed the suggestion suggested on https://www.drupal.org/forum/newsletters/security-advisories-for-drupal-core/2013-11-20/sa-core-2013-003-drupal-core
Resolution¶
To prevent this error, you can first delete your `.htaccess` file from all the three files directories (public, private, and temp) if there is no additional settings has been done at your end. After that save the configuration page on the (/admin/config/media/file-system). This will generate a new .htaccess file which will include following code or you can directly add the following code in the `.htaccess` file for all the three files directories.
<IfModule mod_php7.c>
php_flag engine off
</IfModule>
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.