Need help in upgrading PHP ( getting stupid error)

I have been banging my head around this problem for 2 days now and no luck. Keep in mind I am not the pro when it comes to server stuff but I am trying to learn.

So i currently have php 5.2.6-1+lenny4 installed and trying to update to 5.3.6

SO I apg-get update and then when I apg-get install php5 i get this.

The following packages have unmet dependencies: perl: Depends: perl-base (= 5.12.4-2) but 5.10.0-19 is to be installed Depends: perl-modules (>= 5.12.4-2) but 5.10.0-19 is to be installed Depends: libdb5.1 but it is not going to be installed php5: Depends: libapache2-mod-php5 (>= 5.3.6-13) but 5.2.6.dfsg.1-1+lenny4 is to be installed or libapache2-mod-php5filter (>= 5.3.6-13) but it is not going to be installed or php5-cgi (>= 5.3.6-13) but 5.2.6.dfsg.1-1+lenny4 is to be installed or php5-fpm (>= 5.3.6-13) but it is not going to be installed Depends: php5-common (>= 5.3.6-13) but 5.2.6.dfsg.1-1+lenny4 is to be installed

I tried apt-get -f install as suggested in output but that didn’t help either. Hoping I can get some help.

I hope I am in the right forum, if not please direct me to the right forum.

Cheers and thanx.

If you don’t know what it is or what you are doing, you might want to get a server package that has apache, php, and mysql. Wamp and xxamp are popular ones. (amp stands for apache mysql php, so you know what your are getting. ;))

Hi,

First take backup and than try to do following steps might solve your problem

sudo apt-get remove php

sudo apt-get install php-5.3.6
OR

go to system -> admin -> add remove software and search for php you will get the list from there you can install it

Sponsor our Newsletter | Privacy Policy | Terms of Service