I’m going to show you how to upgrade PHP 5.3 to PHP 5.4 on CentOS 6.7. This article is assuming that you are running the CentOS 6.7 default version of PHP 5.3.
All the credit goes to this blog post, I am just reposting here for my records, but for once, the guide worked perfect without needing changes and it wasn't long and "overexplained" which I don't like, really well done, thank you!
1. Confirm your version of PHP is the CentOS 6.7 default
Type in the following:
Should output similar to the following
Great, let’s move on.
2. Install and activate the REMI and EPEL RPM Repositories
Type in the following to download and install the required files:
Now to enable the REMI repository globally:
3. Update PHP from 5.3 to 5.4
Easy as pie, simply type in the following:
Once that’s done, we can verify:
And we should see something similar to the below:
Make sure PHP is working correctly:
You should see something similar to the following: