Akismet firewall problems (and how to fix them)

Recently I was confused when I spotted several spam comments on my blog. After logging into the WordPress administration page I saw the reason for this issue:

Akismet has detected a problem. A server or network problem is preventing Akismet from working correctly.

Oops – where did that come from?

It seems like my hoster All-Inkl has updated its PHP configuration recently. The Akismet plugin needs access to particular external servers to filter Spam comments. I discovered  that the following PHP settings need to be set that this access works:

magic_quotes_gpc = 1
magic_quotes_runtime = 0
allow_url_fopen = On

If you’re using a managed webserver and don’t have the possibility to configure it entirely (like me) you can also set these parameters in the .htaccess file:

php_flag magic_quotes_gpc on
php_flag magic_quotes_runtime 0
php_flag allow_url_fopen On

After reloading the administration page everything was working like a charm again. 🙂

Sharing is caring

Leave a Reply