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"