• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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