Article ID: 126180, created on Jul 14, 2015, last review on Jul 14, 2015

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux


How to upgrade PHP version installed on Debian to 5.4/5.5/5.6?


Please note: Plesk officially supports packages that are shipped with it, system packages and packages from official system repositories.

If your system does not have newer versions of PHP packages in official repositories - it should be compiled manually or installed from 3rd-party repositories.

Such PHP upgrade is purely administrative task and should be done by your local administrator. This operation is Out of Odin support scope.

Here is only an example how PHP can be updated using 3rd-party repository on Debian:

  1. Add the main repository to your sources.list

    Depending on your distribution (Jessie, Wheezy or Squeeze), add these two lines to your /etc/apt/sources.list file (you can also choose a mirror near you) :

    deb jessie all
    deb-src jessie all


    deb wheezy all
    deb-src wheezy all


    deb squeeze all
    deb-src squeeze all
  2. Options

    If you want to install :
    PHP 5.6 on Debian 7 “Wheezy” (without Zend thread safety), add these two lines too :

    deb wheezy-php56 all
    deb-src wheezy-php56 all

    PHP 5.6 on Debian 7 “Wheezy” (with Zend thread safety), add these two lines instead :

    deb wheezy-php56-zts all
    deb-src wheezy-php56-zts all

    PHP 5.5 on Debian 7 “Wheezy”, add these two lines too :

    deb wheezy-php55 all
    deb-src wheezy-php55 all

    PHP 5.4 on Debian 6 “Squeeze”, add these two lines too :

    deb squeeze-php54 all
    deb-src squeeze-php54 all
  3. Fetch and install the GnuPG key

    sudo apt-key add dotdeb.gpg
  4. Install

    apt-get update  
    apt-get install php5  

Note: Not listed PHP versions should be complied manually. In case of any issues with PHP compiling or installation from 3rd-party repositories please refer to PHP documentation or contact your local administrator for further support.

Search Words

debian php

php upgrade debian

upgrade php

how to upgrade php on debian

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 29d1e90fd304f01e6420fbe60f66f838 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 01bc4c8cf5b7f01f815a7ada004154a2 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF