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.
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning




print: 

Recent comments
12 hours 26 min ago
14 hours 27 min ago
17 hours 39 min ago
19 hours 58 min ago
21 hours 8 min ago
22 hours 26 min ago
1 day 2 hours ago
1 day 6 hours ago
1 day 6 hours ago
1 day 21 hours ago