Debian Tutorials

Debian Tutorials


Step by step tutorials showing you how to install and configure various applications and services on Debian based Linux distros.

December 2019
M T W T F S S
« Apr    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Categories


How to upgrade to PHP 5.3 on Debian Lenny

Ástþór IPÁstþór IP

Dotdeb provides a repository with PHP 5.3 for lenny and it’s easy to upgrade:

1. Add these lines to the apt sources (pico /etc/apt/sources.list)

deb http://php53.dotdeb.org stable all
deb-src http://php53.dotdeb.org stable all

2. Download and import the dotdeb key

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

3. Update apt and dist-upgrade

apt-get update
apt-get dist-upgrade

Comments 15
  • stinger5
    Posted on

    stinger5 stinger5

    Author

    the sources of dotdeb are now updated! If you use Lenny, you need to replace the word “stable” to “oldstable”:

    deb … oldstable all
    deb-src … oldstable all

    Hope it helps to solve problems with package conflicts (php, mysql, …)


  • Roman
    Posted on

    Roman Roman

    Author

    Thanks stinger5, your comment helps me:) i want to thanks also to this server…


  • Eric Gillette
    Posted on

    Eric Gillette Eric Gillette

    Author

    Hi,

    This was a good article, definitely helped me out — I first had to upgrade my client’s server from Debian 4 (Etch), to Debian 5 (Lenny), and now Debian 6 (Squeeze).

    Although, I didn’t wait to see if Squeeze’s repos would upgrade PHP from 5.2 to 5.3, this article came just as I was looking for that!

    Thanks!


  • Josh Green
    Posted on

    Josh Green Josh Green

    Author

    Thanks Stinger5; that added comment made my life easier.


  • Sel
    Posted on

    Sel Sel

    Author

    Thanks for this solution. It worked well on my vps. I was afraid that i will have to use the old php 5.2:( THANKS.


  • Gregor
    Posted on

    Gregor Gregor

    Author

    I have Debian 5.0.9 Lenny and I upgrade server about this tutorial but php upgraded to 5.3.8 and my webpage didnt work about php.

    Help me.

    Sorry for my bad english 🙂


  • Nolird
    Posted on

    Nolird Nolird

    Author

    For people ho is using ION cube just replace

    zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so

    To

    zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so


  • Bluetegu
    Posted on

    Bluetegu Bluetegu

    Author

    Many thanks . This helped me with the upgrade. Note though, that what worked for me was replacing ‘stable’ and ‘oldstable’ with ‘lenny’ in all entries on the source list. Otherwise I got dependency errors while trying to run dist-upgrade.


  • Vladimir
    Posted on

    Vladimir Vladimir

    Author

    Many thanks! Very useful article!


  • Sascha
    Posted on

    Sascha Sascha

    Author

    Thumbs up. Saved my life today! Many thanks for the post


  • Kai
    Posted on

    Kai Kai

    Author

    hi,

    I use Lenny, and Plesk 10th are there problems when I perform the update?


  • pipokoeie
    Posted on

    pipokoeie pipokoeie

    Author

    just wanna say this will destroy the ispcp admin pannel and with some luck the database so you loose most of your websites


  • Rob Morris
    Posted on

    Rob Morris Rob Morris

    Author

    Lenny support on DotDeb.org is no more! To install 5.3 on Lenny, you’ll need to manually download the packages at http://archives.dotdeb.org/ and use dpkg -i to install the packages by hand. Cheers!


  • Frank
    Posted on

    Frank Frank

    Author

    Can I still keep register_globals = on ? 🙂


  • Farhan Islam
    Posted on

    Farhan Islam Farhan Islam

    Author

    Nice article as Debian is new to me and I was thinking about some easy steps to install the PHP over the server.

    For sure, can you add something for FCGI with PHP5.4 with Mcrypt + Soap + GD?