dsj2222222 2016-08-10 12:37
浏览 56

php5-curl没有安装在Ubuntu 14.04上

I have execute the below

sudo apt-get install php5-curl

result was

root@digin-demo-app:/var/www/html# sudo apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-curl is already the newest version.
The following packages were automatically installed and are no longer required:
  libgcrypt11-dev libgnutls-dev libgnutlsxx27 libgpg-error-dev libp11-kit-dev
  librtmp-dev libtasn1-6-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
root@digin-demo-app:/var/www/html#

But when i try php -m command it shows only below modules.Kindly help me on this

root@digin-demo-app:/var/www/html# php -m
[PHP Modules]
calendar
Core
ctype
date
ereg
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mhash
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
shmop
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
Zend OPcache
zlib

[Zend Modules]
Zend OPcache
  • 写回答

3条回答 默认 最新

  • doukao2180 2016-08-10 12:41
    关注

    Try with install required dependency

    sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
    

    after this restart apache

    sudo service apache2 restart
    or
    sudo service httpd restart
    
    评论

报告相同问题?