tags:

views:

8

answers:

1

Hello, 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[=DIR])" ... how can I fix this on Apache?

A: 

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
Fosco