Optimizing Wordpress and Apache for Speed

Since last November I’ve been busy getting my website noticed by search engines. All the extra modules and tweaking resulted in an indexable, yet slow-loading website. Not a fun thought if you consider it all looks pretty simple. Google’s Webmaster Tools notified me that my site was steadily…

Stopping referrer spam (Part 2)

Let’s add a little more data to my previous article on stopping referrer spam. It’s the current list of blocked IP addresses. Currently the list blocks 245 addresses. RewriteEngine On RewriteCond %{REMOTE_ADDR} ^217.106.90.[0-255] [OR] RewriteCond %{REMOTE_ADDR} ^12.177.13.252$ [OR] RewriteCond %{REMOTE_…

Stopping referrer spam (or die trying)

Referrer spam, to some webmasters something unknown, to others a severe pain in the butt. People visiting your website while faking a refferer aren’t that bad, but people actually using webspiders to massively desecrate your website statistics are very annoying, these people need to be targeted. Since some people…

Overriding PHP settings

You’re migrating your site to your brand new Plesk server and your site doesn’t behave like it should. This is probably because of the default PHP settings that Plesk enforces. Examples are safe_mode and magic_quotes_gpc. Here’s how to take care of that. First, you…

DirectoryIndex index.html overruled by index.php

When building a site in PHP, you might want to put an index.html up to keep unwanted eyes away from your new site. The index.html however is overruled by index.php. Here’s how to fix this. The file /etc/httpd/conf.d/php.conf contains the directive…

Wildcard subdomains

If you want to use wildcard subdomains and point them to your website make sure you have the following. Make sure you have a wildcard DNS entry in Domain > DNS. You can add one as follows: 1. Set the “Record Type” dropdown to “A” and klick the Add button.…

Weird output when using special characters

When you’re using special characters in your HTML and the output doesn’t look like you expected, you’ll need to change a line in apache’s config file. Open the file /etc/http/conf/httpd.conf in your favorite editor (vi) and search for the string AddDefaultCharset. This…