It looks like the first thing you need to do is edit your config file.
Probably here opt/etc/lighttpd/lighttpd.conf
Categories: PogoPlug Development
Have issue starting and configuring Lighttpd. Can you help?
login as: root
root@192.168.2.89's password:
-bash-3.2# /opt/etc/init.d/s80lighttpd start
-bash: /opt/etc/init.d/s80lighttpd: No such file or directory
-bash-3.2# /opt
-bash: /opt: is a directory
-bash-3.2# /opt/etc/init.d/S80lighttpd start
Starting web server: lighttpd
2010-01-28 15:01:12: (server.c.629) opening pid-file failed: /var/run/lighttpd.p id No such file or directory
-bash-3.2#
-bash-3.2#
On startup the /var folder is created in RAM and disappears at power off. The /var/run is not created at all unless you have deliberately changed /etc/init.d/rcS to create it, so the /var/run/lighttpd.p will not exist, hence the error.
You need to change the lighttpd.conf file to locate the lighttpd.p file somewhere on your /opt folder so that it will exist when lighttpd starts up.
I decided to add "mkdir -p /var/run" to /etc/init.d/rcS, to avoid having to remember to change the config of every package I install.
However, when I reboot the Pogoplug, lighttpd doesn't start, even though /opt/etc/init.d/S80lighttpd exists and ought to start it.
What config detail have I missed?
--
Rgds
Peter.
RSS


