cURL & php-cron isn't working now

Status
Not open for further replies.

gauravkumar

New Member
Messages
6
Reaction score
0
Points
0
Dear Sir/Madam

I have a PHP script that uses cURL and fopen. It used to work fine but all of a sudden it displays error regarding fatal call to curl_init() function. I didn't changed PHP Configuration recently. Also my cron-jobs are not there and the cron page displays the following
/usr/bin/crontab permissions are wrong. Please set to 4755
Also in the email that I get from cron-jobs' output, it is written that php-cron: Command not found. I used php-cron in my cron-jobs.
I have now applied for upgradation of PHP Configuration to v2. But the scripts used to work before.

Kindly help as soon as possible.

Thank You
Regards,
Gaurav Kumar
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
The cron error should now be fixed in ALL the servers. We'll look into the curl error.
 

gauravkumar

New Member
Messages
6
Reaction score
0
Points
0
Thank You very much.
cron error is fixed now. As i mentioned in the previous post, I applied for PHP configuration Upgrade. The upgrade was successful and now curl works fine.
Thank You again for your quick response.
Regards,
Gaurav Kumar
Edit:
Hello
cron jobs are now running at the specified intervals but the output still says "php-cron: Command not found".
Please help. Is there any other way to run php scripts at the specified time.

Thank You
Regards,
Gaurav Kumar
 
Last edited:

gauravkumar

New Member
Messages
6
Reaction score
0
Points
0
Hello
Earlier the email said /bin/sh: php-cron: No such file or directory
And now it is saying /bin/sh: /usr/bin/php-cron: No such file or directory
Please help
 

gauravkumar

New Member
Messages
6
Reaction score
0
Points
0
Hello
Please somebody help.
Finally by using
php /home/user_name/public_html/script.php
I was able to run the script but the output of the script says
Fatal call to curl_init()
I have already upgraded my PHP Configuration to v2
Its pretty surprising. When I visit the particular script via a browser it works perfectly fine but when it gets executed automatically through cron jobs it outputs as Fatal call...
Please help
Thanx in advance
 
Last edited:
Status
Not open for further replies.
Top