Server: FreeBsd 6.0 , php4, mysql, apache
Drupal: 4.7.4
Installing for php4-curl-4.4.1_3
===> php4-curl-4.4.1_3 depends on file: /usr/local/include/php/main/php.h - found
===> php4-curl-4.4.1_3 depends on shared library: curl.3 - found
===> Generating temporary packing list
===> Checking if ftp/php4-curl already installed
===> Registering installation for php4-curl-4.4.1_3
The following line has been added to your /usr/local/etc/php/extensions.ini
configuration file to automatically load the installed extension:
extension=curl.so
find / -name curl
/usr/local/bin/curl
/usr/local/share/doc/curl
/usr/local/share/curl
/usr/local/include/php/ext/curl
/usr/local/include/curl
/usr/ports/ftp/curl
/var/db/ports/curl
Test curl from the command line: curl http://www.netscape.com/ (curl fetchs page, no errors)
Installation double checked, all modules were disabled and deleted and then replaced with 1.3, re-enabled and I still get the error "cURL module for PHP is not available".
Node-template has been setup and one "story" template for testing is also setup. When I select "leech data now" I get no errors but the page only has:
- Source URL
- Last checked
- Time until next refresh
For some reason leech can't find curl. If you need any more info, feel free to ask.
Thanks
-
Comments
Comment #1
Ian Ward commentedHi,
When you add the url you're aggregating to the node, does it dynamically then drop down, having gathered more info from the site where the feed is from? This is on a node/add form when you're adding a new feed URL.
Ian
Comment #2
gonefishing commentedNo.
Create content, story,
Leech URL:
- Add feed url
Frequency: 3 hours
Additional options (clicking this tab doesn't show any "Additional options")
If this is the point your are asking about, "does it dynamically then drop down, having gathered more info from the site where the feed is from?", then the answer is no.
Preview:
- Title
Source URL (no url shown)
Last checked never
Time until next refresh never
Submit:
- Title
-Tabs (View) (edit) (Template)
Source URL http://www.feedsource
Last checked 1 sec ago
Time until next refresh 2 hours 59 min left
leech data now (If I use "leech data now", I don't get the feed either)
This is a fresh drupal install. The only modules enabled are the default ones, leech and node_template.
Comment #3
funana commentedI have a similar effect. cURL is installed and works most of the time, but sometimes leech shows up the "cURL module not availible" after a leech process.
Fresh 4.7.5 install.
Comment #4
gonefishing commentedfunana,
Can you let us know about the server.
- operating system ?
- version of php ?
- apache ?
Comment #5
funana commentedLinux, Apache httpd 1.3.27, PHP 4.4.4
Comment #6
alex_b commentedWe had problems once with cURL installed as "shared" - please excuse that I cannot describe this more accurate, I haven't been sitting at the steering wheel then - Development Seed - do you know more about that?
Comment #7
gonefishing commentedLet me know if there are any command line queries you would like to see the output of.
Comment #8
Ian Ward commentedOn your server, is curl extension installed as shared or directly compiled into PHP? http://www.php.net/dl can be used to load it if it's not directly compiled, though I have not tried doing this but could be the problem. We've only used it on servers w/ curl directly compilied into PHP.
Let me know what you end up doing,
Ian
Comment #9
gonefishing commentedThe curl extension is installed as a shared module and it's being loaded by extensions.ini (/usr/local/etc/php/extensions.ini) . For some reason Leech/Drupal wasn't able to locate curl.
I solved the problem by editing the php.ini to load curl:
extension=curl.so
Ian, thanks for the link. It start me looking for other ways to load the shared module.
For me the problem has been solved. I hope this helps anyone who encounters the same error.
Brian
Comment #10
aron novakIf the module don't find cURL you should check the following:
http://php.net/manual/en/ref.curl.php - installation section
The module only checks if the function_exists('curl_init') gives TRUE. If yes, cURL is considered okay.