简体   繁体   English

是否有用于支持 thttpd Web 服务器的 PHP 5 SAPI 模块?

[英]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?是否有用于支持 thttpd Web 服务器的 PHP 5 SAPI 模块? Oddly, the one included on PHP 5.2.6 source is for PHP 4.x.奇怪的是,包含在 PHP 5.2.6 源代码中的源代码是针对 PHP 4.x 的。

Thanks, Kenneth谢谢,肯尼斯

The thttpd SAPI that ships with PHP 5 works. PHP 5 附带的 thttpd SAPI 可以工作。 Ignore the README where it says "PHP 4".忽略写着“PHP 4”的自述文件。

However, understand that PHP for thttpd is single-threaded.但是,请了解用于 thttpd 的 PHP 是单线程的。 All other requests will stall while PHP is executing. PHP 执行时,所有其他请求都将停止。 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.如果没有,我建议尝试nginx ,这是另一个通过 FastCGI 在单独进程中运行 PHP 的轻量级 Web 服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在内存使用方面,PHP作为thttpd模块与CGI - PHP as a thttpd module vs CGI in terms of memory usage 使用 PHP 交叉编译的 THTTPD 服务器运行良好,但没有 PHP - cross-compiled THTTPD server with PHP runs fine, but no PHP thttpd和php在CGI模式下 - thttpd and php in CGI mode 使用PHP CLI SAPI的基于PHP的服务器 - PHP based server using PHP CLI SAPI 为什么我收到错误“'在 localhost 启动 PHP 内置服务器'遇到问题。只有 CLI SAPI 提供内置 Web 服务器”? - Why am I getting the error "'Starting PHP Built-in Server at localhost' has encountered a problem. Only the CLI SAPI provides a built-in web server"? php5_invoke xdebug:no action - 维护者为apache2 SAPI禁用了模块 - php5_invoke xdebug: no action - module was disabled by maintainer for apache2 SAPI 使用PHP检测FastCGI SAPI - Detecting FastCGI SAPI using PHP 如何在Windows Server 2008 r2上设置PHP CGI / FastCGI SAPI的php.ini路径? - How to set the php.ini path for PHP CGI/FastCGI SAPI on Windows Server 2008 r2? 卷曲无法在PHP CLI SAPI中使用 - Curl no working in PHP CLI SAPI 支持ASP.NET和WAMP支持PHP的IIS是否可以在同一台服务器上共存? - Can IIS supporting ASP.NET and WAMP supporting PHP coexist on the same server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM