Upgrade/update php to latest 5.2.17 in Linux

In a CentOS 5.5 host, we were required to upgrade php to its latest release which is 5.2.17 when writing this article. Again there are various options to do such upgrade and trying to install with the package manager (yum) is just one (aka easy) of them. You can also trying downloading latest source code and compile yourself to have better control but for ease of use, I’m updating php with yum here.

Again, you won’t find the latest PHP binaries in default repositories available with CentOS and to resolve that we need to have CentAlt repo (or other such repos like epel).

Missing Dependency: libFLAC.so.4 is needed by package libsndfile

In mood to listen some music on my CentOS 5 system, I found that mplayer is not installed.
I’ve followed instructions from http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS
but stuck with error:

Error: Missing Dependency: libFLAC.so.4 is needed by package libsndfile

I have then forcebly removed following:

$ rpm -e --nodeps flac-1.1.2-27

and installed:

$ wget ftp://rpmfind.net/linux/dag/redhat/el3/en/i386/dag/RPMS/flac-1.1.0-4.rhel3.dag.i386.rpm
 $ rpm -ivh flac-1.1.0-4.rhel3.dag.i386.rpm

This resolved the error and system is now happily playing music.

You may also like to read:
* 5 steps to secure your Linux Server
* Ensuring secure access to production Linux Servers
* Bash script to backup essential log files in Linux
* Quickly change your ssh port from defualt 22 to something higher
* SSH port forwarding from remote to local machine
* Save root or user history to check later
* Install and configure denyhost to prevent brute force attacks