Php 共享Apache 2.0模块与静态Apache模块

Php 共享Apache 2.0模块与静态Apache模块,php,linux,apache,compilation,Php,Linux,Apache,Compilation,我是从我的房间里找到的 这些是PHP编译的配置选项 --with-apache[=DIR] Build a static Apache module. DIR is the top-level Apache build directory, defaults to /usr/local/apache. --with-apxs2[=FILE] Build shared Apache 2.0 module. FILE is the optional pathname to the

我是从我的房间里找到的

这些是PHP编译的配置选项

--with-apache[=DIR]
    Build a static Apache module. DIR is the top-level Apache build directory, defaults to /usr/local/apache.

--with-apxs2[=FILE]
    Build shared Apache 2.0 module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs.

静态和共享的含义是什么?

静态:PHP模块将被编译成Apache二进制文件本身,并将在每次启动Apache时加载

动态:PHP模块将编译为动态共享库,您可以选择是否加载它


Apache使用静态模块可能更快,但为了删除或更新模块,您必须重新编译整个代码。

嗯,mat,您知道PHP是一种解释语言,因此无法编译吗?必须编译PHP解释器本身。我说的是Apache的mod_php,而不是php代码。