PHP upgrade | Debian
PHP upgrade | Debian
Hello!
I wanted to upgrade php version to 5.6 but I couldn't find any tutorial for debian, all I found related to vestacp was for centos or ubuntu so I made this topic. I hope someone can help me.
Thank you in advance!
I wanted to upgrade php version to 5.6 but I couldn't find any tutorial for debian, all I found related to vestacp was for centos or ubuntu so I made this topic. I hope someone can help me.
Thank you in advance!
Re: PHP upgrade | Debian
Look at this. Its easy and works well:
http://forum.vestacp.com/viewtopic.php?f=19&t=10854
or this for debian/ubuntu -> http://anikin.pw/all/multiversionnost-p ... s-vestacp/
Similar topics:
viewtopic.php?t=8380
http://forum.vestacp.com/viewtopic.php?f=19&t=10854
or this for debian/ubuntu -> http://anikin.pw/all/multiversionnost-p ... s-vestacp/
Similar topics:
viewtopic.php?t=8380
Re: PHP upgrade | Debian
Hi,
Why not can upgrade in ubuntu 14.04 the versión 5.5 to 5.6 of php?
I see the tutorial for add repo of php 5.6 , 7.0
Now, for install php 5.6 the command is
After of install, in console write php -v, the versión is
But in vestacp if create a file phpinfo the versión is
If someone has done it, please guide us.
Why not can upgrade in ubuntu 14.04 the versión 5.5 to 5.6 of php?
I see the tutorial for add repo of php 5.6 , 7.0
Code: Select all
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
Code: Select all
apt-get install php5.6
Code: Select all
php 5.6
Code: Select all
php 5.5
Re: PHP upgrade | Debian
Of course you can and it's good way to add repo and update php.alexd2 wrote:Hi,
Why not can upgrade in ubuntu 14.04 the versión 5.5 to 5.6 of php?
I see the tutorial for add repo of php 5.6 , 7.0
But not in all cases you need update system php, if it's needed just for one site.
Re: PHP upgrade | Debian
There is somewhere a tutorial on how to update the version of php 5.5 to 5.6 and that this is reflected in Vestacp?skurudo wrote:Of course you can and it's good way to add repo and update php.alexd2 wrote:Hi,
Why not can upgrade in ubuntu 14.04 the versión 5.5 to 5.6 of php?
I see the tutorial for add repo of php 5.6 , 7.0
But not in all cases you need update system php, if it's needed just for one site.
Please if anyone has updated it put the steps I have to follow to complete the upgrade.
Thank you
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: PHP upgrade | Debian
For Debian 7 Wheezy, the steps I use are:
Code: Select all
#####################################################
# install PHP 5.6 | Debian 7 Wheezy
#####################################################
echo "deb http://packages.dotdeb.org wheezy-php56 all" >> /etc/apt/sources.list.d/dotdeb.list
echo "deb-src http://packages.dotdeb.org wheezy-php56 all" >> /etc/apt/sources.list.d/dotdeb.list
wget http://www.dotdeb.org/dotdeb.gpg -O- |apt-key add -
apt-get update
apt-get install -t wheezy-php56 php5 php5-mysql php5-cli php5-fpm php5-common php5-xmlrpc php5-curl php5-gd php-pear php5-imap php5-mcrypt php5-imagick -y
apt-get install php5-mysqlnd -y
service apache2 restart
Re: PHP upgrade | Debian
Thansks, but it's for a new installation and not for a update :(mehargags wrote:For Debian 7 Wheezy, the steps I use are:
Code: Select all
##################################################### # install PHP 5.6 | Debian 7 Wheezy ##################################################### echo "deb http://packages.dotdeb.org wheezy-php56 all" >> /etc/apt/sources.list.d/dotdeb.list echo "deb-src http://packages.dotdeb.org wheezy-php56 all" >> /etc/apt/sources.list.d/dotdeb.list wget http://www.dotdeb.org/dotdeb.gpg -O- |apt-key add - apt-get update apt-get install -t wheezy-php56 php5 php5-mysql php5-cli php5-fpm php5-common php5-xmlrpc php5-curl php5-gd php-pear php5-imap php5-mcrypt php5-imagick -y apt-get install php5-mysqlnd -y service apache2 restart
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: PHP upgrade | Debian
Do you even know what you want ?alexd2 wrote: Thansks, but it's for a new installation and not for a update :(
Re: PHP upgrade | Debian
Added images (for test using virtual machine)mehargags wrote:Do you even know what you want ?alexd2 wrote: Thansks, but it's for a new installation and not for a update :(
In console
And web
In the path /usr/bin
How to change in the config of vestacp for read php 5.6?
Re: PHP upgrade | Debian
I configuration file must be modified to assign default version of php5.6?