开发者

How to compile PHP5 into Apache 2 statically?

开发者 https://www.devze.com 2022-12-17 10:08 出处:网络
Is it possible to compile php5 (or really any php version) into the apache2 binary? I\'m not looking to install & load php as a shared module. What I\'m trying to find out is whether or not i开发

Is it possible to compile php5 (or really any php version) into the apache2 binary?

I'm not looking to install & load php as a shared module. What I'm trying to find out is whether or not i开发者_JS百科t's even possible to compile php5 into apache2 statically.

Thanks a lot in advance!

Rwe


I bet you were looking for a way to improve performance.

The answer is, no, you can't in Apache2.


yeah its not a problem, first ./configure and build php using:

--with-apache=../path/to/apache-2

then ./configure apache with:

--activate-module=src/modules/php5/libmodphp5.a \

From http://php.net/manual/en/configure.about.php:

--with-apache[=DIR]

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号