
Advertisement
To enable the PHP zip extension in XAMPP, follow these steps:
- Open the XAMPP control panel.
- Click the “Config” button for the Apache module.
- 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.
- Scroll down to the Dynamic Shared Object (DSO) section and search for the line #LoadModule php7_module modules/libphp7.so.
- Below this line, add the following line to load the PHP zip extension:
Advertisement
1 2 | LoadModule php7_module modules/libphp7.so LoadModule zip_module modules/mod_zip.so |
- Save the httpd.conf file and close it.
- Restart the Apache server in the XAMPP control panel.
- 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