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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.