• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

PHP version plesk panel and shell not matching

Ahmad12

Basic Pleskian
on plesk panel the php version for a virtual host is 7.0.5, but when connecting to shell and by running php -v the result is:
PHP 5.4.16 (cli) (built: Jun 23 2015 21:17:27)

why and how to correct this?
 
Just use correct path:

# /opt/plesk/php/7.0/bin/php -v
PHP 7.0.5 (cli) (built: Apr 15 2016 12:50:44) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
 
Back
Top