I am trying to install a package into my symfony 6.1 application, and when i run the command composer require sensio/framework-extra-bundle
I get this error message
[RuntimeException] You must enable the openssl extension in your php.ini
to load information from https://...
I tried to enable the openssl extension at the php.ini file but i cant find the (extension=php_openssl.dll) line, i only find this (extension=openssl) and it's alredy uncommented.
For the php version it's PHP 8.1.8
(ask me for any additionnal informations)
If someone could help me to find a solution and thank you very much for your time:)
On Windows (because of.dll)?
try full path to the php ext folder instead of only extension=openssl (without extension)
eg:
extension=C:\Dev\php-8.1.8\ext\php_openssl
The symfony profile phpinfo, where you should be able to see, if your PHP configuration really runs openssl
try the following url
http://{local server address, eg localhost:8001}/_profiler/phpinfo
where you may change the beginning of the link to your environment
outside symfony you may create an empty file eg phpinfo.php
with the content
<?php
phpinfo();
your post lacks of information on your environment. How did you setup your developement environement.
As offtopic suggestion and to avoid this issue in the future you may have a look at docker, there you can setup a standardized environement, eg https://github.com/ger86/symfony-docker
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.