Hi All:
I have been trying to setup Lighttpd (ver. # 1.4.28) for some time, and no luck. I have done my best to research and feel I am doing things correctly. So my problem might be an odd one and hope somebody can help.
I am doing this command to test my lighttpd.conf:
lighttpd -t -f lighttpd.conf
It should be known, that my config file is in the directory to which I am doing this command. The response I get back is below.
(configfile.c.853) source: lighttpd.conf line: 2 pos: 7 invalid character in variable name
(configfile.c.909) configfile parser failed at: =
My lighttpd.conf is below.
# Start Lighttpd
HTTPD=/usr/local/sbin/lighttpd
HTTPD_ROOT=/mnt/hda1/www
HTTPD_CONF=$HTTPD_ROOT/lighttpd.conf
cat << EOF > $HTTPD_CONF
mimetype.assign = (".html" => "text/html")
server.document-root = "/htdocs"
server.port = 80
server.username = "nobody"
server.groupname = "nogroup"
server.chroot = "$HTTPD_ROOT"
EOF
exec $HTTPD -f $HTTPD_CONF &>/dev/null
This config is one I found in another forum entry that was stated does work.
(see link -
http://forum.tinycorelinux.net/index.php/topic,10999.0.html )
Now the error says "line: 2 pos: 7" - Which seems to be the forward slash. So as a guess, I put the following in quotes - "/usr/local/sbin/lighttpd" - to see if that might help.
Saved my config and tested it again.
lighttpd -t -f lighttpd.conf
I still had an error (on the 3rd line) this time it was the forward slash in the - /mnt/hda1/www
I also put that in "/mnt/hda1/www" - saved my config and tested again.
Still another error (4th line) - Now it does not seem to like the $ - in $HTTPD_ROOT/lighttpd.conf.
I did not go any further...
---------------------------------------------------------------------------------------------------------------------------------
So all of this seems odd, since nobody else has had this issues before. Are these issues because I am running this in TC 3.7 LIVE CD? Has anybody tried this before? I wanted to play with this web server (in a live CD) to see if I might want to use in another system.
Thanks
P.S. Not sure if this matters or not, but I also installed lighttpd-webdav on this same TC 3.7 system. I have not put that in my config yet. I like to make sure that I can get the basic web server functioning before adding other bells and whistles, but have not even got the basic running yet.