- Category: Linux
- Created: Tuesday, 17 May 2016 14:18
- Written by Riaz Uddin Masum
- Hits: 154
Debian 7 come with php 5.4.x. and it is now not secure now plus it is very good idea to get updated. right now php 5.6 or 7 can be upgraded. But php 7 is in beta now and lots of other thing related in not clear to me right now. so i am going with php 5.6.
now how can we upgrade my server to php 5.4 to php 5.6 with out any problem. i found out that official packages is not yet added to php 5.6. so i was looking for third party solution. and i found one https://www.dotdeb.org/instructions/ it is very good as it explain how to do it.
now lets start by editing the source.list file in debian.
sudo nano /etc/apt/sources.list
and add this line to your file.
for debian jessie
deb http://packages.dotdeb.org jessie all
deb-src http://packages.dotdeb.org jessie all
for debian wheezy
deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all
for debian squeeze
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
now to install php 5.6 from there repo add this line on the same file too