开发者

Enabling ZLib support in PHP

I'm installing a PHP script in my server and when I try to run the test page, I get an error saying:

PHP needs to be compiled with ZLib support enabled (--with-zlib[开发者_如何学C=DIR])

How can I fix this on Apache?


I assume this is on linux?

As the error says, you need to recompile your PHP installation.

Take a look at the Makefile in the folder where you have the PHP source to see the ./configure line that was used last time, use all of the same options with the addition of --with-zlib

./configure --with-zlib ...(other config options)...
make
make install
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜