phpversion.sh

#!/bin/sh printf "Switching php to version 5.6 with symlinks.\n" printf "Press any key to continue...\n" read CONTINUE printf "Creating backups..." # Backup original binaries mv /usr/bin/php /usr/bin/php.backup mv /usr/bin/php-cgi /usr/bin/php-cgi.backup # mv /usr/bin/phpize /usr/bin/phpize.backup printf " done.\n\n" printf "Creating symlinks..." # Create symlinks to the plesk ones ln -s /opt/plesk/php/5.6/bin/php /usr/bin/php ln -s /opt/plesk/php/5.6/bin/php-cgi /usr/bin/php-cgi # ln -s /opt/plesk/php/5.6/bin/phpize /usr/bin/phpize printf " done.\n\n" printf "Process completed.\n" printf "PHP version is:\n" php -v printf "\nand PHP binary path is:\n" which php printf "\n\n"
Change php cli version in plesk

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.