My phpinfo() page shows that cURL is enabled but I can't seem to enable it in drupal. Do I have to reinstall drupal or configure something in apache for drupal to see the cURL plugin? Thanks in advance for serious replies!

SOLVED

I had the wrong rewritebase in my apache configuration files.

Comments

Phillip Mc’s picture

What do you mean when you say "enable it in drupal"? is there a specific module you're using?

To test if CURL is working, I use this simple snippet which grabs the drupal.com home page. Just go to CREATE CONTENT -> ADD PAGE (with the PHP input filter option enabled) and paste this into your main body area.

<?php
//the site or URL to get
$ch = curl_init("http://www.drupal.com/");
//set the options for the transfer
curl_setopt($ch, CURLOPT_HEADER, 0);
//execute the session
curl_exec($ch);
//free up system resources !!IMPORTANT
curl_close($ch);
?>

if there is a specific module that uses CURL but can't "see it", check to see if the settings page has an option to enter the specific PATH on your server

marcvangend’s picture

AFAIK, if phpinfo() can 'see' curl, scripts (including Drupal modules) should be able to use it. What makes you say that curl can't be seen by drupal? Do you get error messages? Did you check the Apache error log?

nuvious’s picture

Basically I can't enable curl from the admin menus and gives me the standard 'curl isn't enabled on this server'. The phpinfo page has a section for cURL and lists it as enabled. If php has curl enabled, is there any reason drupal wouldn't be able to find it?