Software⏱️ 2 min read📅 2026-05-31

How to Fix: Fatal error: Class 'ZipArchive' not found in

Learn how to fix: Fatal error: Class 'ZipArchive' not found in.

Quick Answer: Try checking your system settings or restarting.

The Fatal error Class 'ZipArchive' not found in ... error typically occurs when the PHP ZipArchive extension is not installed or enabled on your Linux server. This can be due to various reasons, such as:

🛑 Root Causes of the Error

  • PHP configuration is not set to enable the ZipArchive extension.

🛠️ Step-by-Step Verified Fixes

Method 1: Enable ZipArchive Extension

  1. Step 1: Open your server's configuration file (usually /etc/php.ini or /etc/php7.x/apache2/php.ini) and look for the zip extension.

Method 2: Install ZipArchive Extension

  1. Step 1: Update your package list by running the command apt update (for Debian-based systems) or yum update (for RPM-based systems).

💡 Conclusion

To resolve the Fatal error Class 'ZipArchive' not found in ... error, enable or install the ZipArchive extension according to your server's configuration and package manager. Make sure to restart your web server after making any changes to the configuration file.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions