feliped2 Posted April 5, 2008 Share Posted April 5, 2008 Hi, I have this to my cron job run (every day, at 00h30 AM): 30 0 * * * lynx -dump http://mysite.com/whmcs/admin/cron.php >/dev/null 2>&1 FIRST ISSUE: This not working, i need always to run manually. SECOND ISSUE: When we run manually, we get some errors, time out. Please see this SYSTEM ACTIVITY LOG: Cron Job: Suspend Failed (Hosting ID: 0000000315 - User ID: 0000000324 - Error: Curl Error - Operation timed out after 150000 milliseconds with 7855 bytes received (28)) 1) How we can increase the time limit on Curl?? 2) Why this is not working automactly?? Thank you! 0 Quote Link to comment Share on other sites More sharing options...
dsaunier Posted April 5, 2008 Share Posted April 5, 2008 Are you on a dedicated machine ie does it also host other websites you do not control? Can you fine-tune the server as you want and is that cronjob launched from the same machine that hosts it ? PHP params such as php.ini could let you increase the amount of time a script is allowed to run. However seeing why it does not do its job in the allocated time is also important. 0 Quote Link to comment Share on other sites More sharing options...
feliped2 Posted April 11, 2008 Author Share Posted April 11, 2008 Yes, i'm under a dedicated machine... But we get "500 Internal Server Error", if run under lynx or browser 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted April 17, 2008 Share Posted April 17, 2008 # you want to run it as php {path} not lynx {path} # if you're getting timeouts with the curl, then you really need to be looking to either upgrade the server its connecting to, to one not so massively overloaded, or get it with a decent provider thats not got such appalling transit ~3mins to suspend a site is *NOT* normal 0 Quote Link to comment Share on other sites More sharing options...
bin_asc Posted April 17, 2008 Share Posted April 17, 2008 Some hosts chmod lynx to protect it from being used ( except root of course ). What do you have in whmcs ? hosting ? servers ? Just trying to get a sence of what you have. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.