如何在Ubuntu 16.04中安装php-curl

Ubuntu 16.04安装后升级到并面临问题PHP5

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install php5.5 # for PHP 5.5

尝试安装php-curl,但无法正常工作。

sudo apt-get install php5-curl

错误:E:无法找到软件包php5-curl

回答:

  • PHP 7.4: sudo apt-get install php7.4-curl
  • PHP 7.3: sudo apt-get install php7.3-curl
  • PHP 7.2: sudo apt-get install php7.2-curl
  • PHP 7.1: sudo apt-get install php7.1-curl
  • PHP 7.0: sudo apt-get install php7.0-curl
  • PHP 5.6: sudo apt-get install php5.6-curl
  • PHP 5.5: sudo apt-get install php5.5-curl

以上是 如何在Ubuntu 16.04中安装php-curl 的全部内容, 来源链接: utcz.com/qa/400794.html

回到顶部