Fixed: the zip extension and unzip/7z commands are both missing xampp windows


If working with Laravel or any other PHP project and composer, you may face the error message “failed to download laravel/laravel from dist: the zip extension and unzip/7z commands are both missing, skipping. the php.ini used by your command-line php is: d:\xampp\php\php.ini now trying to download from source in gitdownloader.php line 82:” during the installation or running any of Composer command. This error occurs when Composer detects that the required extensions and commands for handling compressed files are missing on your Windows system.

You can edit the php.ini file and uncomment ;extension=zip to extension=zip to fix failed to download laravel/laravel from dist: the zip extension and unzip/7z commands are both missing, skipping. the php.ini used by your command-line php is: windows \xampp\php\php.ini now trying to download from source in gitdownloader.php line.

Here are some steps to fix failed to download laravel/laravel from dist: the zip extension and unzip/7z commands are both missing, skipping. the php.ini used by your command-line php is: d:\xampp\php\php.ini:

Step 1: Open the php.ini file. You can locate it in your PHP installation directory. For example, if you installed PHP in C:\php, the php.ini file should be in C:\php\php.ini.

Ezoic

Step 2: Search for the following line and uncomment it (remove the semicolon ; at the beginning of the line):

;extension=zip

Step 3: After making this change, it should look like:

extension=zip

Step 4: Save the php.ini file.

Ezoic

Step 5: Restart your web server and the Command Prompt or PowerShell window where you’ll run Composer commands.

Conclusion

Congratulations! You have successfully resolved the “The zip extension and unzip/7z commands are both missing, skipping” error during Composer installation on your xampp Windows system. You can now continue developing your Laravel project without any issues.

Recommended Tutorials

EzoicEzoicEzoic

Jaspreet Singh Ghuman

Jaspreet Singh Ghuman

Jassweb.com/

Passionate Professional Blogger, Freelancer, WordPress Enthusiast, Digital Marketer, Web Developer, Server Operator, Networking Expert. Empowering online presence with diverse skills.

jassweb logo

Jassweb always keeps its services up-to-date with the latest trends in the market, providing its customers all over the world with high-end and easily extensible internet, intranet, and extranet products.

Contact
San Vito Al Tagliamento 33078
Pordenone Italy
Item added to cart.
0 items - 0.00
Open chat
Scan the code
Hello 👋
Can we help you?