Page 1 of 1

upgrade php version

Posted: Thu May 14, 2015 6:11 pm
by batinduz
Hello, i am using Ubuntu 12.04 x32.
i want to upgrade php version to 5.4. how can i do that ?

Re: upgrade php version

Posted: Fri May 15, 2015 9:38 pm
by ScIT

Re: upgrade php version

Posted: Sat Jun 27, 2015 3:50 pm
by neuropass
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

Re: upgrade php version

Posted: Sun Jul 05, 2015 2:25 am
by neuropass
Anyone please? Am I the only one wondering how to upgrade properly php version? Shouldn't this be part of the documentation anyway?

Re: upgrade php version

Posted: Mon Jul 06, 2015 7:48 pm
by mehargags

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

Re: upgrade php version

Posted: Fri Sep 18, 2015 2:00 am
by sirmbhe
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