Scheduled Task on Plesk 8.1 Windows

Getting scheduled tasks to run on Plesk 8.1 for Windows can be a little tricky. The manual is not very helpful and I was not able to find much help on the rest of the Internet.

Luckily, I was able to get this working through trail and error.

Step 1: Log in to the Plesk admin area and click on the domain you want to run the scheduled task for. Click on the icon for scheduled tasks.

Step 2: Add a new task. You’ll need to make sure php-cgi is enabled for your domain as well.  For the “path to executable file” you’ll put:  “c:\program files\path to plesk\php-cgi.exe”.
The argument will be the full path to your php file you would like to run. It might look something like this: “c:\inetpub\vhosts\mydomain\httpdocs\cron\mytask.php”.

Pick a time for your task to run and let the WIN roll in!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>