Results 1 to 3 of 3

Thread: lighttpd does not starting automaticaly

  1. #1

    lighttpd does not starting automaticaly

    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

  2. #2
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by cheetah View Post
    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

  3. #3
    Join Date
    Jul 2007
    Location
    Austria
    Posts
    1,336
    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:

    Code:
     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
    Last edited by newbiefan; 28-10-2009 at 23:37. Reason: Some commands changed, without error warnings
    Alle HowTo's, all howto's

    RT-N16 1.9.2.7-rtn-r3121, Samba, VSFTP, Lightthpd, PHP, Perl, MySQL, Serendipity, Aria2web, HDD 640GB
    RT-N66U, 16GB MicroSD/ 2 Partitions, 2,5" HDD 1TB, running with Merlin's FW and Entware, 16 Mbit A1,
    Netgear DGND 3700V2, QNAP TS119PII 4 TB, QNAP TS209 2 TB Raid1, Backup Synology DS107+ 1 TB, HP CP1515n

Similar Threads

  1. Ўаблон скриптов инициализации init.d
    By ocoka13 in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 49
    Last Post: 24-05-2012, 19:33
  2. Lighttpd won't start...
    By Chillout in forum WL-500gP Q&A
    Replies: 1
    Last Post: 22-10-2008, 20:50
  3. Problem with lighttpd and php-fcgi
    By Untouchable in forum WL-500gP Q&A
    Replies: 0
    Last Post: 04-05-2008, 11:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •