Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
September 1, 2013
Chris
Debian, Linux, PHP
Comments Off on How to install/setup latest version of PHP 5.5 on Debian Wheezy 7.0/7.1/7.2 (and how to fix the GPG key error)

How to install/setup latest version of PHP 5.5 on Debian Wheezy 7.0/7.1/7.2 (and how to fix the GPG key error)

PreviousNext
php

Please note: This works fine. But this package will also upgrade your apache to version 2.4 which has different config files than apache 2.2 and even deletes stuff, like /etc/apache2/sites-available/default when upgrading. This may result in a loss of your apache settings (vhost, mod_rewrite stuff etc.). Be aware of that ! This shit cost me a full weekend. :(
This affects only upgrades, not fresh installs for sure.

Update on that issue: This is a known bug, I’ll keep this post updated…
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716880

There’s a nice method to install the very latest version of PHP 5.5 on Debian Wheezy 7.0 or 7.1 with some bash commands.

 

1. Add these package sources to your sources.list file: Enter the file via

sudo nano /etc/apt/sources.list

and add these lines at the end of the file (right click pastes):

deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all

Save and close (CTRL-X, “y”, ENTER).

2. Do an update:

sudo apt-get update

You’ll get an error message in the last line of the update progress now.

3. It’s not possible to install PHP now, as Debian just gave an error and said that these new sources are not verified and blah blah, the public key is not available… I find this process highly unintutive and I really don’t know why it’s so complicated to update PHP, but well, that’s how it is…

Method #1
The last line of this error message contains a key, like “E9C74FEEA2098A6E”. Copy that key (mark the string with the mouse usually copies it into the clipboard) and run these commands to verifiy the new package sources (and put YOUR key in here):

gpg --keyserver packages.dotdeb.org --recv-key  E9C74FEEA2098A6E
gpg -a --export E9C74FEEA2098A6E | sudo apt-key add -

Method #2 (thanks Petr for bringing this in!)

wget http://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg

4. Do an update again:

sudo apt-get update

5. Install the latest version of PHP 5:

sudo apt-get install php5

6. Check the installed version of PHP 5 (phpinfo() will still show old PHP version until apache restart):

php -v

Finally, restart the apache:

sudo service apache2 restart

By the way, it’s not possible (as far as I know) to install PHP 5.5 on Debian 6 (without compiling source code manually).

By the way #2, I’ve also written a tutorial on “How to setup latest version of PHP 5.5 on Ubuntu 12.04 LTS“, which is different from this here.

 

 

debianPHPPHP 5.5
Share this

Creators of Laravel launch one-click-installations of Laravel (including nginx, PHP 5.5 etc.)

Again, a game changer: Taylor Otwell, creator of Laravel (which is currently the most popular PHP framework), has released FORGE

Awesome next-gen PS4 graphics in “The Order: 1886”

We are entering a very interesting time: The differences between cinematic movies and video games are getting lesser and lesser.

hack-php

Facebook releases HipHop (HHVM) 3.0, adds mysqli and support for Hack language

Lots of movement in the PHP world these days! After releasing Hack (a dramatically improved fork of the entire PHP

mod-rewrite-ubuntu-14-04-lts

How to enable mod_rewrite in Ubuntu 14.04 LTS

A little note first: This is the most basic way to enable mod_rewrite. However, it’s not the best way. The

php

12 tools for better PHP quality

Nice selection of 12 tools every PHP developer should bookmark. I totally love how the PHP community becomes some kind

php

appserver.io – A New Way of Magento Enterprise Infrastructure (26min video talk)

Interesting stuff for all Magento people (unfortunatly the audio level is very low):

hiphop php

HipHop VM reaches 100% green Unit Tests in Laravel, Drupal, Slim, CodeIgniter etc.

In September 2013 the PHP HipHop VM dev team wrote a very interesting article [1] about failing Unit Tests of

pdo-debug

Debug PDO with this one-line function. Yeah!

Update: This article is a little bit older, the tool has changed gently. Everthing this article still works exactly like

goodbye-lamp-going-hhvm-nosql-nginx-php

[RePost] Goodbye LAMP: Going Nginx, NoSQL, HHVM (41min conference talk with Arne Blankerts)

Another excellent find by Germany’s PHP Magazin in the article “Nginx, NoSQL, HHVM: Goodbye LAMP Stack?“: 41 minutes super-interesting (english)

digitalocean coupon

Free $10 coupon for DigitalOcean SSD cloud VPS hosting

DigitalOcean puts out another coupon, this time for free $10 with the code SSD2014. The company offers small and big

1/4

Categories

Search

All new features of WordPress 3.9 in this 2 minute video
css
How to center a div vertically and horizontally (modern methods, without fixed size!)
css3-chrome-font
[Link] Retinafy your Site / Device by Nijiko Yonskai
symfony-framework-logo
SensioLabs, creator of Symfony and Silex PHP frameworks, gets $7 million capital
hearthbleed-ssl-bug
The SSL Heartbleed bug explained in 30 seconds
Hacking ATMs – A conference talk about the current security state of Windows XP driven cash machines
hiphop php
PHP’s HipHop outperforms PHP 5.5 with Zend OPCache and Nginx by 15-20 times
github-logo-octocat
GitHub buys Easel.io, a code-free full website creator worth a look
Test GZIP compression of your server easily
php mvc
Preview-release of (my) “php-mvc” project (a simple php mvc barebone)
set up a local virtual machine for development with vagrant and puphpet / puppet (and ubuntu, linux, php, apache, mysql)
A list of downloadable Vagrant boxes (CentOS 5.9 / 6.4, Ubuntu 12 / 13, Debian 6 / 7 / 7.1 / 7.2)
This is an experimental advertisement
php
[Link] How to create, read, update and delete (CRUD) with PDO, MySQLi and MySQL the right way (prepared statements)
bitdeli git github stats
php-login goes #2 PHP script worldwide in BitDeli stats
phpstorm-github-code-color-syntax-theme
Get Github’s syntax highlighting colors in PHPStorm

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy