1

Is there a SAPI module for PHP 5 for supporting the thttpd web server? Oddly, the one included on PHP 5.2.6 source is for PHP 4.x.

Thanks, Kenneth

Till
  • 22,236
  • 4
  • 59
  • 89
ksuralta
  • 16,276
  • 16
  • 38
  • 36

1 Answers1

2

The thttpd SAPI that ships with PHP 5 works. Ignore the README where it says "PHP 4".

However, understand that PHP for thttpd is single-threaded. All other requests will stall while PHP is executing. This is might be acceptable for a low traffic site or embedded application. If not, I recommend trying nginx, another lightweight web server that runs PHP in a separate process via FastCGI.

David Phillips
  • 10,723
  • 6
  • 41
  • 54