Darylt Posted May 7, 2010 Share Posted May 7, 2010 Has anyone managed to successfully setup Cron jobs for WHMCS on Heart Internet? I have tried various things but cant seem to get it to run. 0 Quote Link to comment Share on other sites More sharing options...
Darylt Posted May 7, 2010 Author Share Posted May 7, 2010 (edited) When I use usr/bin/php5/home/sites/mydomain.com/public_html/whmcs/pipe/pop.php/ I get the error "No such file or directory" When I use /home/sites/mydomain.com/public_html/whmcs/pipe/pop.php/ I get the error "access denied" Heart Internet Cron page says.... Please note the following common problems you may experience when setting up a scheduled task: * Please make sure you enter a valid date for your tasks. * The file permissions for the script are set correctly, 711 or 755. * If the scheduled program includes code from a scripting language, the path for the interpreter must be specified before the script. For example, /usr/bin/perl (Perl), /usr/bin/php (PHP 4) or /usr/bin/php5 (PHP 5) * If the script being run is adapted from a CGI script, ensure the first line of the script is a 'shebang' line containing the correct interpreter path - as above - (for example #!/usr/bin/perl). I have also tried; #!/usr/bin/php5/home/sites/mydomain.com/public_html/whmcs/pipe/pop.php/ but get the following error when I test it; Your script returned the following:Can't find '#!/usr/bin/php5/home/sites/mydomain.com/public_html/whmcs/pipe/pop.php/'. Check that you have the correct location. Can anyone see where I am going wrong? Edited May 7, 2010 by Darylt 0 Quote Link to comment Share on other sites More sharing options...
scurrell Posted May 7, 2010 Share Posted May 7, 2010 You need a space between the interpreter path and the script path. That may not be the full answer though.... 0 Quote Link to comment Share on other sites More sharing options...
Darylt Posted May 7, 2010 Author Share Posted May 7, 2010 We are getting there!! For; /usr/bin/php5 /home/sites/mydomain.com/public_html/whmcs/pipe/pop.php/ I am getting Your script returned the following:Status: 404 Not Found X-Powered-By: PHP/5.2.12 Content-type: text/html No input file specified. For; /usr/bin/php5 /home/sites/mydomain.com/public_html/whmcs/admin/cron.php I am getting Your script returned the following:X-Powered-By: PHP/5.2.12 Set-Cookie: PHPSESSID=a04oe5uene5ngcg2e9s0qb0bk2; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: text/html; charset=utf-8 0 Quote Link to comment Share on other sites More sharing options...
kingabs Posted September 23, 2010 Share Posted September 23, 2010 We are getting there!! For; /usr/bin/php5 /home/sites/mydomain.com/public_html/whmcs/pipe/pop.php/ I am getting For; /usr/bin/php5 /home/sites/mydomain.com/public_html/whmcs/admin/cron.php I am getting Did you get this sorted in the end? 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.