5

I'm trying to run this script from the cron job schedule on Ubuntu Linux 10.04.1 server but i get the following out put:

enter image description here

Curl seems to be enabled on the serevr this is the extract fro the phpinfo file: enter image description here

The cron script is to clean the log files in a magento db

I have tried various things but just can't get the thing to work ? any ideas would be a great help thank you.

Ledgemonkey
  • 7,223
  • 12
  • 36
  • 56

3 Answers3

17

You mixed up the curl php-module and the system executable.

Connect to a shell and enter the following:

sudo apt-get install curl

If you don't want to install curl try to use wget.

Siddharth Satpathy
  • 2,737
  • 4
  • 29
  • 52
rekire
  • 47,260
  • 30
  • 167
  • 264
1

Well, the phpinfo() exceprt only tells you, that php is compiled with libcurl support and can use the curl functions. Try checking if curl is actually installed (the binary). If not install it and modify your cron-script to use thee full path (ususally /usr/bin/curl) of the command.

Mithrandir
  • 24,869
  • 6
  • 50
  • 66
1

You have curl extension for php installed. But NOT curl command line client.

As you are using Ubuntu install it by,

sudo aptitude install curl

After that in the cron tab use full path of the curl
Like

/usr/bin/curl
Shiplu Mokaddim
  • 56,364
  • 17
  • 141
  • 187