Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 am planning of upgrading the LAMP stack that I have.

Debian Lenny 5.09 - current version is 6.0
Apache 2.2.9 - current 2.2.21
MySQL 5.0.51a - current 5.5.20
PHP 5.2.6 - current PHP 5.3.9

I am curious if I should start with the debian upgrade and the rest will follow from the new repositories, or I should start with PHP/Mysql first and leave the distro update at the end.

What is the best practice? Thanks.

share|improve this question
up vote 1 down vote accepted

If your LAMP stack is installed through Debian's package management system, it'd get updated automatically during system upgrade. You can find the official documentation about upgrade from Lenny to Squeeze right here.

Upgrades between major versions may sometimes go wrong if not performed carefully, so I would suggest to read the above mentioned page in order to prepare yourself for the process and avoid undesired situations.

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.