Jump to content

Cron.php Under Plesk 10


Dam0

Recommended Posts

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"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated