• 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

Issue PHP version doesn't change

gawrrell

New Pleskian
Hello,

I have installed PHP version 5.6 from "Updates and Upgrades" area and then I've set my website to use this new version.
When I login via SSH to my website and run "php -v " it shows me the default version php 5.4.
I've attached 2 photos for example.

err.png

err2.png
 
@qawrell,

This normal.

The php -v command indicates output for the default binary, while the domain uses a different php binary.

Regards....
 
Correct command should be:

# /opt/plesk/php/5.6/bin/php -v
PHP 5.6.22 (cli) (built: Jun 7 2016 10:33:10)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd.
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
 
Back
Top