Einige PHP-Scripts nutzen cURL (libcurl). Ist dies nicht installiert, erscheint die Fehlermeldung „Call to undefined function curl_init() in…“. Mit
1
| dpkg -l "*php5*" | grep ^ii |
dpkg -l "*php5*" | grep ^ii
oder
1
| dpkg -l "*php4*" | grep ^ii |
dpkg -l "*php4*" | grep ^ii
ist es möglich zu überprüfen ob cURL installiert ist:
1
2
3
4
5
6
7
| dpkg -l "*php5*" | grep ^ii
ii libapache2-mod-php5 5.2.6.dfsg.1-1+lenny4 server-side, HTML-embedded scripting language (Apache 2 module)
ii php5 5.2.6.dfsg.1-1+lenny4 server-side, HTML-embedded scripting language (metapackage)
ii php5-common 5.2.6.dfsg.1-1+lenny4 Common files for packages built from the php5 source
ii php5-curl 5.2.6.dfsg.1-1+lenny4 CURL module for php5
ii php5-gd 5.2.6.dfsg.1-1+lenny4 GD module for php5
ii php5-mysql 5.2.6.dfsg.1-1+lenny4 MySQL module for php5 |
dpkg -l "*php5*" | grep ^ii
ii libapache2-mod-php5 5.2.6.dfsg.1-1+lenny4 server-side, HTML-embedded scripting language (Apache 2 module)
ii php5 5.2.6.dfsg.1-1+lenny4 server-side, HTML-embedded scripting language (metapackage)
ii php5-common 5.2.6.dfsg.1-1+lenny4 Common files for packages built from the php5 source
ii php5-curl 5.2.6.dfsg.1-1+lenny4 CURL module for php5
ii php5-gd 5.2.6.dfsg.1-1+lenny4 GD module for php5
ii php5-mysql 5.2.6.dfsg.1-1+lenny4 MySQL module for php5
cURL kann man mit
1
| apt-get install php5-curl |
apt-get install php5-curl
nachinstalliert werden. Danach muss noch der Webserver neu gestartet werden.
Neueste Kommentare