PayPal WPP requires the PHP cURL library. (Currently using cURL Not found)

Bug #428650 reported by ispyisail
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
drupal6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: drupal6

http://drupal.org/node/511064

On Ubuntu server 9.04 install

sudo apt-get install drupal6
sudo /etc/init.d/apache2 restart

Then install "ubercart" module
Then install "token" module

Then enable "ubercart core"

Then enable ubercart-payment "paypal"

error
"PayPal WPP requires the PHP cURL library. (Currently using cURL Not found)"

Revision history for this message
Scott Testerman (scott-testerman) wrote :

Although the module in question is not provided by Ubuntu, I was able to confirm this problem. It does not appear to be a problem with the Drupal6 package; rather, it appears to be a problem with the php5-curl installation.

Simply running
* sudo dpkg-reconfigure php5-curl
* sudo /etc/init.d/apache2 restart
will fix the problem.

Perhaps the installation scripts are missing something? Seems like an easy fix.

affects: drupal6 (Ubuntu) → php5 (Ubuntu)
Changed in php5 (Ubuntu):
status: New → Confirmed
Revision history for this message
Ondřej Surý (ondrej) wrote :

You don't have to reconfigure.

Just restart apache, so new configuration with enabled cURL is read.

But I guess we should print out something like:

Run '/etc/init.d/apache2 restart' to activate new configuration!

after installation.

Changed in php5 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Scott Testerman (scott-testerman) wrote :

The Drupal6 postinst already performs the restart as part of the package install:

servers="apache2"
                . /usr/share/wwwconfig-common/restart.sh

For the record, the Drupal5 postinst does the same thing, although I'm not certain if the external module is smart enough to detect the php5-curl failure there.

The restart is required because otherwise the Drupal site won't show up on a fresh install.

In my testing, restarting Apache is not enough to force recognition of php5-curl. Not even rebooting will force that. It is necessary to dpkg-reconfigure, followed by an Apache restart. No idea why this is so.

Changed in php5 (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

Then I think this is a problem with drupal then.

Regards
chuck

affects: php5 (Ubuntu) → drupal6 (Ubuntu)
Revision history for this message
Ondřej Surý (ondrej) wrote :

Scott, I have tried installing libapache2-mod-php5 (in clear chroot), starting apache2, then installing php5-curl, and everything looks OK.

It must be some brokeness in your local setup. If you can reproduce this problem, please do fill separate bug and save your broken /etc/php5 before running dpkg-reconfigure.

Chuck, it's not drupal problem either. Original reporter complains about his unability to install php5-curl, when using some custom module.

Revision history for this message
ispyisail (freesco) wrote :

It appears that rebooting the server also fixes the problem?

I think there should be a better solution but I'm not sure how?

Thanks

Revision history for this message
Miles Dunn (miles-dalesbyte) wrote :

I hit this problem using drupal localhost on Ubuntu 9.04. Tried reconfiguring php5-curl, but system could not find it. Used Synaptic to install php5-curl, then followed advice above:
* sudo dpkg-reconfigure php5-curl
* sudo /etc/init.d/apache2 restart

and the problem was solved.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.