All Applications In One Streamlined Environment
About Us |  Contact Us |  Terms of Use |  Site Map  
Home Products Store Support Clients Partners
Home / Knowledge Base /

Back FAQ(s) found under  Installation Showing 9 of 13 Prev  |  Next

How to compile Zlib library with PHP?
Modified on 2004-04-08

The example below is only a guideline to compile ZLib with PHP 4.2.3. It may differ from other system as different PHP version and server environment.

Compiling PHP 4.2.3 with ZLib for Linux server

1. Download and extract php-4.2.3.tar.gz from  .

2. Most PHP distributions will contain the ZLib library extension files.

3. Run the configuration with the option below. You may have additional option string for your server environment.

        './configure' '--prefix=/usr' '--exec-prefix=/usr' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec'  '--with-zlib' '--enable-exif' '--enable-ftp=shared' '--enable-magic-quotes' '--enable-safe-mode' '--enable-discard-path' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--enable-mbstring' '--with-apxs=/usr/sbin/apxs' 

         make
 
         make install

4. Reboot Apache.


Enable ZLib library with PHP in Windows server

1. Download the php_zlib.dll file from the attachment below and copy it into your PHP extension directory.

2. Edit your PHP.INI file, locate around line 486 

        extension=php_zlib.dll 

3. Uncomment the line by removing the ; (semicolon) sign.

4. Restart your Windows web server and you should have the option enabled. You can check with the php_info() function.


Read More :

- What is Zlib library?



Attachment : php_zlib.dll


Is this FAQ helpful? Average Ratings : Not rated
Printer Friendly Version
Tell A Friend

Related FAQs In This Category
• What is GD graphics library?
• What is Zlib library?



Browse by Category
Installation (13)
Wizard, troubleshooting, requirements...

User Guides (5)
Activation, features usage, administration task...

Search for Answers
Intelligent FAQ Search. Type in your keywords to search for answers you need.



Home |  Products |  Store |  Support |  Clients
Copyright © 2002-2004 by Comdev Software. All Rights Reserved.