• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Scheduled Tasks - can it run a php file

M

murfitUK

Guest
My site is hosted on a Plesk 8.1 Windows.

Is it possible to run a .php script using the scheduled task facility?

The file is called autocat.php and is placed in the httpdocs folder. I've tried putting that filename in the first box (called something like "path to executable file") and left the arguments field blank.

If I click OK it says it performed successfully but nothing has actually happened and no email notification is sent.

The autocat.php file creates a pdf file of up to date information. If I type the actual address in a browser www....com/autocat.php it does work and the pdf file is generated.

So, is it possible to run php scripts using scheduled tasks? If so, can someone suggest how I can get it to work?

Thanks.
 
I am trying to figure that out myself. Has anyone come up with a solution?

I have it on a linux server before by doing the following through cron:

1 0 * * * /usr/bin/wget -O /dev/null -T 0 http://www.domainname.com/yourfile.php 1> /dev/null 2> /dev/null

Howevever, using Plesk 8.2, I am having a problem with it working. I think it is a permissions problem within the plesk setup that is not allowing it to work.

If plesk has been setup not to allow ssh access for clients, can they execute files that are outside of thier home directories?
 
I got it working all by myself after many hours of fiddling about. You say you are on a linux server so I don't know if this will be any good.

I put this in the "Path to executable file" box...

C:\Program Files\SWsoft\Plesk\Additional\PleskPHP5\php-cgi.exe

And then the filename in the "arguments" box...

e:\inetpub\vhosts\domainname.co.uk\httpdocs\autocat.php
(where domainname is obviously my own domain)

Maybe you can figure out what to do from this? Hope it helps.
 
Back
Top