Installing Drupal 6.4 On A Lighttpd Web Server (Debian Etch)
Installing Drupal 6.4 On A Lighttpd Web Server (Debian Etch)Version 1.0 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. I do not issue any guarantee that this will work for you!
1 Preliminary NoteI have tested this on a Debian Etch server where lighttpd and PHP5 are already installed and working (e.g. like in this tutorial). I'll use the hostname www.example.com and lighttpd's default document root /var/www (where I will install Drupal) in this tutorial for demonstration purposes. Of course, you can use any other vhost as well, but you might have to adjust your lighttpd.conf.
2 Installing mod_magnetI will use a file called drupal.lua that contains the rewrite rules needed by Drupal (e.g. for clean URLs). Lighttpd needs the module mod_magnet so that it can understand the drupal.lua file. Therefore we install mod_magnet... apt-get install lighttpd-mod-magnet ... and enable it: lighty-enable-mod magnet Next we download the drupal.lua file: cd /etc/lighttpd (If the download link doesn't work for some reason, here's the content of the drupal.lua file:
) Because I want to install Drupal directly in the document root (/var/www) and not in a subdirectory, I open /etc/lighttpd/drupal.lua and change local prefix = '/drupal' to local prefix = '': vi /etc/lighttpd/drupal.lua
Next I open /etc/lighttpd/lighttpd.conf and change the values of index-file.names and url.access-deny and add a line for magnet.attract-physical-path-to: vi /etc/lighttpd/lighttpd.conf
Finally I restart lighttpd: /etc/init.d/lighttpd restart Lighttpd is now ready for Drupal 6.4.
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th





print: 
Recent comments
23 hours 13 min ago
1 day 2 hours ago
1 day 4 hours ago
1 day 13 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 18 hours ago
1 day 18 hours ago
1 day 21 hours ago
2 days 2 hours ago