• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Question change defualt php version

Carlos_Gallardo

New Pleskian
Hi, how can i change default PHP version for the shell not a website, currently had php 5.4 with Plesk 12.5, is it safe to change?
thanks in advance
 
Hi Carlos_Gallardo,

pls. note, that each PHP - version has it's very own path, when it comes to CLI - commands.

Examples:

Code:
For Plesk PHP - version commands:

/opt/plesk/php/5.2/bin/php -v
/opt/plesk/php/5.3/bin/php -v
/opt/plesk/php/5.4/bin/php -v
/opt/plesk/php/5.5/bin/php -v
/opt/plesk/php/5.6/bin/php -v
/opt/plesk/php/7.0/bin/php -v


Code:
For Plesk PHP "PECL" commands:

/opt/plesk/php/5.2/bin/pecl
/opt/plesk/php/5.3/bin/pecl
/opt/plesk/php/5.4/bin/pecl
/opt/plesk/php/5.5/bin/pecl
/opt/plesk/php/5.6/bin/pecl
/opt/plesk/php/7.0/bin/pecl



The vendor specific PHP CLI commands depend on your operating system and the installed PHP version on your server:

Code:
Commands for the PHP - vendor version:

/usr/bin/php -v

/usr/bin/pecl
 
Back
Top