• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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