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 Debian/Ubuntu
  • Search

upgrade php version

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
batinduz
Posts: 1
Joined: Thu May 14, 2015 6:06 pm

upgrade php version
  • Quote

Post by batinduz » Thu May 14, 2015 6:11 pm

Hello, i am using Ubuntu 12.04 x32.
i want to upgrade php version to 5.4. how can i do that ?
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: upgrade php version
  • Quote

Post by ScIT » Fri May 15, 2015 9:38 pm

Hi

Try this:
http://www.dev-metal.com/how-to-install ... -pangolin/
Regards
Raphael
Top

neuropass
Posts: 12
Joined: Sat Jun 27, 2015 3:45 pm

Re: upgrade php version
  • Quote

Post by neuropass » Sat Jun 27, 2015 3:50 pm

It doesn't seem to be working.

Can someone post a guide on how to upgrade php version for vesta on Ubuntu 12.04 ?
I tried a guide I found and it turned out that php-fpm package messed up all the vesta configuration files and apache and I lost everything and could not access to my website anymore. I had to wipe clean and thank God for the backups.

Please someone that was successful in upgrading?

Dave
Top

neuropass
Posts: 12
Joined: Sat Jun 27, 2015 3:45 pm

Re: upgrade php version
  • Quote

Post by neuropass » Sun Jul 05, 2015 2:25 am

Anyone please? Am I the only one wondering how to upgrade properly php version? Shouldn't this be part of the documentation anyway?
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: upgrade php version
  • Quote

Post by mehargags » Mon Jul 06, 2015 7:48 pm

Code: Select all

#####################################################
#	install PHP 5.6
#####################################################

add-apt-repository ppa:ondrej/php5-5.6
apt-get -y update

apt-get install -y php5 php5-mysql php5-cli php5-fpm php5-common php5-xmlrpc php5-curl php5-gd php-pear php5-imap php5-mcrypt php5-imagick php5-mhash php5-intl

apt-get install php5-mysqlnd -y

#	Set Upload Limits for PHP
cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.BAK
sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 64M/' /etc/php5/apache2/php.ini
sed -i 's/post_max_size = 8M/post_max_size = 72M/' /etc/php5/apache2/php.ini
sed -i 's/short_open_tag = Off/short_open_tag = On/' /etc/php5/apache2/php.ini

service apache2 restart
Top

sirmbhe
Posts: 7
Joined: Tue Apr 29, 2014 1:31 pm
Contact:
Contact sirmbhe
Website

Re: upgrade php version
  • Quote

Post by sirmbhe » Fri Sep 18, 2015 2:00 am

mehargags wrote:

Code: Select all

#####################################################
#	install PHP 5.6
#####################################################

add-apt-repository ppa:ondrej/php5-5.6
apt-get -y update

apt-get install -y php5 php5-mysql php5-cli php5-fpm php5-common php5-xmlrpc php5-curl php5-gd php-pear php5-imap php5-mcrypt php5-imagick php5-mhash php5-intl

apt-get install php5-mysqlnd -y

#	Set Upload Limits for PHP
cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.BAK
sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 64M/' /etc/php5/apache2/php.ini
sed -i 's/post_max_size = 8M/post_max_size = 72M/' /etc/php5/apache2/php.ini
sed -i 's/short_open_tag = Off/short_open_tag = On/' /etc/php5/apache2/php.ini

service apache2 restart

Any ideas on how to do this on Debian 7?

-------------------------

Nvm, i already got it :

Add this to your repo :

Code: Select all

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
Add the key :

Code: Select all

wget http://www.dotdeb.org/dotdeb.gpg -O- |apt-key add –
And then continue apt-get update & install
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • 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