Jump to content
  • 0

ostatní [Help] Curl


Brunes

Dotaz

Mam nainštalovaný na VPSku curl, všetko ako má byť

v php.ini mam:

extension=curl.so

Inštalácia prebehla v poriadnu. No ale cURL mi stále nefunguje.

aj po reštarte celého vpska, apache,... stále nefunguje

 

V čom by mohla byť chyba? O.o

Ďakujem

Brunes

Link to comment
Share on other sites

Recommended Posts

  • 0

to co si vyssie napisal je s casti blbost... apt-get install curl php5-curl

/

 

 

Seriously?...

 

to som už skúšal asi 100x ... a stále to nejde.. prešiel som všetky tutoruiály...

 

Testoval som to na Debian-e aj Ubuntu. Problém bude zrejme buď v tvojom VPS alebo v medzi tvojim monitorom a stoličkou.

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 0

root@vps:~# a2enmod curl
ERROR: Module curl does not exist!
root@vps:~# a2enmod php5-curl
ERROR: Module php5-curl does not exist!
root@vps:~#

 

root@vps:~# /etc/init.d/apache2 stop
Stopping web server: apache2 ... waiting .
root@vps:~# /etc/init.d/apache2 start
Starting web server: apache2.
root@vps:~#

 

ani nič také zaujímavé

Link to comment
Share on other sites

  • 0

napis co vypise pri zapinani Apache2

 

este jedna vec, skus napisat do konzoly a2enmod curl

alebo a2enmod php5-curl

 

curl je mód pre php5 a nie pre apache takže je jasné že vypíše error.

Skontroluj si

/var/log/apache2/error.log

 

Pri najhoršom skús:

apt-get purge apache2 libapache2-mod-php5 php5 php5-curl
apt-get install apache2 libapache2-mod-php5 php5 php5-curl

Link to comment
Share on other sites

  • 0

z logu:

sh: host: not found
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php_curl.dll' - /usr/lib/php5/20090626/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0

 

nikto už nevie poradiť? :)

Link to comment
Share on other sites

  • 0

z logu:

sh: host: not found
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php_curl.dll' - /usr/lib/php5/20090626/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0

 

nikto už nevie poradiť? :)

 

Skus vyhodit z php.ini ten riadok s curl a restartovat apache

Link to comment
Share on other sites

  • 0

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php_curl.dll' - /usr/lib/php5/20090626/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0

to isté...

Link to comment
Share on other sites

  • 0

a ano da se stahnout googli ale nevim proč to píše error o dll když dll jsou knihovny pro windows

hele mrkni do /etc/php5/conf.d/curl.ini pokud to tam máš

mělo by tam být

; configuration for php CURL module
extension=curl.so

to jsem to normalně instaloval pomocí apt-get

Link to comment
Share on other sites

  • 0

/curl.ini tam tiež nemám :d

 

 

root@vps:~# apt-get install curl php5-curl libcurl3-dev

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'libcurl4-openssl-dev' instead of 'libcurl3-dev'

curl is already the newest version.

libcurl4-openssl-dev is already the newest version.

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

 

The following packages have unmet dependencies:

php5-curl : Depends: php5-common (= 5.3.3-7+squeeze15) but 5.3.14-1~dotdeb.0 is to be installed

E: Broken packages

root@vps:~# apt-get install curl

Reading package lists... Done

Building dependency tree

Reading state information... Done

curl is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 37 not upgraded.

root@vps:~#

 

 

 

toto to vypísalo keď som to znovu inštaloval

Link to comment
Share on other sites

  • 0

 

 

root@vps:~# apt-get install php5-curl curl

Reading package lists... Done

Building dependency tree

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

 

The following packages have unmet dependencies:

php5-curl : Depends: php5-common (= 5.3.3-7+squeeze15) but 5.3.14-1~dotdeb.0 is to be installed

E: Broken packages

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...