title: Debian wheezy upgrade php 5.4 to 5.5
body: <p><strong>[solved]</strong></p>
  
  <p>I have Debian Wheezy with installed php 5.4.18.
  I wanted upgrade it to 5.5.x, but standard procedure not working.</p>
  
  <p>This is my /etc/apt/sources.list file:</p>
  
  
  
  <pre class="lang-none prettyprint-override"><code># deb cdrom:[Debian GNU/Linux 7.0.0 _Wheezy_ - Official amd64 NETINST Binary-1 20130504-14:43]/ wheezy main
  deb http://ftp.pl.debian.org/debian/ wheezy main
  deb-src http://ftp.pl.debian.org/debian/ wheezy main
  
  deb http://security.debian.org/ wheezy/updates main
  deb-src http://security.debian.org/ wheezy/updates main
  
  # wheezy-updates, previously known as 'volatile'
  deb http://ftp.pl.debian.org/debian/ wheezy-updates main
  deb-src http://ftp.pl.debian.org/debian/ wheezy-updates main
  
  #php 5.5
  deb http://packages.dotdeb.org wheezy-php55 all
  deb-src http://packages.dotdeb.org wheezy-php55 all
  </code></pre>
  
  <p>I updated sources with</p>
  
  <pre class="lang-none prettyprint-override"><code>apt-get update
  </code></pre>
  
  <p>and installed php5</p>
  
  <pre class="lang-none prettyprint-override"><code>apt-get install php5
  </code></pre>
  
  <p>but after httpd restart i still have old php version.</p>
  
  <pre class="lang-none prettyprint-override"><code>php -v
  </code></pre>
  
  <p>returns:</p>
  
  <pre class="lang-none prettyprint-override"><code>root@xxx:/# php -v
  PHP 5.4.18 (cli) (built: Aug 19 2013 04:03:40)
  Copyright (c) 1997-2013 The PHP Group
  Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
      with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
  </code></pre>
  
  <p>when I searching php</p>
  
  <pre class="lang-none prettyprint-override"><code>find / -name php5
  </code></pre>
  
  <p>I can see just installed files</p>
  
  <pre class="lang-none prettyprint-override"><code>root@xxx:/usr/bin# ls -l php*
  lrwxrwxrwx 1 root root      21 Dec 11 00:15 php -&gt; /etc/alternatives/php
  -rwxr-xr-x 1 root root 8956912 Nov 17 02:37 php5
  root@xxx:/usr/bin# ./php5 -v
  PHP 5.5.19-1~dotdeb.1 (cli) (built: Nov 17 2014 01:24:08)
  Copyright (c) 1997-2014 The PHP Group
  Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
      with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
      with Xdebug v2.2.6, Copyright (c) 2002-2014, by Derick Rethans
  root@xxxx:/usr/bin# ./php -v
  PHP 5.5.19-1~dotdeb.1 (cli) (built: Nov 17 2014 01:24:08)
  Copyright (c) 1997-2014 The PHP Group
  Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
      with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
      with Xdebug v2.2.6, Copyright (c) 2002-2014, by Derick Rethans
  </code></pre>
  
  <p>My phpinfo returns PHP Version 5.4.18</p>
  
  <p>What I'm doing wrong?</p>
  
  <p>//edit:
  I updated it by directadmin/custombuild</p>
  
  <pre class="lang-none prettyprint-override"><code>root@xxxx:/usr/local/directadmin/custombuild# vim options.conf
  </code></pre>
  
  <p>i changed line:</p>
  
  <pre class="lang-none prettyprint-override"><code>php1_release=5.4
  </code></pre>
  
  <p>to </p>
  
  <pre class="lang-none prettyprint-override"><code>php1_release=5.5
  </code></pre>
  
  <p>and next:</p>
  
  <pre class="lang-none prettyprint-override"><code>root@xxxx:/usr/local/directadmin/custombuild# ./build update_data
  # [..]
  root@xxxx:/usr/local/directadmin/custombuild# ./build php d
  # [..]
  </code></pre>
  
  <p>Now I have php 5.5.19, and I can use password_hash() function ;)</p>