Error installing Lighttpd

I'm trying to install lighttpd on my NSLU2. I had it installed, but uninstalled it to try a different server program. I decided to reinstall it, but i end up with an error. Any suggestions would be helpful.

NSLU2:/etc# apt-get install lighttpd
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
rrdtool apache2-utils
The following NEW packages will be installed:
lighttpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/287kB of archives.
After unpacking 827kB of additional disk space will be used.
Selecting previously deselected package lighttpd.
(Reading database ... 11885 files and directories currently installed.)
Unpacking lighttpd (from .../lighttpd_1.4.13-4_arm.deb) ...
Setting up lighttpd (1.4.13-4) ...
Starting web server: lighttpd2006-12-06 16:07:31: (configfile.c.869) opening configfile /etc/lighttpd/lighttpd.conf failed: No such file or directory
failed!
invoke-rc.d: initscript lighttpd, action "start" failed.
dpkg: error processing lighttpd (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
lighttpd
E: Sub-process /usr/bin/dpkg returned an error code (1)

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

a few things to try -

First, uninstall and purge:

dpkg --remove lighttpd
dpkg --purge lighttpd

Then try to reinstall - the log you posted indicates that the install failed because the server could not be started due to a missing config file. These things can happen if there is some junk left from a previous install and the install script gets confused. Before you reinstall, make sure the /etc/lighttpd directory does not exist.

In the worst case you can unpack the .deb archive and figure out what files are missing and put them there, then try a reinstall:

ar x somepackage.deb
tar zxvf data.tar.gz

a few things to try -

That did it. Thanks a lot.

Syndicate content