我无法在我的Ubuntu虚拟机上安装php-zip,因为它是最新的php5.6。
找不到任何关于它的明确信息。
我还是会遇到Apache的错误。
PHP Fatal error: Class 'ZipArchive' not found in /var/www/uta/system/library/PHPExcel/PHPExcel/Writer/...
谢谢
试试以下两种方法
sudo apt-get install php-zip
或sudo apt-get install php5.6-zip
。然后,你可能需要重新启动你的网络服务器。
sudo service apache2 restart
或sudo service nginx restart
。如果你在centos或fedora操作系统上安装,那么用yum来代替apt-get。
sudo yum install php-zip
或
sudo yum install php5.6-zip
和
sudo service httpd restart
。