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

后端 未结 12 754
终归单人心
终归单人心 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:14

    Well I was able to install it by :

    sudo apt-get install php-curl
    

    on my system. This will install a dependency package, which depends on the default php version.

    After that restart apache

    sudo service apache2 restart
    

提交回复
热议问题