How do I install the ext-curl extension with PHP 7?

后端 未结 12 759
终归单人心
终归单人心 2020-11-29 17:37

I\'ve installed PHP 7 using this repo, but when I try to run composer install, it\'s giving this error:

  • [package] requires ext-cu
12条回答
  •  半阙折子戏
    2020-11-29 18:05

    If "sudo apt-get install php-curl" command doesnt work and display error We should run this code before install curl.

    • step1 - sudo add-apt-repository ppa:ondrej/php
    • step2 - sudo apt-get update
    • step3 - sudo apt-get install php-curl
    • step4 - sudo service apache2 restart

提交回复
热议问题