Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Upgrade to PHP 5.5.X - How

General questions about VestaCP
Locked
  • Print view
Advanced search
5 posts • Page 1 of 1
hzzg6y
Posts: 1
Joined: Sat May 03, 2014 8:59 am

Upgrade to PHP 5.5.X - How

Post by hzzg6y » Sun May 04, 2014 2:39 pm

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,
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: Upgrade to PHP 5.5.X - How

Post by drMacFaulty » Wed May 07, 2014 9:44 am

What's your server O/S? Debian Wheezy, Ubuntu Latest... Please do tell :)
Top

comeback
Posts: 2
Joined: Sat Mar 01, 2014 9:04 pm

Re: Upgrade to PHP 5.5.X - How

Post by comeback » Wed May 07, 2014 8:13 pm

For CentOS/RHEL 6.x:

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
For CentOS/RHEL 5.x:

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
It will likely give you a message “WARNING: Unable to resolve all providers …”. This is normal, and you can continue by tying “y“.
Top

drMacFaulty
Posts: 88
Joined: Thu Mar 06, 2014 7:52 pm
Contact:
Contact drMacFaulty
Website

Re: Upgrade to PHP 5.5.X - How

Post by drMacFaulty » Wed May 21, 2014 9:34 pm

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!
Top

Tomasz
Posts: 4
Joined: Wed Jan 20, 2016 12:02 pm

Re: Upgrade to PHP 5.5.X - How

Post by Tomasz » Wed Jan 20, 2016 12:13 pm

Additionally for PHP 5.5.x→5.6.x

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
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
Why not? :-)

Code: Select all

apt-get install mysql-client-5.6 mysql-server mysql-server-5.6
Great for VestaCP,
Tomasz Root
Top


Locked
  • Print view

5 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password