WordPress + Akismet + Server
One of those frustrating issues that crop up when you are on a server behind a firewall is the inability to configure Akismet in WordPress.
Instructions are simple and involve editing the akismet.php file.
Here’s how to do this properly:
You may need to modify the wp-config.php file – check with your webhost.
Irrespective of the server your host is running, you will need to edit the akismet.php file as follows:
1. find the following line (around line 117)
2. highlight all of the information between
“// Returns array with headers in $response[0] and body in $response[1]”
and
“// filter handler used to return a spam result to pre_comment_approved function akismet_result_spam( $approved ) {”
Be very careful in selecting the code – it’s easy to get that wrong! Here’s an image of the section of the akismet.php file to replace –
3. replace that section with this…
function akismet_http_post($request, $host, $path, $port = 80, $ip=null){ global $wp_version; $akismet_version = constant(‘AKISMET_VERSION’); $args =Read More »WordPress + Akismet + Server
Love that last one. I’ve had a real job. Many of them. Now I run businesses. One offline. Many online.