From BD Linux 下,使用unzip解压时,报错: $ unzip trunk.zip Archive: trunk.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of trunk.zip or trunk.zip.zip, and cannot find trunk.zip.ZIP, period. $ du -sh trunk.zip 2.3G trunk.zip 文件大小为 2.3G,可能是 unzip 设置了这个限制吧。在网上查到要用 jar 来解 $ jar xvf trunk.zip 如果出现 jar:Command not found 要用yum下载 $ yum -y install java-1.6.0-openjdk-devel 再次运行 $ jar xvf trunk.zip 就能成功,看来,unzip局限蛮大的呀。
WDCP其实很麻烦,经常会遇到很多问题,这里罗列解决EXCEL插件缺少 ZipArchive 的时候的解决方法。 要用wordpress的revolution slider,但是使用过程中显示Error: Wrong export slider file format! This could be caused because theZipArchive extension is not enabled. Go Back 好像是没有ziparchive这扩展,搜了下 好像这样就可以了。 cd /usr/src wget http://pecl.php.net/get/zip (这个下载后看不到版本的,所以跳过这个步骤没用ssh,直接在浏览器下载后用wdcp上传到/usr/src) tar zxvf zip-1.12.4.tgz (可能下载版本不一样,按zip-1.x.x.tgz就可以了) cd zip-1.12.4 /www/wdlinux/php/bin/phpize的位置可以通过PHPINFO查看 /www/wdlinux/php/bin/phpize ./configure --with-php-config=/www/wdlinux/php/bin/php-config make make install 安装后记录屏幕下的zip.so的位置,例如/usr/local/lib/php/extensions/zip.so 修改php.ini 增加 extension=/usr/local/lib/php/extensions/zip.so 然后同样在php.ini文件中,将zlib.output_compression = Off 改为 zlib.output_compression = On service httpd restart (重启apache)