Discussion:
enbale zlib on apache 2.2.6
Érico
2014-05-28 16:32:55 UTC
Permalink
I have a php page with php info and in Phar info it is showing :

gzip compression => disabled(install ext/zlib)

I do have zlib installed in my local environment but not under /usr/local

how can I set my php.ini so my environment can recognize it ?

I have added zlib.so desc into php.ini
..
extension_dir=path_to_so
extension=zlib.so

also I have a php page ... with the content :
$extensions = get_loaded_extentions();
...
this shows all extensions configured ... zlib is not listed on it ...

Thks !!
Jigar Dhulla
2014-05-28 16:42:30 UTC
Permalink
Hi,

What is the output of the following commands in console :

*root > php -v*

*root > php -m*

*root > php -i | grep zlib*

*root > php -i | grep extension_dir*

*root > php --ini*
Post by Érico
gzip compression => disabled(install ext/zlib)
I do have zlib installed in my local environment but not under /usr/local
how can I set my php.ini so my environment can recognize it ?
I have added zlib.so desc into php.ini
..
extension_dir=path_to_so
extension=zlib.so
$extensions = get_loaded_extentions();
...
this shows all extensions configured ... zlib is not listed on it ...
Thks !!
--
Regards,
Jigar Dhulla
Loading...