• 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.

How to schedule a PHP script?

D

dubbelepunt

Guest
Hi,

I want to run a PHP script with Scheduler, which should be possible according to the Plesk manual. When I call this script in the Scheduler commandline, it will not run.

I found out that I should call php.exe with the -f option (is that right? :confused: ), to execute the script that way... BUT, I need to know the path to php.exe, and it doesn't seem to be at C:\PHP or C:\Program files\PHP...

I'd like to know what exactly is the right way to call the script, and where to find php.exe

Thanks!
 
chance is permissions wouldnt allow it anyway. ask your host for help
 
but what is the right way to call the script?
I'd like to be sure I don't make any mistakes before I ask my host :)
 
if is a plesk 7.0 install it's likely off of the Plesk incantation...

c:\program files\swsoft\plesk\php\

or c:\plesk\php\

or depends on where the installation root of Plesk is...

-T42
 
Thanks! PHP is located in c:\program files\swsoft\plesk\php\ indeed, works like a charm :)
 
Hi all (my first post in the forum).
I add this tip:
The php executable founded in "Program Files\SWsoft\Plesk\Additional\Php\" too

If you need to pass parameters to the script try this as ARGUMENTS of the Exectutable file:

c:\Inetpub\vhosts\yourdomain.com\httpdocs\script.php param1=Param+Number+One+value param2=Param+Number+Two+value

Dont use & or ?, use spaces instead.

Sorry for my bad english too :)
Regards
 
Back
Top