PDA

Bekijk de volledige versie : lighttpd does not starting automaticaly



cheetah
13-10-2009, 09:03
Hi here.
Ive WL-500gP and Ive installed the last Oleg`s firmware and Ive 2 problems:
1) Created post-boot and post-firewall in /tmp/local/sbin, generate dropbear keys etc. Everithing is fine expect Lighttpd (Im not using any php, sql etc, just pure html). Created S80lighttpd in /opt/etc/init.d. Problem is, that lighttpd is not starting. Even if I put lighttpd -f /opt/etc/lighttpd/lighttpd.conf into post-boot file. The same file, from where dropbear is starting without any problem. What Im doing bad? Of course, if I run it from console, it works.

2) Why I have to move internal https server, that is used for administration, if I wanna to use port 80 just from WAN. Why this server is keeping this port from wan interface?

Thanks a lot for help! Hope its just coz of my stupidity :-)
JF

wpte
26-10-2009, 21:07
Hi here.
Ive WL-500gP and Ive installed the last Oleg`s firmware and Ive 2 problems:
1) Everithing is fine expect Lighttpd (Im not using any php, sql etc, just pure html). Created S80lighttpd in /opt/etc/init.d. Problem is, that lighttpd is not starting.

2) Why I have to move internal https server, that is used for administration, if I wanna to use port 80 just from WAN. Why this server is keeping this port from wan interface?

Thanks a lot for help! Hope its just coz of my stupidity :-)
JF

1) I had starting problems as well, look at my post:
http://wl500g.info/showpost.php?p=166318&postcount=38

does it come up with the same error message in debug mode?
then you'll probably have luck with my fix:)

2) cookies are known to have trouble when the server is used on different ports. Cookies are little files on your computer that usually keep track of sessions you have on a certain website. And because of that you'll most likely have trouble with logging in etc.
anyway, since you only use html this is not needed for your use, since html doesn't use logging in etc, and I doubt you'll use cookies in the html script:p

newbiefan
26-10-2009, 23:00
I can report, that lighttpd from repository (dated 26.10.2009) in the version 1.4.24-1 is broken.
You are lucky, because I've stored a working lighttpd on a server:



ipkg remove lighttpd
cd /opt/tmp/ipkg
mkdir -p /opt/etc/lighttpd
wget http://autoinstall.lima-city.de/lighttpd_1.4.22-1_mipsel.ipk
ipkg install lighttpd_1.4.22-1_mipsel.ipk
wget http://autoinstall.lima-city.de/libuclibc++_0.2.2-8_mipsel.ipk
ipkg install libuclibc++_0.2.2-8_mipsel.ipk
wget http://autoinstall.lima-city.de/lighttpd.conf -O /opt/etc/lighttpd/lighttpd.conf

echo "CONSIDER: YOUR ROUTER IS ONLY REACHABLE ON PORT 88"
nvram set http_lanport=88
nvram commit
reboot



Your webserver is reachable on port 80, if needed open port in your webif and use
a dyndns account to allow access from wan.

Consider anytime, that your router is reachable on port 80 (after performing the above commands)

have fun
newbiefan