View Single Post
  #13  
Old 2nd February 2012, 13:53
vaio vaio is offline
Member
 
Join Date: Nov 2010
Posts: 48
Thanks: 21
Thanked 1 Time in 1 Post
Post

Ok, i have found out solution and am sharing with you..

For Debian LENNY:

1. Open sources list:
Code:
vi /etc/apt/sources.list
2. Add lines to list -> Press 'a' and in new line insert (i supose you have VI editor, otherviwe use appropriate key):
Code:
deb http://packages.dotdeb.org lenny all
3. Save and exit -> Press ':wq' to save and exit in VI editor

4. Import dotdeb keys:
Code:
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add -
5. Update:
Code:
apt-get update
apt-get upgrade
apt-get dist-upgrade
Follow on screen instructions...

You will get latest stable version for lenny: PHP 5.2.17 if you want 5.3.x, than add these lines in apt sources:

Code:
deb http://php53.dotdeb.org oldstable all
deb-src http://php53.dotdeb.org oldstable all
If you use Debian Squeeze, than instead of 'oldstable' use 'stable' in apt list. Other is the same...

P.s: I am not responsible for any issues, it is just my experience shared with you...

To check PHP version, use: 'php -v' in terminal...

Regards,
Vaio
Reply With Quote