• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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