Home  >  Q&A  >  body text

Error from Composer: "You must enable openssl extension" [duplicate]

I use XAMPP server and I use php version 8.0.0

I tried to create a Laravel project but I got this error:

In ComposerRepository.php line 1155:

You must enable the openssl extension in your php.ini to load information from https://repo.packagist.org


P粉729436537P粉729436537484 days ago501

reply all(1)I'll reply

  • P粉464208937

    P粉4642089372023-07-18 09:36:30

    要解决这个错误,您需要打开php.ini文件并将分号删除,使其变为:

    ;extension=php_openssl.dll

    如果您的php.ini文件中没有这行,检查您是否有该文件(C:\xampp\php\ext),并在"Dynamic Extensions"部分中添加以下内容:

    extension=php_openssl.dll


    reply
    0
  • Cancelreply