curl-and-php
Re: Linux Curl PHP problem
Date: Wed, 22 Jul 2009 18:03:33 +0100
Hi Etienne
the following is what I have done so far:
in "/home/installd/buildapache/php-4.4.7" directory where the folder "curl"
exists under "ext"
I issued the command in this dir
./configure --enable-curl --with-curl
then:
make (does this rebuild/recompile php? as i think it does.)
then
make install
and restarted the httpd server.
curl then worked via the command prompt!
then i have tried looking for the *.so files (according to that read so far)
in the extensions directory and in:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429
/usr/local/lib/php/extensions/
/usr/local/lib/php/
but they do not exist?
another apeared though
/usr/local/lib/php/libcurl.so (it has an arrow on the file "bit like a
shortcut icon")
my php *.ini file is located in
/usr/local/lib/php/
the ini extensions dir points to
/usr/local/lib/php/extensions/no-debug-non-zts-20020429
I have also tried uncommented variations if extensions in the ini file like
extension=curl.so
even although i cannot actually see any *.so file/s in the directory.
restarting the httpd server every time but nothing seems to get curl to work
via the web?
Thanks
Paul
----- Original Message -----
From: "Etienne Andreoni" <etienne.sqad_at_gmail.com>
To: "curl with PHP" <curl-and-php_at_cool.haxx.se>
Sent: Wednesday, July 22, 2009 4:52 PM
Subject: Re: Linux Curl PHP problem
Hello,
I think your php is not compiled with curl extention. Did you build PHP,
or did you install a precompiled package ?
Tu show if curl is installed in php do a phpinfo() in an php file.
If not listed, you have to recompile your PHP.
DreamSight a écrit :
> Hi Mark
> thank you for your reply, i did not expect that as fast:) the
> kind of Linux is "CentOS release 5.3 (Final)" up to this point I have had
> lot's of experience with windows boxes but very little with Linux Server
> (Unix) machines, I am on a fast learning curve:)
>
> I also tried curl at the (root) command prompt and got the response:
> curl: try 'curl --help' or 'curl --manual' for more information
>
> then tried a function i.e. curl_init() and the machine went into another
> prompt waiting for input! then i exit out back to root.
>
> I am pretty sure it is installed it is just not being used as a service by
> version Apache/1.3.37, I did think it may be a permissions problem?
>
> I would appreciate any pointers and help:)
> Paul
>
>
> ----- Original Message ----- From: "Mark E" <mark_at_edwards.org>
> To: "curl with PHP" <curl-and-php_at_cool.haxx.se>
> Sent: Wednesday, July 22, 2009 2:13 AM
> Subject: Re: Linux Curl PHP problem
>
>
>>
>>
>> DreamSight wrote:
>>> Hello
>>> I have a Linux Machine
>>
>> What kind of Linux? CentOS, Ubuntu, Fedora, Slackware, Debian or ? ? ?
>>
>> Mark
>> _______________________________________________
>> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>>
>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-07-22