Php Ubuntu中的服务器上缺少ZipArchive类
在我的wordpress仪表板中,我发现“您的服务器上缺少ZipArchive类”此错误。我已经在我的Ubuntu服务器上安装了PHP7.0。我怎样才能解决这个问题 尝试安装zip存档 根据安装的php版本,请尝试以下操作Php Ubuntu中的服务器上缺少ZipArchive类,php,wordpress,ubuntu,Php,Wordpress,Ubuntu,在我的wordpress仪表板中,我发现“您的服务器上缺少ZipArchive类”此错误。我已经在我的Ubuntu服务器上安装了PHP7.0。我怎样才能解决这个问题 尝试安装zip存档 根据安装的php版本,请尝试以下操作 sudo apt-get install php-zip 或者如果您有php5.6 sudo apt-get install php5.6-zip 或者如果您有php7 sudo apt-get install php7.0-zip 然后重新启动服务器 sudo ser
sudo apt-get install php-zip
或者如果您有php5.6
sudo apt-get install php5.6-zip
或者如果您有php7
sudo apt-get install php7.0-zip
然后重新启动服务器
sudo service apache2 restart
要在升级到PHP7时安装特定的软件包,还应确保安装库的PHP7版本。提供php7的PPA还提供了php7.0-zip包。您可以通过以下方式安装它:
sudo apt-get install php7.0-zip
要查看可用的其他PHP 7库,请运行:
sudo apt-cache search php7.0-*
参考此url:使用Ubuntu 18.04,使用默认的php包7.2.10,您只需要使用
sudo-apt-get-install-php-zip