How I can upgrade Apache 2 from 2.2.17 to 2.2.22 on Debian 6.0 (x86)?
As others have said, you should only do this when you really need it for something, as it is very easy to mess up your system with this method.
If you still want to do it though, I recommend using the
Again, you should not do this unless you really need it. I have made that mistake before.
And do not forget to remove the
As a sidenote, if you want the rest of your webserver up-to-date, I can recommend the dotdeb repository for that.
There is no Apache v2.2.22 in
Add sid repo to your
deb http://ftp.debian.org/debian/ sid main contrib non-free
apt-get update && apt-get -t sid install apache2
After installation of apache comment line with sid repo in your
NOTE: Doing this is highly contraindicated, and any and all subsequent problems with your system are completely your own. It's also very hard to reverse.
If possible, you can do a dist-upgrade to wheezy, which should upgrade your version to 2.2.22.
I'm having the same issue right now, and since these are production boxes I'm nervous about the downtime of doing a full upgrade, so I'm thinking of using Shadur's sid repo solution; of course, I'll be testing in my dev environment first to ensure there are no issues with it.
Additionally, in response to the comments about why someone would want to do this upgrade, there are security vulnerabilities in versions 1.3.x, 2.0.x-2.0.64, and 2.2.x: