Jump to content

zlib config


vurentjie

Recommended Posts

hi,

 

i just looked at the docs for the zlib module,in install instructs it says

 

Zlib support in PHP is not enabled by default. You will need to configure PHP --with-zlib[=DIR]

 

I looked through php.ini and find at first glance

 

;output_handler = //with options ob_gzhandler" or "zlib.output_compression

zlib.output_compression = Off

;zlib.output_handler =

extension=php_zlib_filter.dll  //which i enabled??

 

These settings I am sure I could figure out with a bit of fiddling and reading.

 

 

But mainly need a tip as to where does the above quote come into play? ie --with-zlib[=DIR]

Not too sure about this.

 

Any help appreciated.

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/108763-zlib-config/
Share on other sites

Don't touch those lines in php.ini.  And zlib is added in when you compile your own builds.  Example build:

 

wget http://us3.php.net/get/php-5.2.6.tar.gz/from/this/mirror

tgz php-5.2.6.tar.gz

mv php-5.2.6 phpbuild

cd phpbuild

./buildconfig

./configure --with-zlib

make

sudo make install

 

You need to actually do a build to get zlib on an already-built PHP binary.

Link to comment
https://forums.phpfreaks.com/topic/108763-zlib-config/#findComment-557927
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.