From Sit
Jump to: navigation, search

Configuring the auto.php with Windows Scheduler

Start up Scheduler from the Control Panel.

Double click on the Add Scheduled Task

Fig. Scheduler 1.

Just click next on the Scheduler wizard introduction page.

Fig. Scheduler 2.

Choose a program to add to the scheduled task. Since PHP isn't in the list, click on Browse...

Fig. Scheduler 3.

Navigate into C:\PHP, click on php.exe and click on Open

Fig. Scheduler 4.

Type in an appropriate name for the scheduled task, click on Daily, actually any will do since we are going to change this later. Click Next

Fig. Scheduler 5.

We are going to change these aswell later, just click Next

Fig. Scheduler 6.

Type in the username and password, for which this task is going to run.

Fig. Scheduler 12.

Check the Open avanced properties... checkbox, and click Finish

Fig. Scheduler 7.

  • For the Apache installation add the following text in the fields (remember the double quotes):
    • Run: C:\php\php.exe "C:\Program Files\Apache Software Foundation\htdocs\auto.php".
    • Start in: "C:\Program Files\Apache Software Foundation\htdocs\".
Fig. Scheduler 8-Apache.

  • For the IIS installation add the following text in the fields:
    • Run: C:\php\php.exe C:\InetPub\wwwroot\auto.php.
    • Start in: C:\InetPub\wwwroot\.
Fig. Scheduler 8-IIS.

  • Click the Apply button.
  • Click Schedule and then
  • Click the Advanced button
Fig. Scheduler 9.

  • Check the Repeat task checkbox
  • Set it to repeat to a repeatable time of your choice, the auto.php triggers a download of mails, activates triggers and is SiT's own scheduler. Recommended is every minute. If you are in doubt, set to 1 minute.
  • Click OK a few times to finish editing the scheduled task.
Fig. Scheduler 10.

In the main screen, validate that the schedule is set acordingly to your choice.

Fig. Scheduler 11.
Personal tools