Page 1 of 2
PHP upgrade | Debian
Posted: Thu Jul 14, 2016 7:28 pm
by Botanist_
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!
Re: PHP upgrade | Debian
Posted: Wed Aug 24, 2016 8:19 am
by skurudo
Re: PHP upgrade | Debian
Posted: Mon Aug 29, 2016 12:44 pm
by alexd2
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
Code: Select all
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
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.
Re: PHP upgrade | Debian
Posted: Mon Aug 29, 2016 2:50 pm
by skurudo
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
Of course you can and it's good way to add repo and update php.
But not in all cases you need update system php, if it's needed just for one site.
Re: PHP upgrade | Debian
Posted: Tue Aug 30, 2016 8:45 am
by alexd2
skurudo wrote: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
Of course you can and it's good way to add repo and update php.
But not in all cases you need update system php, if it's needed just for one site.
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?
Please if anyone has updated it put the steps I have to follow to complete the upgrade.
Thank you
Re: PHP upgrade | Debian
Posted: Tue Aug 30, 2016 1:05 pm
by mehargags
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
Posted: Wed Aug 31, 2016 7:51 am
by alexd2
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
Thansks, but it's for a new installation and not for a update :(
Re: PHP upgrade | Debian
Posted: Wed Aug 31, 2016 10:23 am
by mehargags
alexd2 wrote:
Thansks, but it's for a new installation and not for a update :(
Do you even know what you want ?
Re: PHP upgrade | Debian
Posted: Wed Aug 31, 2016 3:53 pm
by alexd2
mehargags wrote:alexd2 wrote:
Thansks, but it's for a new installation and not for a update :(
Do you even know what you want ?
Added images (for test using virtual machine)
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
Posted: Thu Sep 01, 2016 10:12 am
by alexd2
I configuration file must be modified to assign default version of php5.6?