Install zip extension in Linux

Source: Internet
Author: User
Tags php website zip extension
You should need to add ZIP extensions on the php-4.4.4 (Note: ZIP extensions after the php-5.2 are directly in PHP, you just need to add -- With-zip when compiling PHP ), according to the official PHP Website:

============================

Linux systems

In order to use these functions you must compile PHP with zip support by using-- With-zip [= dir]Configure option, where [dir] is the prefix of the» zziplib library install.

Windows

Windows users need to enablePhp_zip.dllInsidePHP. iniIn order to use these functions.

PHP 5.2.0 and laterlinux Systems

In order to use these functions you must compile PHP with zip support by using-- Enable-zipConfigure option.

Windows

Windows users need to enablePhp_zip.dllInsidePHP. iniIn order to use these functions.

============================
So
First, install zziplibto download zziplib-0.10.76.tar.gz.
./Configure
Make
Make install
Second, recompile PHP, -- With-zip to compile
Finally, restart Apache to check whether phpinfo. php has ZIP extensions, such:

Zip
Zip support Enabled

Indicates that the installation is successful!

For other possible methods, refer:

Http://hi.baidu.com/eclosion/blog/item/a5c2a4c24c265b1b0ef477ea.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.