Will Jackson's blog

Enable Clean URL's for Drupal on Debian 7 (Wheezy)

Submitted by Will Jackson on Tue, 09/17/2013 - 3:08am

To enable Drupal Clean URL's on a host running Debian 7 (Wheezy), two following steps will be required in order use the core Drupal URL Aliases module.  First you will need to enable the apache rewrite module, once enabled you will then need to update the virtual host file to allow for overrides.  Once these steps have been completed, you will then need to either restart or reload Apache.

Installing GIT on Bluehost Shared Hosting

Submitted by Will Jackson on Fri, 05/24/2013 - 4:57pm

GIT is a valuable tool for maintaining version control for project files.  Unfortunately Bluehost does not provide "out of the box" support for installing or configuring git, so in order to get it installed on a shared Bluehost account the installation must be performed manually.  The following is a guide for installing the GIT version control package on a shared Bluehost environment.

Repair Corrupted MySQL Tables

Submitted by Will Jackson on Mon, 02/18/2013 - 1:55pm

I first noticed the issue when I attempted an automated backup using Drush.

The issue seemed to be due to a previous issue where our web server ran out of hard disk space, which resulted many of the databases becoming locked.

In my case, when I needed to perform a backup Drush resulted in the following error:  

“Database dump failed”

To further inspect the problem I initiated a manual mysqldump that also returned an error, but this time there was additional information provided along with the error.

Cloning the Entire Drupal Repository to a Local Server

Submitted by Will Jackson on Sat, 12/22/2012 - 2:06am

If you need to clone every project from Drupal.org you can do so using a quick one-liner and drush!

Although it's not required, it is a good idea to start by installing a base install of Drupal using the latest project code from Drupal.org.

You will also need to have drush installed on your machine as drush will be used to download each project.

Once you have your clean install ready, navigate to your site directory and use enter the following command:

Configure Varnish to Forward Client IP Addresses in the Apache Logs

Submitted by Will Jackson on Sun, 07/22/2012 - 4:13am

By default, after installing Varnish you may notice that the client IP address listed in the Apache log files is  If you have configured Varnish to listen for traffic on port 80 and forward all non-cached traffic onto Apache.  Apache sees this a local request so the IP address will appear to be  This can prove to be annoying when debugging your site or if you ever have the need to block requests made by a particular IP address.  To solve this problem we will need to enable vcl_rev  in our default.vcl file and configure it to forward the client IP address.  Then we will need to configure apache to support a new LogFormat, and then we will need to modify our virtual hosts to support the new format.  This tutorial assumes that you already have Varnish configured with Apache and it is working as expected.

Creating a Virtualhost for Apache 2.X

Submitted by Will Jackson on Fri, 06/22/2012 - 6:13pm

Name-based virtual hosting allows for hosting multiple websites with different domains and subdomains on a single server.  To configure a web server for name-based virtual hosting, you will need to add a virtualhost configuration and for this example I am using Apache2.  This tutorial was tested against Debian 6 Squeeze, but should be applicable for most linux operating systems.  For this example we will use the nano as a command line editor, but you could use vi, gedit, or any other preferred editor.  Also for the example, I will use sub.example.com as a placeholder, which will need to be modified to reflect the domain name or subdomain that you intend to use for your virtualhost.  The domain chosen in the example is for a subdomain, but by simply dropping the prefix of “sub.” the virtualhost will instead then be valid for the primary domain of “example.com”.

Queue File Size Limit Exceeded: Postfix Bouncing Email Larger than 1MB

Submitted by Will Jackson on Thu, 06/21/2012 - 11:58am

By default, Postfix limits the size of an email to 1024KB (1MB) restricting the recipient from receiving any email and/or attachments greater than 1 megabyte.  This is an issue that may go unnoticed due to fact that typically most of email sent is less than 1MB.  

Configuring SSL for Apache on Debian or Ubuntu

Submitted by Will Jackson on Sun, 04/22/2012 - 2:47pm

Manually configuring SSL for Apache can be tricky for the beginner or those coming from a shared hosting where everything is handled from a control panel such as cPanel or Webmin.  The following tutorial will guide you through the steps required for configuring SSL on a Debian based operating system such as Ubuntu, Debian Mint, or good old vanilla Debian.  The operating system used for this tutorial was Debian 6 Squeeze.


Subscribe to RSS - Will Jackson's blog