ksuralta
ksuralta

Reputation: 17116

Is there a SAPI module for PHP 5 for supporting the thttpd web server?

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

Upvotes: 1

Views: 1414

Answers (1)

David Phillips
David Phillips

Reputation: 10218

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.

Upvotes: 2

Related Questions