📦 Error: "The zip extension is missing in your PHP installation"
This error appears when Laravel (via Composer) tries to unzip downloaded packages but can’t, because the ZIP extension in PHP is not enabled. Let’s fix that.
✅ Solution: Enable ZIP Extension
Step 1: Open php.ini
File
- If you're using XAMPP: Go to your PHP installation directory.
Example: C:\xampp\php\php.ini
Step 2: Enable the ZIP Extension
Search for this line:
;extension=zip
Now remove the semicolon ( ;
) to enable it:
extension=zip
Save the file and close the editor.
Step 3: Restart Your Server
- 🖥️ If you’re using XAMPP, restart Apache via the control panel.
- ⌨️ If you're using CLI or a custom server, restart PHP/FPM or your web server (e.g., Apache or Nginx).
Step 4: Verify It's Enabled
In your terminal, type:
php -m
If you see zip
listed in the output, you're good to go! ✅
This extension is critical for package management in PHP — especially when working with frameworks like Laravel.
0 Comments