Install zip module php-zip on Centos & Fedora
Due to an issue with the packaging of zip functionality within Centos & Fedora’s PHP package, the yum package php-zip, which was available for Fedora 15, is not available in Fedora 16. This is actually a “feature”, not a “bug”, but either way, getting zip support in PHP now takes a few extra steps.
1. Install dependencies as root or using sudo:
yum install pcre-devel gcc zlib zlib-devel
pecl install zip
3. Edit the main PHP configuration file to register the new module. Add this text:
a few lines before this:
in /etc/php.ini, as root or using sudo, like this:
4. Restart your web server as root or using sudo:
service httpd restart
5. Check that support is enabled using phpinfo(). You should have a section on your phpinfo() page that looks like the image below.Sam Tuke CC BY-SA Zip support confirmed by phpinfo() That’s it, good luck
Was dit antwoord nuttig?
This error will occur within a web application when any of the following conditions are met:...
When uploading many files at once (a CMS, for example), it is not uncommon for a few of the files...
Ensure that caps lock is off, and that you are completely sure what your cPanel password is. If...
If your website or web application is displaying nothing but a blank, white page, then chances...
The server will often reject a new FTP connection if too many are open for any given account. If...