My problem is when I create a new Symfony 3.4 project with Composer.
I will enter the following command:
composer create-project symfony/website-skeleton projectName
When composer begins to create the project it will give me the following warnings:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_openssl' (tried: C:\\php\\ext\\php_openssl (The specified module could not be found. ), C:\\php\\ext\\php_php_openssl.dll (The specified module could not be found. )) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'php_openssl' (tried: C:\\php\\ext\\php_openssl (The specified module could not be found. ), C:\\php\\ext\\php_php_openssl.dll (The specified module could not be found. )) in Unknown on line 0
[Composer\\Exception\\NoSslException] The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true.
From my understanding, SSL is encryption for websites. At a judgment, I think the problem is composer cannot download Symfony securely.By telling me to try disabling TLS I think means trying to download Symfony insecurely since TLS is another form of encryption.
I have never had this problem with Composer before, I can not think of anything I have changed for this problem to occur.
If anyone has come across this problem or knows of any solutions that would be greatly appreciated because I cannot work on existing projects because of this.
EDIT: The file path it is looking down is incorrect, it should check down "C:\\wamp\\bin\\php\\php7.2.1\\ext" and not "C:\\php\\ext\\" as this file path does not exist. I am unsure how to adjust this.
php.ini
extension=php_openssl.dll
by removing the semicolon at the beginning. Locate your php.ini and adjust extension_dir according to your needs. You can find more info here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.