Table of Contents
Running PHP Scripts from the Command Line #
You can run PHP scripts in the Command Line for a particular PHP version used in Plesk.
ON LINUX
In Plesk for Linux, the PHP binary (the php file) is located in the following path:
/opt/plesk/php/<PHP version>/bin/php
Here should be replaced with a particular PHP version number.
For example, if your domain uses PHP version 7.0, use the following command to run the my_script.php script:
/opt/plesk/php/7.0/bin/php my_script.php