在 Ubuntu 上的 php 5.6 上安装 php-zip [英] Install php-zip on php 5.6 on Ubuntu
本文介绍了在 Ubuntu 上的 php 5.6 上安装 php-zip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法使用最新的 php5.6 在我的 Ubuntu VM 上安装 php-zip.
I can't install php-zip on my Ubuntu VM with the last php5.6.
找不到任何明确的内容.
Can't find find anything clear on it.
我仍然收到那个 Apache 错误:
I still get that Apache error :
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
然后,您可能需要重新启动您的网络服务器.
Then, you might have to restart your web server.
sudo service apache2 restart
或sudo service nginx restart
如果您在 centos 或 fedora 操作系统上安装,则使用 yum 代替 apt-get.示例:-
If you are installing on centos or fedora OS then use yum in place of apt-get. example:-
sudo yum install php-zip
或sudo yum install php5.6-zip
和sudo service httpd restart
这篇关于在 Ubuntu 上的 php 5.6 上安装 php-zip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文