Page 1 of 6 123 ... LastLast
Results 1 to 15 of 79

Thread: thttpd problem

  1. #1
    Join Date
    Mar 2005
    Location
    Taipei Taiwan
    Posts
    18

    thttpd on WL-HDD problem

    I have the thttpd server up and running (Thanks Macsat for the excellent tutorial) and all is good with one exception; I can access pages in the first level of the www directory but I can't reach anything in subfolders. The pages and subfolders all have read permissions set across the board but I just can't access them through a browser. At first I was getting a message about the pages being executables and not allowed by the server (smart enough) so I took away all x permissions from everything so it's all just read only. Now I can't reach them at all... Any ideas?

    Madar

  2. #2

    Directories needs to be executable

    Directories needs to have the x permission set.

    Havard

  3. #3
    Join Date
    Mar 2005
    Location
    Taipei Taiwan
    Posts
    18
    Doh!!!

    Thanks Harvard

  4. #4

    Unable to upload file with php using thttpd

    I'm running thttpd with php on my Wl500g as described in macsats tutorial. The problem is that I can't get the file upload working. Tested some upload-scripts from hotscripts.com, but not a single one worked.

    With Firefox I get a "The Document contains no data" message and IE just presents an error-page.
    I didn't change the orginal thttpd and php settings, but these settings should work.
    The files I tried to upload are not big (50-500kb), so there shouldnt be a problem with the memory. And there shouldnt be a problem with the file permissions, because i made everything read/write-able for everyone and changed the thttpd user to admin.

    Does anyone have a clue how to get it working?

  5. #5
    I had the same problem. You'll probably succeed in uploading a tiny file (try a text file of just a few bytes). The problem apparently is that thttpd only accepts a tiny amount of post data

    This limitation is never mentioned explicitly, but on google (newsgroups+www) I found some other users having exactly the same problem...

    Of course: if there's anybody with a solution: let me know!

  6. #6

    thttpd won't run after upgrade...

    After upgrading the php-thttpd package to php-thttpd_2.25b-5.0.4-1_mipsel.ipk with ipkg update / ipkg upgrade, the httpd server won't start anymore.

    I've already tried a clean install of the php-thttpd package, but the error still exists.

    If I look @ dmesg I find the following errors:

    thttpd: Forwarding exception at [<800a90d4>] (801b15bc)
    thttpd: Forwarding exception at [<800a90dc>] (801b15c8)
    thttpd: Forwarding exception at [<800a90d4>] (801b15bc)
    thttpd: Forwarding exception at [<800a90dc>] (801b15c8)


    Any idea's?

  7. #7
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    15
    I had the same problem. I removed the php-httpd package with:

    ipkg remove php-httpd

    and reinstalled it with:

    ipkg install php-httpd

    That works for me.

    Best regards

    mmX

  8. #8
    I have a similar problem, yet I haven't found a solution for it sofar...

    Before upgrading to the latest firmware from Oleg everything worked fine until I discovered yesterday that thttpd wasn't running anymore and php itself had issues as well. In the logs I found the following error (produced upon attempting to start thttpd):
    Code:
    attempt to access beyond end of device
    07:11: rw=0, want=0, limit=Y
    where Y would be a number much larger than 0. This is weird because normally you will only get such an error if 'want' > 'limit'...

    I decided to reset the wl500g to the factory settings and to reinstall everything on my usb stick. Unfortunately this didn't help either. Upon starting thttpd an error appears in the log stating "bind 0.0.0.0 - Address already in use". Changing the port in the conf file will not change this. If I specify a host value in the conf the error disappears, but still thttpd won't work (it will immediately terminate without any error, nor will an error appear in the logfiles).

    uninstalling and reinstalling thttpd also didn't help. I'm too much in love with the current firmware to downgrade again to an older - less stable - firmware.

  9. #9
    Downgrading to a older firware does not change a thing, older firmwares will also install te latest version (ipkg does).

    The remove & install I've already tried, no results

    Tried some different ports ect, but still same errors

  10. #10

    Smile

    Quote Originally Posted by wireless
    I'm too much in love with the current firmware to downgrade again to an older - less stable - firmware.
    Well love is a curious thing I downgraded, reinstalled thttpd, uninstalled thttpd, repartitioned the usb stick, repeated the last three steps twice, installed an older version of thttpd without success, nearly gave up, tried a fresh reinstall for the last time and now it works
    I'm still not sure why earlier attempts failed and why thttpd stopped working in the first place.

  11. #11

    thttpd error

    I'm also having this problem guys, and I cannot solve it with a re-install. This version is faulty, please roll back Unslung to an earlier version. THX.

  12. #12
    Please get this fixed, I am having the same problem with the new version.
    Uninstalling and reinstalling the new version doesn't work for me either.

  13. #13
    Strange, I also have the bind error, when trying to connect to the box:

    thttpd[196]: bind 0.0.0.0 - Address already in use

    And if this is the problem, why is it that serving normal html content works, just php does not? The problem is with PHP here.
    Last edited by DeeJay; 20-08-2005 at 15:15.

  14. #14
    What is also strange these two lines in the log are sometimes missing:
    (Once its there when I'm starting thttpd, once not)

    thttpd/2.25b PHP/5.0.4 starting on port 8080
    thttpd[276]: started as root without requesting chroot(), warning only

    I'm now pretty sure, that this version is buggy. Please roll back to the old one, and php also. THX.

  15. #15
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    These lines are normal.
    Please review your thttpd configuration file if you don't want such warning.

    I'll give a look to thddpd optware when I got time.
    btw, did you try surfing your wiley on port 8080 ?

    JF

Page 1 of 6 123 ... 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
  •