Page 5 of 6 FirstFirst ... 3456 LastLast
Results 61 to 75 of 79

Thread: thttpd problem

  1. #61
    Join Date
    Aug 2006
    Location
    NC
    Posts
    10

    THTTPD running but no access

    I have followed http://www.sprayfly.com/wiki/THTTPD to set up web server on WLHDD it appears to be running but I do not get the "Hello World" index.htm.

    Unable to connect
    Firefox can't establish a connection to the server at 192.168.8.100:81

    I have already set up the hard drive to auto mount and power down after 10 min. I do not understand why it will not show the page.
    Here is what is running, and part of the log:
    PID Uid VmSize Stat Command
    1 root 564 S /sbin/init
    2 root SW [keventd]
    3 root SWN [ksoftirqd_CPU0]
    4 root SW [kswapd]
    5 root SW [bdflush]
    6 root SW [kupdated]
    7 root SW [mtdblockd]
    46 root 316 S telnetd
    51 root 368 S httpd
    57 root 328 S klogd
    58 root 356 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
    60 root 432 S udhcpc -i br0 -p /var/run/udhcpc_lan.pid -s /tmp/land
    61 root SW [khubd]
    69 root 340 S waveservermain
    71 root 344 S rcamdmain
    76 root 460 S watchdog
    78 root 340 S ntp
    84 root SW [kjournald]
    96 root 1012 S /usr/sbin/smbd -D -l /opt/var/log/smbd.log -s /opt/et
    98 root 1000 S /usr/sbin/nmbd -D -l /opt/var/log/nmbd.log -s /opt/et
    133 root 556 S -sh
    136 root 400 R ps

    Dec 31 19:00:09 kernel: kjournald starting. Commit interval 5 seconds
    Dec 31 19:00:09 kernel: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
    Dec 31 19:00:09 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
    Dec 31 19:00:09 kernel: EXT3-fs: recovery complete.
    Dec 31 19:00:09 kernel: EXT3-fs: mounted filesystem with ordered data mode.
    Dec 31 19:00:09 kernel: Adding Swap: 524276k swap-space (priority -1)
    Jul 7 09:21:48 kernel: VFS: Can't find ext3 filesystem on dev ide0(3,0).
    Jul 7 09:21:48 kernel: MSDOS FS: Using codepage 950
    Jul 7 09:21:48 kernel: MSDOS FS: IO charset cp950
    Jul 7 09:21:48 kernel: FAT: bogus logical sector size 0
    Jul 7 09:21:48 kernel: VFS: Can't find a valid FAT filesystem on dev 03:00.
    Jul 7 09:21:48 kernel: FAT: freeing iocharset=cp950
    Jul 7 09:21:48 kernel: FAT: bogus logical sector size 0
    Jul 7 09:21:48 kernel: VFS: Can't find a valid FAT filesystem on dev 03:00.
    Jul 7 09:21:48 kernel: VFS: Can't find ext3 filesystem on dev ide0(3,2).
    Jul 7 09:21:48 kernel: MSDOS FS: Using codepage 950
    Jul 7 09:21:48 kernel: MSDOS FS: IO charset cp950
    Jul 7 09:21:48 kernel: FAT: bogus logical sector size 0
    Jul 7 09:21:48 kernel: VFS: Can't find a valid FAT filesystem on dev 03:02.
    Jul 7 09:21:48 kernel: FAT: freeing iocharset=cp950
    Jul 7 09:21:48 kernel: FAT: bogus logical sector size 0
    Jul 7 09:21:48 kernel: VFS: Can't find a valid FAT filesystem on dev 03:02.
    Jul 7 09:21:57 ntp client: Synchronizing time with time.nist.gov ...
    Jul 7 09:22:12 nmbd[98]: [2007/07/07 09:22:12, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(405)
    Jul 7 09:22:12 nmbd[98]: *****
    Jul 7 09:22:12 nmbd[98]:
    Jul 7 09:22:12 nmbd[98]: Samba name server ~1~ is now a local master browser for workgroup STARGATE on subnet 192.168.8.100
    Jul 7 09:22:12 nmbd[98]:
    Jul 7 09:22:12 nmbd[98]: *****
    Jul 7 16:34:13 login[133]: root login on `pts/0'

    UG
    Thanks!
    WLHDD_100GB_X50V

  2. #62
    Join Date
    Aug 2006
    Location
    NC
    Posts
    10
    oh, I am running WLHDD-1.9.2.7-7g
    WLHDD_100GB_X50V

  3. #63

    can't start thttpd

    Hello
    I've installed thttpd, but I'm having trouble running it. I get a
    thttpd: can't load library 'libiconv.so.2'

    same with
    php: can't load library 'libiconv.so.2'

    I cannot find it in the loaded modules:
    Code:
    [admin@(none) root]$ ls -l /opt/lib
    drwxr-xr-x    5 admin    root         4096 Jul 30 22:56 ipkg
    lrwxrwxrwx    1 admin    root           15 Jul 30 22:54 libbz2.so -> libbz2.so.1                      .0.4
    lrwxrwxrwx    1 admin    root           15 Jul 30 22:54 libbz2.so.1.0 -> libbz2.                      so.1.0.4
    -rw-r--r--    1 admin    root        85420 Jul 24 10:26 libbz2.so.1.0.4
    lrwxrwxrwx    1 admin    root           18 Jul 30 22:55 libcrypto.so -> libcrypt                      o.so.0.9.7
    lrwxrwxrwx    1 admin    root           18 Jul 30 22:55 libcrypto.so.0 -> libcry                      pto.so.0.9.7
    -rw-r--r--    1 admin    root      1681632 Jun 21 22:12 libcrypto.so.0.9.7
    -rwxr-xr-x    1 admin    root      1201316 Jun 21 22:09 libdb-4.2.so
    lrwxrwxrwx    1 admin    root           12 Jul 30 22:55 libdb-4.so -> libdb-4.2.                      so
    lrwxrwxrwx    1 admin    root           12 Jul 30 22:55 libdb.so -> libdb-4.2.so
    lrwxrwxrwx    1 admin    root           18 Jul 30 22:55 libexslt.so -> libexslt.                      so.0.8.13
    lrwxrwxrwx    1 admin    root           18 Jul 30 22:55 libexslt.so.0 -> libexsl                      t.so.0.8.13
    -rwxr-xr-x    1 admin    root       109364 Jun 30 22:30 libexslt.so.0.8.13
    lrwxrwxrwx    1 admin    root           12 Jul 30 22:06 libform.so -> libform.so                      .5
    lrwxrwxrwx    1 admin    root           14 Jul 30 22:06 libform.so.5 -> libform.                      so.5.6
    -rwxr-xr-x    1 admin    root        81708 Jun 21 22:10 libform.so.5.6
    lrwxrwxrwx    1 admin    root           16 Jul 30 22:55 libgdbm.so -> libgdbm.so                      .3.0.0
    lrwxrwxrwx    1 admin    root           16 Jul 30 22:55 libgdbm.so.3 -> libgdbm.                      so.3.0.0
    -rwxr-xr-x    1 admin    root        28108 Jun 21 22:07 libgdbm.so.3.0.0
    lrwxrwxrwx    1 admin    root           23 Jul 30 22:55 libgdbm_compat.so -> lib                      gdbm_compat.so.3.0.0
    lrwxrwxrwx    1 admin    root           23 Jul 30 22:55 libgdbm_compat.so.3 -> l                      ibgdbm_compat.so.3.0.0
    -rwxr-xr-x    1 admin    root         9868 Jun 21 22:07 libgdbm_compat.so.3.0.0
    lrwxrwxrwx    1 admin    root           12 Jul 30 22:06 libmenu.so -> libmenu.so                      .5
    lrwxrwxrwx    1 admin    root           14 Jul 30 22:06 libmenu.so.5 -> libmenu.                      so.5.6
    -rwxr-xr-x    1 admin    root        37724 Jun 21 22:10 libmenu.so.5.6
    lrwxrwxrwx    1 admin    root           15 Jul 30 22:06 libncurses.so -> libncur                      ses.so.5
    lrwxrwxrwx    1 admin    root           17 Jul 30 22:06 libncurses.so.5 -> libnc                      urses.so.5.6
    -rwxr-xr-x    1 admin    root       395372 Jun 21 22:10 libncurses.so.5.6
    lrwxrwxrwx    1 admin    root           13 Jul 30 22:06 libpanel.so -> libpanel.                      so.5
    lrwxrwxrwx    1 admin    root           15 Jul 30 22:06 libpanel.so.5 -> libpane                      l.so.5.6
    -rwxr-xr-x    1 admin    root        18060 Jun 21 22:10 libpanel.so.5.6
    lrwxrwxrwx    1 admin    root           16 Jul 30 22:55 libpcre.so -> libpcre.so                      .0.0.1
    lrwxrwxrwx    1 admin    root           16 Jul 30 22:55 libpcre.so.0 -> libpcre.                      so.0.0.1
    -rwxr-xr-x    1 admin    root       163804 Jun 21 22:12 libpcre.so.0.0.1
    lrwxrwxrwx    1 admin    root           19 Jul 30 22:55 libpcrecpp.so -> libpcre                      cpp.so.0.0.0
    lrwxrwxrwx    1 admin    root           19 Jul 30 22:55 libpcrecpp.so.0 -> libpc                      recpp.so.0.0.0
    -rwxr-xr-x    1 admin    root        71624 Jun 21 22:12 libpcrecpp.so.0.0.0
    lrwxrwxrwx    1 admin    root           21 Jul 30 22:55 libpcreposix.so -> libpc                      reposix.so.0.0.0
    lrwxrwxrwx    1 admin    root           21 Jul 30 22:55 libpcreposix.so.0 -> lib                      pcreposix.so.0.0.0
    -rwxr-xr-x    1 admin    root         7352 Jun 21 22:12 libpcreposix.so.0.0.0
    lrwxrwxrwx    1 admin    root           15 Jul 30 22:55 libssl.so -> libssl.so.0                      .9.7
    lrwxrwxrwx    1 admin    root           15 Jul 30 22:55 libssl.so.0 -> libssl.so                      .0.9.7
    -rw-r--r--    1 admin    root       289980 Jun 21 22:12 libssl.so.0.9.7
    lrwxrwxrwx    1 admin    root           17 Jul 30 22:55 libxml2.so -> libxml2.so                      .2.6.29
    lrwxrwxrwx    1 admin    root           17 Jul 30 22:55 libxml2.so.2 -> libxml2.                      so.2.6.29
    -rwxr-xr-x    1 admin    root      2093076 Jun 30 22:30 libxml2.so.2.6.29
    drwxr-xr-x    2 admin    root         4096 Jun 30 22:30 libxslt-plugins
    lrwxrwxrwx    1 admin    root           17 Jul 30 22:55 libxslt.so -> libxslt.so                      .1.1.21
    lrwxrwxrwx    1 admin    root           17 Jul 30 22:55 libxslt.so.1 -> libxslt.                      so.1.1.21
    -rwxr-xr-x    1 admin    root       347264 Jun 30 22:30 libxslt.so.1.1.21
    lrwxrwxrwx    1 admin    root           13 Jul 30 22:55 libz.so -> libz.so.1.2.3
    lrwxrwxrwx    1 admin    root           13 Jul 30 22:55 libz.so.1 -> libz.so.1.2                      .3
    -rw-r--r--    1 admin    root        92468 Jun 21 22:14 libz.so.1.2.3
    drwxr-xr-x    3 admin    root         4096 Jul 30 22:54 php
    drwxr-xr-x    2 admin    root         4096 Jul 30 22:55 pkgconfig
    lrwxrwxrwx    1 admin    root           17 Jul 30 22:06 terminfo -> ../share/ter                      minfo
    -rw-r--r--    1 admin    root          216 Jun 30 22:30 xml2Conf.sh
    -rw-r--r--    1 admin    root          250 Jun 30 22:30 xsltConf.sh
    Is anyone having similar trouble? Maybe this is a problem with the latest php package?

  4. #64
    Just a wild guess. Try this:

    ipkg install gconv-modules

  5. #65

    libiconv.so.2 error on thttpd

    Hi W00biyn,

    I am a newbie and I have the same issue too. I search and play around with it 3 days and finally got it there. Try to install it as:

    ipkg install libiconv

    then, my http works

    hope that can help : )

  6. #66
    thank you! it works great now. at last i have access to my 100 gigs of music on my psp.

  7. #67

    thttpd virtual host how to ?

    Hello, maybe somebody can give example how to configure thttpd for virtual hosting, have one external IP.

  8. #68

    Question thttpd: Segmentation Fault

    Hi there,
    I would like to run thttpd web server on my WL-500gP.

    After installation (with ipkg) it really works, but only until next reboot of whole device. Then it refuse start with error message Segmentation Fault. No more error messages. Running with -V it prints:
    Code:
    [admin@asus root]$ thttpd -V
    thttpd/2.25b PHP/5.2.5
    User defined signal 1
    Running with -D it prints:
    Code:
    [admin@asus root]$ thttpd -D
    Segmentation fault
    My thttpd.conf:
    Code:
    dir=/opt/share/www
    port=8080
    user=nobody
    nochroot
    nosymlink
    novhost
    logfile=/opt/var/log/thttpd.log
    # Please do not edit pidfile path at it is use to kill thttpd process during init
    pidfile=/opt/var/run/thttpd.pid
    My ipkg.conf:
    Code:
    src wl500g http://wl500g.dyndns.org/ipkg
    #src unslung http://www.wlan-sat.com/boleo/optware/oleg
    src unslung http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
    dest root /

    My versions of packages:
    ipkg - 0.99.149-2
    php - 5.2.5-1
    php-thttpd - 2.25b-5.2.5-1


    Does anyone have idea why it happens or what to do to solve it?

    Thanks a lot...#JFK

  9. #69
    Hi,

    I don't know why or how this happened., still to much of a n00b.
    my guess is something went wrong with the filesystem.

    I had the same message, with another program/file though..

    I fixed it with e2fsck like in the following post http://www.wl500g.info/showthread.php?t=12188

    one warning though.. I don't know much about the use of e2fsck , so I don't know what effects it could cause, do some research on it.

  10. #70
    Hi,

    don't need mysql, php, just httpd and /www directory on my usb pendrive.
    Is it possible to have it on original updated firmware by Asus
    (lost hidden menu access to terminal command line ).

    Darius

    Quote Originally Posted by oleo View Post
    The only way to get all three thing running is to have deluxe od premium with lot of swap (512MB at least) and installing alternative feed for Oleg firmware based on uClibc 0.9.28.
    See http://ipkg.nslu2-linux.org/feeds/op.../cross/stable/

    mysql needs some changes in scripts.

  11. #71

    How to fix problem uploading file thttpd

    Hi,
    i want to use torrentflux and i need to upload .torrent file but the upload file in thttpd is not working.
    I tryed to recompile thttpd 2.25b with php 5.2.5 (i found a patch to suport thttpd 2.25b) but i get some errors at parse_date.c .(segmentation fault)
    I also tryed to use apache ,lighttpd and i have the same problem ...
    plz help

  12. #72
    When i compile the thttpd 2.25b patched with php i get the following error:
    php_thttpd.c: In function 'do_writev':
    php_thttpd.c:110: error: 'IOV_MAX' undeclared (first use in this function)
    php_thttpd.c:110: error: (Each undeclared identifier is reported only once
    php_thttpd.c:110: error: for each function it appears in.)
    php_thttpd.c: In function 'thttpd_request_dtor':
    php_thttpd.c:475: warning: passing argument 1 of 'free' discards qualifiers from pointer target type
    php_thttpd.c:488:2: error: #error No thread primitives available
    php_thttpd.c: In function 'worker_thread':
    php_thttpd.c:616: error: 'tsrm_ls' undeclared (first use in this function)
    make: *** [php_thttpd.o] Error 1

  13. #73

    thttpd and rights

    A simple question.

    I have a thttpd deamon running om my wl500gx.
    Is it possible to make a directory with admin/root rights ? and only that specific folder.

    Thanks in advance.

  14. #74
    chmod the directory i would assume. What are you trying to achieve?

  15. #75
    From the man-page of thttpd:

    BASIC AUTHENTICATION
    Basic Authentication is available as an option at compile time. If enabled, it uses a password file in the directory to be protected, called .htpasswd by default. This file is formatted as the familiar colon-separated username/encrypted-password pair, records delimited by newlines. The protection does not carry over to subdirectories. The utility program htpasswd(1) is included to help create and modify .htpasswd files.

    And as far as I can tell, it's enabled by default.

    So creating a .htpasswd file in each directory you want to protect should work

Page 5 of 6 FirstFirst ... 3456 LastLast

Similar Threads

  1. WL-500gP and Asus support experience
    By Blezi in forum WL-500gP Q&A
    Replies: 6
    Last Post: 03-12-2006, 12:59
  2. Problem with dieing AIR-connection
    By BòóN in forum WL-500g Q&A
    Replies: 7
    Last Post: 26-10-2004, 12:04

Tags for this Thread

Posting Permissions

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