- Plesk for Linux
How to run a PHP script using a custom PHP executable in Plesk Scheduled Tasks?
To run a PHP script using a custom PHP executable in Plesk Scheduled Tasks perform the following steps:
In Plesk go to Tools & Settings > Scheduled Task > Add Task .
Create a task with the type Run a command and specify the full path to custom PHP executable. Specify other settings if required.
Choose the Run a PHP script and set required version:
Click OK to save the task.
Go to Tools & Settings > Scheduled Tasks > Settings and set the option Crontab shell to /bin/bash .
Apply the changes.