Reputation: 381
In my wordpress dashboard i am getting "ZipArchive class is missing on your server" this error. I already installed PHP 7.0 on my Ubuntu server. How can i solve this.
Upvotes: 6
Views: 23485
Reputation: 107
On Newer version of PHP 8.3.*
Ubuntu/Debian
sudo apt-get install php8.3-zip
CentOS/Red Hat:
sudo yum install php-zip
Alpine Linux (if using Docker):
apk add php8-zip
Restart
sudo systemctl restart apache2 # For Apache
sudo systemctl restart nginx # For Nginx
Upvotes: -1
Reputation: 2982
Try to install zip archive depending on which version of php you have installed, try the following
sudo apt-get install php-zip
or if you have php5.6
sudo apt-get install php5.6-zip
or if you have php7
.
sudo apt-get install php7.0-zip
Then restart the server
sudo service apache2 restart
To install specific package See this
Upvotes: 20
Reputation: 1719
When upgrading to PHP 7, you should make sure to install the PHP 7 versions of you libraries as well. The PPA providing PHP 7 also provides a php7.0-zip package. You can install it with:
sudo apt-get install php7.0-zip
To see additional PHP 7 libraries that are available, run:
sudo apt-cache search php7.0-*
Refer this url : https://www.digitalocean.com/community/questions/php-7-0-ziparchive-library-is-missing-or-disabled
Upvotes: 0