Symptoms
You may run into the following error when performing an integrity check via WP Toolkit.
Failed to reinstall WordPress core files
Error: Extracting a zip file requires ZipArchive.
Downloading WordPress 5.8.1 (en_US)...
Description
The error above shows that when WP Toolkit attempts to extract the files during the integrity check, it's unable to because it cannot access or use the PHP 'ZipArchive' extension. To do this, it requires the ea-libzip package to be installed, the php-zip module for the site's PHP version (for example: ea-php81-php-zip for PHP 8.1) to be installed, the cPanel user's PHP memory limit to be at least 64MB, and the WordPress installation's files and folders must be owned by the cPanel user.
Please note that CageFS may need to be rebuilt on CloudLinux systems.
Workaround
- Ensure that ea-libzip is installed.
- Ensure that ea-php##-php-zip is installed.
Please note that "##" must be replaced with the PHP version without the decimal point. - Ensure that the user's PHP memory limit is at least 64MB.
Additional resources
How to install a PHP extension In WHM
How to set or increase PHP INI memory limit or other values
Comments
0 comments
Article is closed for comments.