Skip to content

Instantly share code, notes, and snippets.

@jaonoctus
Last active March 30, 2016 11:11
Show Gist options
  • Save jaonoctus/d8b47f5f7bd306ebbacd to your computer and use it in GitHub Desktop.
Save jaonoctus/d8b47f5f7bd306ebbacd to your computer and use it in GitHub Desktop.
[VIRTUALMIN] UPGRADE PHP Version
echo 'deb http://packages.dotdeb.org wheezy-php56 all' >> /etc/apt/sources.list
echo 'deb-src http://packages.dotdeb.org wheezy-php56 all' >> /etc/apt/sources.list
gpg --keyserver keys.gnupg.net --recv-key 89DF5277
gpg -a --export 89DF5277 | sudo apt-key add -
apt-get update
apt-get upgrade -y
@jaonoctus
Copy link
Author

And after all, do this:

vim /etc/apache2/mods-enabled/php5.conf

Comment this lines:

SetHandler application/x-httpd-php
SetHandler application/x-httpd-php-source

@fedir
Copy link

fedir commented Mar 30, 2016

In my case, I should do : aptitude install php5 and to do Y/N confirmations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment