Can anyone tell me how I enable the curl extension on my Bubba2? I can get as far as my /usr/ directory but I'm not sure where to go from there.
Many thanks Keith
Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
cURL extension
Re: cURL extension
Hi KeithH,
Please be a little more specific.
What is it exactly you are trying to do?
There is curl, libcurl, and then many packages to make them interact with other stuff...
Cheers,
Cheeseboy
Please be a little more specific.
What is it exactly you are trying to do?
There is curl, libcurl, and then many packages to make them interact with other stuff...
Code: Select all
niklas@bubba2:~$ aptitude search curl
p curl - Get a file from an HTTP, HTTPS or FTP server
v curl-ssl -
p curlftpfs - filesystem to access FTP hosts based on FUSE and cURL
p gambas-gb-net-curl - The Gambas advanced networking component
v libcurl-dev -
p libcurl-ocaml - ocaml curl bindings
p libcurl-ocaml-dev - ocaml libcurl bindings
v libcurl-ssl-dev -
i libcurl3 - Multi-protocol file transfer library (OpenSSL)
p libcurl3-dbg - libcurl compiled with debug symbols
p libcurl3-dev - Transitional package to libcurl3-openssl-dev
i libcurl3-gnutls - Multi-protocol file transfer library (GnuTLS)
p libcurl3-gnutls-dev - Development files and documentation for libcurl
p libcurl3-openssl-dev - Development files and documentation for libcurl
v libcurl4-dbg -
v libcurl4-dev -
p libcurl4-gnutls-dev - Development files and documentation for libcurl (GnuT
i libcurl4-openssl-dev - Development files and documentation for libcurl (Open
p liblua5.1-curl-dev - libcURL development files for the lua language versio
p liblua5.1-curl0 - libcURL bindings for the lua language version 5.1
p libwww-curl-perl - Perl bindings to libcurl
p php4-curl - CURL module for php4
p php5-curl - CURL module for php5
p python-pycurl - Python bindings to libcurl
v python2.3-pycurl -
v python2.4-pycurl -
p slang-curl - transfer files using HTTP and FTP from S-Lang
p spl-curl - SPL Programming Language -- curl adapter
p tclcurl - Tcl bindings to libcurl
p xmms2-plugin-curl - XMMS2 - curl transport for HTTP
Cheeseboy
Re: cURL extension
Hi Cheeseboy,
Yes it's me again. I've found another problem with placing fan page on facebook. When I call the php directly this is the report I get.
Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.' in /home/web/FB2/admin/facebook.php:4 Stack trace: #0 /home/web/FB2/fanpage.php(3): require() #1 {main} thrown in /home/web/FB2/admin/facebook.php on line 4
Be really grateful if you can point me to the correct line to use.
Keith
Yes it's me again. I've found another problem with placing fan page on facebook. When I call the php directly this is the report I get.
Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.' in /home/web/FB2/admin/facebook.php:4 Stack trace: #0 /home/web/FB2/fanpage.php(3): require() #1 {main} thrown in /home/web/FB2/admin/facebook.php on line 4
Be really grateful if you can point me to the correct line to use.
Keith
Re: cURL extension
Hi Keith,
As you know, I have no experience of your setup, but I would try:
Cheers,
Cheeseboy
As you know, I have no experience of your setup, but I would try:
Code: Select all
# apt-get install php5-curl
Cheeseboy
Re: cURL extension
Hi Cheesboy,
I only have one program on my bubba, that's this Fan Page program to make landing pages on my facebook. So I don't really have a setup using my fixed IP for access.
Anyway I have installed the curl as surgested, but I still get the same result as my previous post. I've also placed a simple test php file in the www folder I found on the net to test for the curl to see if its actualy there.
<?php
## Test if cURL is working ##
echo '<pre>';
var_dump(curl_version());
echo '</pre>';
?>
This came up with the following
Fatal error: Call to undefined function curl_version() in /home/web/testcurl.php on line 5
Does this mean I've not loaded it properly? Putty reported it had, and I rebooted the Bubba just in case it needed that.
Keith
I only have one program on my bubba, that's this Fan Page program to make landing pages on my facebook. So I don't really have a setup using my fixed IP for access.
Anyway I have installed the curl as surgested, but I still get the same result as my previous post. I've also placed a simple test php file in the www folder I found on the net to test for the curl to see if its actualy there.
<?php
## Test if cURL is working ##
echo '<pre>';
var_dump(curl_version());
echo '</pre>';
?>
This came up with the following
Fatal error: Call to undefined function curl_version() in /home/web/testcurl.php on line 5
Does this mean I've not loaded it properly? Putty reported it had, and I rebooted the Bubba just in case it needed that.
Keith
Re: cURL extension
Hi Keith,
I don't know much about php, and I don't like it (same goes for much of the web-shite).
Hence your problem has gone out of my scope, and has to be answered by someone else.
Sorry...
Cheeseboy
I don't know much about php, and I don't like it (same goes for much of the web-shite).
Hence your problem has gone out of my scope, and has to be answered by someone else.
Sorry...
Cheeseboy
Re: cURL extension
Hello Keith,
Because the SAPI handling in the original php5 packages where too limited (we have different configuration for the apache5 and the fastcgi sapi), we decided to change the behavior in our packages; Though other upstream debian package will not adhere to this change, and will only install a "global" sapi configuration; What you need to do is under /etc/php5 enable the curl extension manually for the apache5 sapi; i.e.
Because the SAPI handling in the original php5 packages where too limited (we have different configuration for the apache5 and the fastcgi sapi), we decided to change the behavior in our packages; Though other upstream debian package will not adhere to this change, and will only install a "global" sapi configuration; What you need to do is under /etc/php5 enable the curl extension manually for the apache5 sapi; i.e.
Code: Select all
cp /etc/php5/conf.d/curl.ini /etc/php5/apache2/conf.d/curl.ini
Re: cURL extension
Can you tell me what the extention should be placed after the cURL.ini file to make cURL active for http or a PHP program in the www folder