search

Home  >  Q&A  >  body text

php - How to install curl extension under Ubuntu

PHP version is 7.1, installed by apt-get, not compiled and installed.

世界只因有你世界只因有你2767 days ago435

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:17:47

    System level:
    sudo apt-get install curl

    If you want to express the installation of PHP CURL extension, then it is as follows

    sudo apt-get install php7.1-curl

    It is best to search sudo apt-cache search 7 first, and you can see the ones starting with 7.0 and 7.1. Just choose the one that matches your own PHP version.

    reply
    0
  • Cancelreply