Tags:
create new tag
view all tags

Question

Did somebody managed to get TWiki running with Cygwin and lighttpd?

In Linux TWiki runs fine with thttpd, and lighttpd. In my situation password protexted WebHomes couldn't be entered. The password was simply not accepted.

thttpd

Download and compile. Then

# thttpd -d /home/httpd -u apache -c "**"

and be happy.

If you want to use the -g option, then

# ln /home/httpd/twiki/data/.htpasswd /home/httpd

# thttpd -g  -d /home/httpd -u apache -c "/twiki/bin/*"

and be happy again. thttpd was up and running within the minute.

lighttpd

Use


server.modules = ( "mod_rewrite",
                   "mod_access",
                   "mod_auth",
                   "mod_alias",
                   "mod_cgi",
#                  "mod_fastcgi",
#                  "mod_compress",
                   "mod_accesslog")

server.document-root = "/var/www/html"
server.dir-listing = "enable"
server.indexfiles    = ("index.html", "index.pl", "index.cgi")

server.errorlog = "/tmp/lighttpd.error.log"
accesslog.filename = "/tmp/lighttpd.access.log"

server.pid-file = "/tmp/lighttpd.pid"

server.bind = "127.0.0.1"
# server.port = 88

server.username = "apache"
server.groupname = "users"

url.access-deny = ("~", ".inc", ".bak")

alias.url = (
    "/twiki/bin"  =>   "/home/httpd/twiki/bin",
    "/twiki/pub"  =>   "/home/httpd/twiki/pub",
    "/cgi-bin"  =>   "/home/tonl/cgi-bin"

cgi.assign = (
    ".pl"       =>      "/usr/bin/perl",
    ".cgi"      =>      "/usr/bin/perl",
    ".py"       =>      "/usr/bin/python",
    "prog" => "",
    "attach" => "",
    "changes" => "",
<snip>

mimetype.assign            = (
  ".pdf"          =>      "application/pdf",
  ".sig"          =>      "application/pgp-signature",
<snip>

Start

# lighttpd -f lighttpd.conf

Here the authentication, that failed with me

auth.backend               = "htpasswd"
auth.backend.htpasswd.userfile = "/home/httpd/twiki/data/.htpasswd"

auth.require = ( "/Hidden/" =>
                    (
                      "method"  => "basic",
                      "realm"   => "Access to Hidden WebHome",
                      "require" => "valid-user"
                    )

Note: In Cygwin I couldn't get TWiki going.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows
Web server: lighttpd
Perl version:  
Client OS: Windows
Web Browser: Mozilla
Categories: Installation

-- TonTLam - 30 Sep 2005

Answer

Partial Answer!

The password protected WebHomes can be made to work with mod_auth. The .htpasswd file needs to be dumbed down for lighttpd and thttpd to parse it correctly. I have written a patch against TWiki 4.0.0 to fix this, as well as a script to convert the old .htpasswd to the new, readable, format. I will submit it ASAP. In the meantime, email me if you are interested.

I am also writing a patch for lighttpd to extend its ability to read .htpasswd files, and will submit it as well. Hoever, it could be several versions before adoption.

-- ThomasDodson - 24 Mar 2006

Sounds good, Thomas. When you get it working, you might consider creating a Cookbook (see CategoryCookbook) for others to follow in your footsteps.

Things have been quiet for a month, so I am assuming this can be closed.

-- CrawfordCurrie - 26 Apr 2006

Help! thttpd doesn't quite work for me with Twiki on mac os 10.3. When I try to access wiki/bin/configure, firefox tries to download a binary file.

-- TWikiGuest - 09 May 2006

Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2006-05-09 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.