TurnKey Linux Virtual Appliance Library

Drupal 6 appliance: keeps redirecting to install.php

I managed to fix this, so I don't need a resolution, but it is something that seems to have been out-of-whack on a fresh Turnkey install, so I thought I should report it.

I downloaded the vmdk version of the Drupal6 appliance.  I extracted the vmdk from the zip file, created an Ubuntu machine in VirtualBox, and pointed it at the vmdk.  It booted up just fine and I was able to surf to the initial setup page where it asks you for admin account details, admin email, etc.

That seemed to go ok, but when it was finished, all attempts to surf to the default page would always redirect to to install.php.  I could successfully get to other locations such as /admin, /user, /index.php, etc.  But when I just put the host address in my browser bar with no further directories or documents (i.e., the "root" directory of the web site), it would always go to install.php.

After a couple hours of poking around, I discovered that there was a file in /usr/share/drupal6/tmp called "redirect_install.php".  It contained one line which contained php code to redirect to install.php.

I removed that file and now it works fine. 

I couldn't find any info on this file at all online.  Plugging in the exact filename into Google turned up only one hit, and it was to a discussion thread here at the TurnkeyLinux site from about a year ago concerning a previous version.  The person who mentioned it seems to have encountered a similar thing, but under different circumstances (he was doing something more advanced than what I was doing: I was just turning up a fresh install for the first time). 

I fixed it, so I'm good to go, but wanted to pass along in case there's a way to prevent others having to deal with this.

For the record, my configuration is: VirtualBox running on a Windows XP host; guest machine configured with "Host-Only" adapter.  This is a test/learning/development machine that is not intended to ever go out on the real network, and does not have any domain name or host name attached to it--it is just referenced by IP number for now.

I've used Turnkey Drupal6 before, with no issue, but this is the first time with the version 11.1 appliance, which apparently only came out a couple weeks ago.

Liraz Siri's picture

Not sure how this slipped through testing

I just reproduced this. We'll have to investigate how this slipped through testing. Since it's a showstopper, we'll have to fix this soon. In the meantime I've added a workaround to the appliance documentation.
Liraz Siri's picture

Nasty regression due to Ubuntu security update

Further investigation shows that it is likely that a recent Ubuntu security update is the cause for this breakage. Argh!

CJack, on the main page for

CJack, on the main page for the Drupal appliance, look under "Known Issues."  Directly under it, Liraz posted the following command which you would execute from the console of your TKL Drupal server:

rm -f /usr/share/drupal6/tmp/install_redirect.php


Just wanted to drop a line

Just wanted to drop a line thanking you for this post and workaround, Jared.  Saved me alot of trouble.

CJack, on the main page for

CJack, on the main page for the Drupal appliance, look under "Known Issues."  Directly under it, Liraz posted the following command which you would execute from the console of your TKL Drupal server: http://methoo.com

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)