Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有 Nginx 和 PHP5-FPM 的 VPS 设置。作为 unix、VPS 等的新手……我花了很长时间才得到我想要的设置。
但是现在我希望能够在 PHP 上安装一些扩展,而不必重建整个东西。例如。有没有办法在现有的 PHP 设置上安装 php_tidy 扩展?
查看http://pecl.php.net/上的文档,了解如何安装 PHP 扩展。
它通常就像运行命令一样简单,例如
pecl install tidy
您可以将扩展编译为共享库。然后你只需要在 php.ini 中声明你的模块。
php.net 上有phpize的描述。
此处讨论了模块和完整编译之间的性能差异。