• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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