FrzzMan
09-15-2004, 02:37 PM
I've just installed thttpd for static files (webpage objects like images, javascripts...)
It really really rocks, right now there're ~160 connections leeching a ~500MB file (WindowsXP SP2 ISO), and it use up 0.5% CPU :eek:
Plus, it can throttle outbound bandwidth to a limited value you can set, so you won't have to worried about your bandwidth bill :D
Oh, forgot to mention that all of my site's images/javascript/css are now hosted with thttpd, it help the server load drop from about 2.4 to 1.8 at peak time. It's today stat so maybe it won't help that much, but maybe it will help more :D
ringnebula
09-15-2004, 05:09 PM
Yeah, thttpd really does rock. It's great with php compiled into it as well. I have noticed some really dramatic performance improvements by using it on a few busy dynamic sites.
gaschamber
09-15-2004, 05:17 PM
Originally posted by FrzzMan
I've just installed thttpd for static files (webpage objects like images, javascripts...)
It really really rocks, right now there're ~160 connections leeching a ~500MB file (WindowsXP SP2 ISO), and it use up 0.5% CPU :eek:
Plus, it can throttle outbound bandwidth to a limited value you can set, so you won't have to worried about your bandwidth bill :D
Oh, forgot to mention that all of my site's images/javascript/css are now hosted with thttpd, it help the server load drop from about 2.4 to 1.8 at peak time. It's today stat so maybe it won't help that much, but maybe it will help more :D
In some other forums I have seen posts of people downloading WinXP SP2 ISO's and them apprently being effected by some sort of trojan. Have you heard anything like this?
FrzzMan
09-16-2004, 12:09 AM
ringnebula: I'm trying to build thttpd with php, currently php scripts are still handle by apache...
gaschamber: I don't know, if the trojan is in the SP2 CD that they sent me, it's their fault, not mine. I ripped this ISO myself :D
Originally posted by ringnebula
Yeah, thttpd really does rock. It's great with php compiled into it as well. I have noticed some really dramatic performance improvements by using it on a few busy dynamic sites.
i thought thttpd didn't work well with php.... at least that's what i read a month or so back. there was some huge warning about it not being able to parse more than one script at once or something.... that true?
Originally posted by motl
i thought thttpd didn't work well with php.... at least that's what i read a month or so back. there was some huge warning about it not being able to parse more than one script at once or something.... that true?
The only problem ive had personally is some very small errors nothing major, Its nothing you should worry about.
ringnebula
09-16-2004, 02:28 AM
Well, the sites that I have that run thttpd/php wouldn't normally process more than one script at once though they may have multiple requests to the same script at one time. It works very well in that situation at least.
FrzzMan - you will have to configure thttpd first and then php. When running configure for php you will need the switch --with-thttpd=WHEREVER_YOUR_THTTPD_SOURCE_IS. The catch is that php won't compile with the latest version of thttpd. I don't recall the exact version that it comiles with, but ./configure will tell you.
Some php variable arrays are broken when you use thttpd such as $_ENV[]. You should use $_SERVER[] and the like instead.