Josh, Thanks for the response. I feel I'm a little further forward, but I'm still struggling.
I've made the changes you suggest and I'm only able to get (near) the Admin page using a URL such as; http://192.168.0.79/cgi-bin/BackupPC_Admin It then asks me for a Username/Password. I enter the same details that are in the /etc/lighttpd/userfile and it fails giving a permission problem. The lighttpd error log shows: 2007-12-15 21:25:48: (mod_cgi.c.961) CGI failed: Permission denied /var/www/cgi-bin/BackupPC_Admin mod_cgi.c.964: aborted The permissions on the userfile are: [EMAIL PROTECTED]:/etc/lighttpd$ ls -al userfile -rw-r--r-- 1 root root 34 Dec 14 21:40 userfile Is there anything obvious that I'm doing wrong ? Regards, Steve Josh Marshall wrote: > Hi Stephen, > > I noticed that nobody has replied to your request yet: > >> I'm having some trouble trying to get BackupPC working with Lighttpd >> > I'm running backuppc here with Debian Etch on i386 hardware. > > In the /etc/lighttpd directory create a file called userfile, put the > users and passwords like: > > user:password > user2:pass2 > > Create /etc/lighttpd/conf-enabled/10-auth.conf: > > server.modules += ( "mod_auth" ) > > auth.backend = "plain" > auth.backend.plain.userfile = "/etc/lighttpd/userfile" > > auth.require = ( "/cgi-bin" => > ( > "method" => "digest", > "realm" => "BackupPC", > "require" => "valid-user" > ) > ) > > And create /etc/lighttpd/conf-enabled/10-cgi.conf: > > server.modules += ( "mod_cgi" ) > > alias.url += ( "/cgi-bin/" => "/var/www/cgi-bin/" ) > > $HTTP["host"] == "localhost" { > alias.url += ( "/cgi-bin/" => "/var/www/cgi-bin/" ) > $HTTP["url"] =~ "/cgi-bin/" { > cgi.assign = ( "" => "" ) > } > } > > $HTTP["url"] =~ "/cgi-bin/" { > cgi.assign = ( "" => "" ) > } > > cgi.assign = ( > ".pl" => "/usr/bin/perl", > ".php" => "/usr/bin/php-cgi", > ".py" => "/usr/bin/python", > ) > > Make sure the BackupPC_Admin goes in /var/www/cgi-bin > > Regards, > Josh > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > BackupPC-users mailing list > [email protected] > List: https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki: http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ > > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
