In this article, I am going to demonstrate you how to upgrade php 5.5 to php 7. Also covering the topic of Operating system up gradation.
Basically, this article is based on a scenario where you have Lower OS version with the lower version of PHP.
In this case, what happened when you trying to upgrade PHP from lower version to higher version. You find the operating system would not be supporting the latest libraries. It will give the library conflict error or dependency errors.
To overcome all this kind of errors and to upgrade PHP to a higher version. You will have no other option than upgrading Operating System for smooth upgradations of PHP.
I have faced the same issue when one of our projects need the PHP 7. We had operating system Debian wheezy 6 and PHP 5.5. I was trying to install PHP 7 on Debian 6 but had lots of errors and waste lot’s of time on the simple issue.
After researching on the internet I had come to know that I have to upgrade the OS first then upgrade PHP version.
This article is to explain you the complete steps to upgrade OS and upgrade php. Before starting with upgradations process takes backup of your data.
Note: If you already have the latest operating system installed then skip the upgradations process of OS and directly follow below steps to upgrade php version.
First start with upgradations of Debian Wheezy 6 to Debian Jessie 8. Now one question comes to your mind why I upgrade os from wheezy to Jessie, right?
The reason behind changing os type from wheezy to Jessie is:
- Jessie is stable OS from a long time.
- Security bugs are fixed in Jessie.
- Repository availability is good for Jessie.