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 Web Server
  • Search

PHP upgrade | Debian

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
11 posts
  • 1
  • 2
  • Next
Botanist_
Posts: 9
Joined: Sat Jul 09, 2016 4:40 pm

PHP upgrade | Debian
  • Quote

Post by Botanist_ » Thu Jul 14, 2016 7:28 pm

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

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: PHP upgrade | Debian
  • Quote

Post by skurudo » Wed Aug 24, 2016 8:19 am

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
Top

alexd2
Posts: 15
Joined: Mon Oct 20, 2014 3:55 pm

Re: PHP upgrade | Debian
  • Quote

Post by alexd2 » Mon Aug 29, 2016 12:44 pm

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

Code: Select all

apt-get install php5.6
After of install, in console write php -v, the versión is

Code: Select all

php 5.6
But in vestacp if create a file phpinfo the versión is

Code: Select all

php 5.5
If someone has done it, please guide us.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: PHP upgrade | Debian
  • Quote

Post by skurudo » Mon Aug 29, 2016 2:50 pm

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

alexd2
Posts: 15
Joined: Mon Oct 20, 2014 3:55 pm

Re: PHP upgrade | Debian
  • Quote

Post by alexd2 » Tue Aug 30, 2016 8:45 am

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
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: PHP upgrade | Debian
  • Quote

Post by mehargags » Tue Aug 30, 2016 1:05 pm

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
Top

alexd2
Posts: 15
Joined: Mon Oct 20, 2014 3:55 pm

Re: PHP upgrade | Debian
  • Quote

Post by alexd2 » Wed Aug 31, 2016 7:51 am

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 :(
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: PHP upgrade | Debian
  • Quote

Post by mehargags » Wed Aug 31, 2016 10:23 am

alexd2 wrote: Thansks, but it's for a new installation and not for a update :(
Do you even know what you want ?
Top

alexd2
Posts: 15
Joined: Mon Oct 20, 2014 3:55 pm

Re: PHP upgrade | Debian
  • Quote

Post by alexd2 » Wed Aug 31, 2016 3:53 pm

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
Image

And web
Image

In the path /usr/bin
Image

How to change in the config of vestacp for read php 5.6?
Top

alexd2
Posts: 15
Joined: Mon Oct 20, 2014 3:55 pm

Re: PHP upgrade | Debian
  • Quote

Post by alexd2 » Thu Sep 01, 2016 10:12 am

I configuration file must be modified to assign default version of php5.6?
Top


Post Reply
  • Print view

11 posts
  • 1
  • 2
  • Next

Return to “Web Server”



  • 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