We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Upgrade to PHP 5.5.X - How
Upgrade to PHP 5.5.X - How
Hi
First of all, recently I came across the VestaCP... Really Impressed. Appreciated your Hardwork. Keep it up.
I have application which requires PDO & PHP 5.5 version however my current of PHP is 5.4.28. Please can
some help to upgrade my PHP to 5.5.X with PDO support.
[root@ns8 ~]# php -v
PHP 5.4.28 (cli) (built: May 2 2014 19:09:57)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[root@ns8 ~]#
Rgds,
First of all, recently I came across the VestaCP... Really Impressed. Appreciated your Hardwork. Keep it up.
I have application which requires PDO & PHP 5.5 version however my current of PHP is 5.4.28. Please can
some help to upgrade my PHP to 5.5.X with PDO support.
[root@ns8 ~]# php -v
PHP 5.4.28 (cli) (built: May 2 2014 19:09:57)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[root@ns8 ~]#
Rgds,
-
- Posts: 88
- Joined: Thu Mar 06, 2014 7:52 pm
- Contact:
Re: Upgrade to PHP 5.5.X - How
What's your server O/S? Debian Wheezy, Ubuntu Latest... Please do tell :)
Re: Upgrade to PHP 5.5.X - How
For CentOS/RHEL 6.x:
For CentOS/RHEL 5.x:
It will likely give you a message “WARNING: Unable to resolve all providers …”. This is normal, and you can continue by tying “y“.
Code: Select all
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install yum-plugin-replace
yum replace php-common --replace-with=php55w-common
Code: Select all
rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm
yum install yum-plugin-replace
yum replace php-common --replace-with=php55w-common
-
- Posts: 88
- Joined: Thu Mar 06, 2014 7:52 pm
- Contact:
Re: Upgrade to PHP 5.5.X - How
If there's any interest, I'd also want to create a small tut for using mariadb (replacement for mysql, really cool).
PHP 5.5 (latest) on Debian Wheezy & Squeeze
Before you begin, please back-up all configuration files of your PHP installation (you do not need to touch /usr/local/vesta configuration, because it runs in it's own defined space). This mini-guide is simple, because we're using a 3rd party repository (I use it for over 2 years now and never have a problem and their builds are always very stable. I never had a crash). Do mind that SOME php modules might not be compiled in this repository and thus aren't compatible for your PHP version.
Legal stuff: I cannot guarantee that this will work for you and am not liable in case of any damage that may have been caused by this tutorial.
1. Add the repository and the key to your system from http://dotdeb.org/instructions (just follow the instructions). You need to add 2 repositories. One for PHP 5.5 and another for general stuff. This repository always updates their versions very fast after a new PHP version has been released. You may also choose to add a mirror instead, see here: http://www.dotdeb.org/mirrors/
2. Import the key (dotdeb.gpg) as follows: sudo apt-key dotdeb.gpg (can also be found in the instructions from above link).
3. Run apt-get update (make sure you imported your key and repositories first).
4. Run apt-get upgrade and check if everything is upgraded to PHP 5.5 (like php5-common, libapache2-mod-php5 etc.).
5. Make sure that apache still has mpm-prefork (because of the php module). You can check this with: dpkg --get-selections | grep apache2 (you'll get a list with apache2 packages). Make sure the package apache2-mpm-prefork is in that list. If not, it has been removed by upgrading to PHP 5.5. To re-install, run: apt-get install apache2-mpm-prefork (yes, that's all). You can check that PHP is running by going to a hosted domain and by going to phpmyadmin <example.com>/phpmyadmin.
If the login screen of PHP greets you, you have successfully upgraded to PHP 5.5! If not, you might need to enable the php module from Apache. You can do this by using the command: a2enmod php5
Have fun with your new PHP version! PHP 5.5 (as you'll know) also has the Zend OpCache onboard, which can be configured in the default configuration files (their default location).
Hope this helps :) Have fun!
PHP 5.5 (latest) on Debian Wheezy & Squeeze
Before you begin, please back-up all configuration files of your PHP installation (you do not need to touch /usr/local/vesta configuration, because it runs in it's own defined space). This mini-guide is simple, because we're using a 3rd party repository (I use it for over 2 years now and never have a problem and their builds are always very stable. I never had a crash). Do mind that SOME php modules might not be compiled in this repository and thus aren't compatible for your PHP version.
Legal stuff: I cannot guarantee that this will work for you and am not liable in case of any damage that may have been caused by this tutorial.
1. Add the repository and the key to your system from http://dotdeb.org/instructions (just follow the instructions). You need to add 2 repositories. One for PHP 5.5 and another for general stuff. This repository always updates their versions very fast after a new PHP version has been released. You may also choose to add a mirror instead, see here: http://www.dotdeb.org/mirrors/
2. Import the key (dotdeb.gpg) as follows: sudo apt-key dotdeb.gpg (can also be found in the instructions from above link).
3. Run apt-get update (make sure you imported your key and repositories first).
4. Run apt-get upgrade and check if everything is upgraded to PHP 5.5 (like php5-common, libapache2-mod-php5 etc.).
5. Make sure that apache still has mpm-prefork (because of the php module). You can check this with: dpkg --get-selections | grep apache2 (you'll get a list with apache2 packages). Make sure the package apache2-mpm-prefork is in that list. If not, it has been removed by upgrading to PHP 5.5. To re-install, run: apt-get install apache2-mpm-prefork (yes, that's all). You can check that PHP is running by going to a hosted domain and by going to phpmyadmin <example.com>/phpmyadmin.
If the login screen of PHP greets you, you have successfully upgraded to PHP 5.5! If not, you might need to enable the php module from Apache. You can do this by using the command: a2enmod php5
Have fun with your new PHP version! PHP 5.5 (as you'll know) also has the Zend OpCache onboard, which can be configured in the default configuration files (their default location).
Hope this helps :) Have fun!
Re: Upgrade to PHP 5.5.X - How
Additionally for PHP 5.5.x→5.6.x
...
Great for VestaCP,
Tomasz Root
Code: Select all
apt-get upgrade
The following packages have been kept back:
libapache2-mod-php5 libmysqlclient18 mysql-client mysql-client-5.5 mysql-server mysql-server-5.5 php-pear php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-imap php5-intl php5-mcrypt php5-mysql php5-pspell
Code: Select all
apt-get dist-upgrade
Why not? :-)The following packages will be REMOVED:
mysql-client-5.5 mysql-server mysql-server-5.5
The following NEW packages will be installed:
libt1-5 libterm-readkey-perl libvpx1 mysql-client-5.6 mysql-client-core-5.6 mysql-common-5.6 php5-readline
The following packages will be upgraded:
libapache2-mod-php5 libmysqlclient18 mysql-client php-pear php5 php5-cgi php5-cli php5-common php5-curl php5-gd php5-imap php5-intl php5-mcrypt php5-mysql
php5-pspell
Code: Select all
apt-get install mysql-client-5.6 mysql-server mysql-server-5.6
Tomasz Root