Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a vps server that is in production currently. I need to upgrade my current php 5.2 to php 5.3.

I have found the repositories here

My question is how do I upgrade, keeping my current configuration?

share|improve this question

You need only to add the repositories from dotdeb on the /etc/apt/sources.list file. Then use aptitude to reload the sources and check the php packages you have.

If the packages are correctly done, you should not lose any config, since configuration files are not overwritten during updates: if there's a conflict dpkg will ask what to do and you can choose to override or just save the new version with a different extension.

After that, just check the README.Debian on /usr/share/doc/ package documentation to see if there's anything else to complete the upgrade.

share|improve this answer
deb stable all
deb-src stable all
deb stable all
deb-src stable all

gpg --keyserver --recv-key 89DF5277
gpg -a --export 89DF5277 | sudo apt-key add -

Now we have to update apt-get update

Then you can easily upgrade..

and restart apache, and test if everything is working , by checking phpinfo() did you install php previously ?? if you had compiled it manually ..the above method is not the best way ..

share|improve this answer

It's not supported by DotDeb

For your information, I do NOT intend to publish PHP>=5.3.0 packages for Debian Etch, it would mean too much work to get clean packages… PHP 5.2.10 (once fixed) will be last version available for Etch from Dotdeb. Then, you’re strongly encouraged to migrate to Debian Lenny if you want to take profit from 5.3.0.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.