• February 26, 2025, 12:34:44 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Lighttpd Config Problems  (Read 5288 times)

tnsage

  • Level 1 Member
  • *
  • Posts: 13
Lighttpd Config Problems
« on: December 15, 2010, 04:03:06 AM »

OK, guess I may come across as a little slow here, but I have used Unix some years ago, and the dreaded VI, but I seem to be unable to work out the paths. Below is what the original conf file has

cd /ffp/etc                             //change directory to the /ffp/etc folder
cp examples/lighttpd.conf .       //copy the lighttpd.conf file from examples into current directory
cd /mnt/HD_a2                      //navigate to /mnt/HD_a2.. our shared drive home..
mkdir logs                            //create directories for the logs

server.document-root = “/mnt/HD_a2/share/”
server.upload-dirs = ( “/mnt/HD_a2/tmp” )
server.errorlog = “/mnt/HD_a2/logs/error.log”
accesslog.filename          = “/mnt/HD_a2/logs/access.log”

Now, we are ready to start off our webserver:
cd /ffp/start                                  //navigate to the ‘start’ folder.
chmod a+x lighttpd.sh                    //grant execute permissions to all
sh /ffp/start/lighttpd.sh start         //start up the web server!

When In FTP, I have set up from Volume_1 a folder called www with sub folders for pages & logs etc

/ # cd /ffp/start
/mnt/HD_a2/ffp/start # sh /ffp/start/lighttpd.sh start
Starting /ffp/sbin/lighttpd -f /ffp/etc/lighttpd.conf
2010-12-15 11:50:45: (configfile.c.1167) base-docroot doesn't exist: Volume_1/www/pages/
2010-12-15 11:50:45: (server.c.584) setting default values failed
/mnt/HD_a2/ffp/start #

What or where am I going wrong

Help

Tim


Logged

dosborne

  • Level 5 Member
  • *****
  • Posts: 598
Re: Lighttpd Config Problems
« Reply #1 on: December 15, 2010, 04:18:02 AM »

In lighttpd.sh, do you pass a parameter for the config file path? If so, is it correct?
Logged
3 x DNS-323 with 2 x 2TB WD Drives each for a total of 12 TB Storage and Backup. Running DLink Firmware v1.08 and Fonz Fun Plug (FFP) v0.5 for improved software support.

tnsage

  • Level 1 Member
  • *
  • Posts: 13
Re: Lighttpd Config Problems
« Reply #2 on: December 15, 2010, 04:26:53 AM »

I have no idea, I can only guess that I am pathing the file wrong, so I hope someone can correct my path error, then I can see if I can start running a web server from my little box

Tim
Logged

tnsage

  • Level 1 Member
  • *
  • Posts: 13
Re: Lighttpd Config Problems
« Reply #3 on: December 15, 2010, 06:08:51 AM »

Well, all problems sorted. I had messed up my paths.

I used telnet and gradually changed to the directories, and realised the error of my ways.
Logged