Here is my suggestion, if you would like to upgrade your PHP - version in
Ubuntu ( in this case to PHP 5.5 )
First, please make a backup of your php.ini 's to be sure, that possible changes could be modified by you afterwards, especially the custom domain ones at "
/var/www/vhosts/system/<domain>/etc/php.ini".You may locate all php.ini 's with the command:
locate php.ini. The main php.ini 's are located at "
/etc/php5/" and "
/usr/share/php5/"
The PHP-upgrade itself can be started with the following commands in your terminal:
Code:
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get upgrade
( if the command "add-apt-repository" is missing or result in failure messages, please add the python extensions with: sudo apt-get install python-software-properties )
You could be asked during the upgrade, if you would like to choose some new php.ini 's or if you would like to hold the old ones. I would recommend to choose the new ones and change the standards after you investigated, if a change is really necessary, because the standards are pretty well configured.
Please check after the upgrade, that the handler lists the new PHP version correctly:
/usr/local/psa/bin/php_handler --list
and please check the several php.ini 's for changes and modify them if needed.
Be as well sure, that the upgrade didn't remove any needed Plesk extensions, or reinstall them after your upgrade. To make sure, that all extensions are available, please check:
/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --show-components
if you see some missing components, reinstall them with the command:
/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --install-component component-name
or choose the view over the webinstaller at:
https://YOURSERVERDOMAIN.COM:8443/admin/update/add-components/ ( and pls. don't forget to expand the subfolders )
This work-around works with Ubuntu 12.04 and Ubuntu 14.04 and all Plesk extensions work well together with PHP 5.5.
If you experience problems/issues or failures, don't get nervous, because all these upgrades can be reversed at any time and the Plesk standards can be restored very quickly. Just open another thread and ask for a work-around to reverse the PHP-upgrade, if you don't already found a suggestion here with the Forum search.