Troubleshoot installation failures under Windows composer due to Php_openssl extension missing

Source: Internet
Author: User

Use the following method to solve the problem perfectly!

Composer (https://getcomposer.org/) is a dependency management tool under PHP. You can declare the class libraries you need in your project, and composer will install them for you in your project. If you understand node's NPM or Ruby's bundler, you understand what it does, but it's not a package manager.

Install composer in the Windows Wamp environment (note: Composer requires PHP version in 5.3.2+) and you may experience this installation failure: The error message is "The OpenSSL extension is missing, which Would reduce the security and stability of Composer. If possible you should enable it or recompile PHP with--with-openssl "to the effect that your PHP lacks the OpenSSL extension.

You might go to the Wamp console in the lower right corner of the screen, load the php OpenSSL extension, or remove the comments from the Extension=php_openssl.dll line at the php.ini and restart the server, and the results are still not working.

The correct way is in the PHP installation directory, such as C:\wamp\bin\php\php5.3.3\, find a directory of php.ini files, and then remove Extension=php_ Openssl.dll the comments at the beginning of this line, and then you can install composer successfully.

You can see that there are two php.ini above, yes Wamp in Apache and in CLI (command line) mode using different php.ini files, when you go to the Wamp console to enable Php_openssl This extension, is enabled for Apache, not CLI. While modifying the php.ini configuration file in the PHP installation directory, you can enable OpenSSL in CLI mode.

http://blog.csdn.net/sky_zhe/article/details/21413241

Troubleshoot installation failures under Windows composer due to Php_openssl extension missing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.