LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cURL library support (https://www.linuxquestions.org/questions/linux-newbie-8/curl-library-support-4175410915/)

conflicker 06-11-2012 03:32 PM

cURL library support
 
Hi everybody I'm working with skipjack integration, and found some class to work with their api.

The scripts requires cURL library support. Command-line cURL should be working, I don't understand cause when I ran phpinfo in my server, it says the curl is enabled.

The script says
Quote:

Cannot locate cURL binary on your system which is executable by the web-server
So I'm thinking that it might talking another cURL. Any idea?

Kustom42 06-11-2012 03:50 PM

Could be two possible things here, its trying to run through php with something like the curl_exec function or what it looks like here is that the app is actually trying to run the curl binary manually which should be at /usr/bin/curl.

So first thing to do is to verify you have curl installed:
Code:

rpm -qa | grep -i curl
It should show you something like "curl-7" with a bunch of revision numbers after that. If you don't have it installed use your package manager to install it.

Code:

yum install curl -y
If it shows as installed run:
Code:

ls -l /usr/bin/curl
Verify that it shows as readable & executable for the third set of permissions.

conflicker 06-12-2012 08:45 AM

Quote:

Originally Posted by Kustom42 (Post 4700922)
Could be two possible things here, its trying to run through php with something like the curl_exec function or what it looks like here is that the app is actually trying to run the curl binary manually which should be at /usr/bin/curl.

So first thing to do is to verify you have curl installed:
Code:

rpm -qa | grep -i curl
It should show you something like "curl-7" with a bunch of revision numbers after that. If you don't have it installed use your package manager to install it.

Code:

yum install curl -y
If it shows as installed run:
Code:

ls -l /usr/bin/curl
Verify that it shows as readable & executable for the third set of permissions.

It seems that I have curl installed on my server and when I run
Code:

ls -l /usr/bin/curl
it says
Code:

-rwxr-xr-x. 1 root root 114956 Mar 28 06:22 /usr/bin/curl*
does it shows the curl is readable & executable?

conflicker 06-12-2012 01:35 PM

Quote:

Originally Posted by conflicker (Post 4701458)
It seems that I have curl installed on my server and when I run
Code:

ls -l /usr/bin/curl
it says
Code:

-rwxr-xr-x. 1 root root 114956 Mar 28 06:22 /usr/bin/curl*
does it shows the curl is readable & executable?

Thanks, exec function is now working I just missed the curl path.


All times are GMT -5. The time now is 11:20 AM.