Installing and upgrading to PHP 5.2 on CentOS and RedHat Linux 5.3 x86_64

phpcentosThis Linux installing guide will walk you through installing PHP 5.2 (Supports the Kohana Framework) with APC, Memcached, ImageMagick and FFmpeg with AMR (3gp support) on CentOS and RHEL

note: This upgrade also repairs the error

Continue reading “Installing and upgrading to PHP 5.2 on CentOS and RedHat Linux 5.3 x86_64”

Installing FFmpeg on CentOS 5.x

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library.

Install the RPMForge i386 YUM Repository

# rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

Installing FFmpeg on CentOS

Optional: Installing FFmpeg-php

If you get the following error when running the command make to compile FFmpeg:

make: *** [ffmpeg_frame.lo] Error 1

In the version 0.6.0 of ffmpeg-php you will need to modify the file: ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32

Using Linux text editor, vi run the following commands:

Restart the compile and install FFmpeg-Php: