php5-curl wird nicht auf Ubuntu 14.04 installiert

881
Daz

Ich habe das unten ausgeführt

sudo apt-get install php5-curl 

Ergebnis war

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# 

Aber wenn ich den Befehl php -m versuche, werden nur die folgenden Module angezeigt. Helfen Sie mir dabei

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 
2
Haben Sie Apache anschließend mit "Service Apache2 Restart" neu gestartet? Schauen Sie sich das an: https://www.digitalocean.com/community/questions/curl-is-not-installed-in-your-php-installation Mikael Kjær vor 7 Jahren 0
Ja, habe ich. root @ digin-demo-app: / var / www / html # service apache2 restart * Neustart des Webservers apache2 [Mi Aug 10 10: 28: 18.833168 2016] [so: warn] [pid 21270] AH01574: Modul php5_module ist bereits vorhanden geladen, überspringen [OK] root @ digin-demo-app: / var / www / html # ` Daz vor 7 Jahren 0

1 Antwort auf die Frage

1
Oleg Bolden

Aktivieren Sie das PHP-Modul mit diesem Befehl:

sudo php5enmod curl 

Und starte deinen Apache neu:

sudo service apache2 restart