You are running the LiteSpeed web server which has been known to cause a problem with Wordfence auto-update
[Wordfence Alert] danskyrka.eu Wordfence Upgrade not run. Please modify your .htaccess
[Wordfence Alert] klasenshalsoutveckling.nu Wordfence Upgrade not run. Please modify your .htaccess
[Wordfence Alert] sinnesrokyrkan.se Wordfence Upgrade not run. Please modify your .htaccess
…
This email was sent from your website “Prototyp för Klaséns Hälsoutveckling” by the Wordfence plugin at Thursday 5th of December 2024 at 07:08:51 PM
The Wordfence administrative URL for this site is: https://danskyrka.eu/wp-admin/admin.php?page=Wordfence
To preserve the integrity of your website we are not running Wordfence auto-update.
You are running the LiteSpeed web server which has been known to cause a problem with Wordfence auto-update.
Please go to your website now and make a minor change to your .htaccess to fix this.
You can find out how to make this change at:
https://www.wordfence.com/help/?query=dashboard-litespeed-warning
Alternatively you can disable auto-update on your website to stop receiving this message and upgrade Wordfence manually.
If LiteSpeed aborts Wordfence scans and updates
The LiteSpeed web server has been known to kill or stop processes that take more than a few seconds to run. It does not stop these processes gracefully but simply kills them silently.
When using software like Wordfence or backup software that needs a little more time to complete certain tasks then this can lead to problems. If you are using Wordfence’s auto-update feature, this may lead to your site becoming unusable, if LiteSpeed kills an upgrade halfway through copying files.
To prevent this you need to make a simple change:
Find your site’s main “.htaccess” file. This file usually exists in the document root directory where WordPress is installed. Open the file with a text editor. Find the line that says “# BEGIN WordPress” and add this code above it:
# BEGIN LiteSpeed noabort
<IfModule rewrite_module>
RewriteEngine On
RewriteRule .* - [E=noabort:1]
</IfModule>
# END liteSpeed noabort
This will instruct LiteSpeed to not abruptly abort requests. It should allow your site to update correctly, allow Wordfence scans to run to completion, and it will also allow any backup plugins on your WordPress site to function without problems from timing out.
In some cases, depending on the server configuration, the above code may not help. Alternative code blocks that may work are:
# BEGIN LiteSpeed noabort
<IfModule Litespeed>
RewriteEngine On
RewriteRule .* - [E=noabort:1]
</IfModule>
# END liteSpeed noabort
Or:
# BEGIN LiteSpeed noabort
SetEnv noabort 1
# END liteSpeed noabort
Bypass the LiteSpeed “noabort” check
If you are certain that your hosting provider uses LiteSpeed and that the “External Application Abort” function is set to “No Abort” then you can enable this option so that Wordfence will skip checking for “noabort” in your site’s “.htaccess” file. For more information see the global Wordfence option Bypass the LiteSpeed “noabort” check.
