• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Plesk PHP 7 | Plesk PHP versions via CLI

Run:
Code:
whereis php
This should list it's installation path. Then after, just select the bin path and run it e.g.
Code:
/usr/bin/php7 script.php (ONLY Example and NOT the actual path)
 
PHP 7 path is /opt/plesk/php/7.0/bin/php

/opt/plesk/php/7.0/bin/php magento cache:status works!

'whereis php' gives you system default php path.
 
Back
Top