Dam0 Posted March 16, 2011 Share Posted March 16, 2011 I'm having a nightmare trying to get Cron.php to run as a scheduled task via Plesk 10 / Windows Task Scheduler. (2008 Server) I hope someone can offer assistance. Firstly, Plesk's own scheduled jobs work fine. There isn't an issue with Plesk and scheduled jobs, or the execution of applications via task manager. The issue I have is executing the cron.php file from within the file system. If I execute Cron.php via HTTP GET, (by callling it via a web browser) this works fine and the action log shows the process was run. No matter what I do with task manager, I can' get it to run via the OS. No errors are reported in event viewer or within WHMCS. If I manually run cron.php via the command line (via plesk run task & PHP) I don't get an error either. Program / Script: C:\Windows\system32\cmd.exe Arguments: /c "C:\Parallels\Plesk\admin\bin\runtask.exe" "--mail=admin@xxx.co.uk" "--application=C:\Parallels\Plesk\admin\bin\php.exe" "--parameters=-q C:\inetpub\vhosts\xxxxxx\httpdocs\portal\admin\cron.php" 0 Quote Link to comment Share on other sites More sharing options...
Dam0 Posted March 16, 2011 Author Share Posted March 16, 2011 BTW, that space in "cron.php" is a issue with this message board. It's not present in my system nor when I attempt to edit the original message. 0 Quote Link to comment Share on other sites More sharing options...
Dam0 Posted March 17, 2011 Author Share Posted March 17, 2011 no matter, resolved by using a tool called zcron rather than plesk / task scheduler. 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.