• 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/

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