upgrade php version
upgrade php version
Hello, i am using Ubuntu 12.04 x32.
i want to upgrade php version to 5.4. how can i do that ?
i want to upgrade php version to 5.4. how can i do that ?
Re: upgrade php version
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
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
Anyone please? Am I the only one wondering how to upgrade properly php version? Shouldn't this be part of the documentation anyway?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: upgrade php version
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
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
Code: Select all
wget http://www.dotdeb.org/dotdeb.gpg -O- |apt-key add –