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.

If you are using xampp with windows, Open the php.ini file, which is located in C:\xampp\php\php.ini.

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.

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

AuthorAdmin

Greetings, I'm Devendra Dode, a full-stack developer, entrepreneur, and the proud owner of Tutsmake.com. My passion lies in crafting informative tutorials and offering valuable tips to assist fellow developers on their coding journey. Within my content, I cover a spectrum of technologies, including PHP, Python, JavaScript, jQuery, Laravel, Livewire, CodeIgniter, Node.js, Express.js, Vue.js, Angular.js, React.js, MySQL, MongoDB, REST APIs, Windows, XAMPP, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL, and Bootstrap. Whether you're starting out or looking for advanced examples, I provide step-by-step guides and practical demonstrations to make your learning experience seamless. Let's explore the diverse realms of coding together.

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

  1. Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *