• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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