Directories needs to have the x permission set.
Havard
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
Directories needs to have the x permission set.
Havard
Doh!!!
Thanks Harvard
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?
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!
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?
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
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):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'...Code:attempt to access beyond end of device 07:11: rw=0, want=0, limit=Y
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.
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
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 worksOriginally Posted by wireless
I'm still not sure why earlier attempts failed and why thttpd stopped working in the first place.
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.
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.
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.
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.
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