I currently have PHP 5.0 installed on my Debian VPS and was wondering how I would be able to upgrade it to PHP 5.3 and keep all of my installed modules running.
|
|
If you haven't checked already, you should check if the package that you want is in backports before adding testing or unstable to your sources. If it isn't, you'll want to be very careful about pulling in packages from other releases, they might also want to upgrade many other things on the system. |
|||
|
|
|
You might have a look at dotdeb. They have Debian packages for Debian-based LAMP servers and offer among others packages for PHP 5.3. |
|||||
|
|
unstable repositories contain right now the 5.3.3-2 version of php. Using a test environment, add unstable to your sources-list and just try:
In my previous experience, it works very well. If you're using non-standard modules, check for compatibility before trying to upgrade. |
|||
|
|
|
The staging area for the next Debian release, Squeeze, has been having PHP 5.3 since early 2010. So, add
Check output, ensure important packages won't be deleted, and system libraries won't be upgraded (or keep it at a minimun), and if things look ok:
Of course this should be a temporary measure. That is, remove that squeeze line from 'source.list' when your are done installing that PHP. |
|||||||||||
|