Comments on Installing Drupal 6.4 On A Lighttpd Web Server (Debian Etch)

Installing Drupal 6.4 On A Lighttpd Web Server (Debian Etch) This guide explains how you can install Drupal 6.4 on a lighttpd web server on Debian Etch. Drupal comes with an .htaccess file with mod_rewrite rules (for Apache) that do not work on lighttpd. Without this .htaccess file it is not possible to have clean URLs in your Drupal installation. Fortunately there's a way to make lighttpd behave as if it could read the .htaccess file.

1 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Daniel

nice how-to. Thank you very much.

 

One remark : if you have a cgi script on the same server that relies on using parts of the URI as args, this mod-magnet script will break it.

 For instance, dadamail uses something like:

 http://myserver.com/cgi-bin/mail.cgi

 (which works fine) but also expects to get things like

http://myserver.com/cgi-bin/mail.cgi/some/args

(which gives a 404 from lighty).

 

The workaround I used is to do something like :

 

$HTTP["url"] =~ "^cgi-bin" {
   cgi.assign = ( ".cgi" => "/usr/bin/perl" )
} else $HTTP["url"] !~ "^cgi-bin" {
   magnet.attract-physical-path-to = ( "/etc/lighttpd/drupal.lua" )
}

 (and no, I still don't get why lighty doesn't support a simple if/else ... but whatever ... )