Advertisement

To enable the PHP zip extension in XAMPP, follow these steps:

  1. Open the XAMPP control panel.
  2. Click the “Config” button for the Apache module.
  3. In the Apache (httpd.conf) config file, search for the line that says #LoadModule deflate_module modules/mod_deflate.so and remove the # at the beginning of the line to uncomment it.
  4. Advertisement
  5. Scroll down to the Dynamic Shared Object (DSO) section and search for the line #LoadModule php7_module modules/libphp7.so.
  6. Below this line, add the following line to load the PHP zip extension:
1
2
LoadModule php7_module modules/libphp7.so
LoadModule zip_module modules/mod_zip.so
  1. Save the httpd.conf file and close it.
  2. Restart the Apache server in the XAMPP control panel.
  3. Open your PHP info file (e.g. info.php) in a web browser and search for zip. You should see the zip extension listed and enabled.

I hope this helps! Let me know if you have any questions.

Advertisement

LoadModule php7_module modules/libphp7.so
LoadModule zip_module modules/mod_zip.so
Advertisement