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

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

    First Login to your server and check the PHP version which is installed on your server.

    And then run the following commands:

    sudo apt-get install php7.2-curl
    
    sudo service apache2 restart
    

    Replace the PHP version ( php7.2 ), with your PHP version.

提交回复
热议问题