Thursday, 17 March 2016

Installing Imagick

yum install php-pear

yum install ImageMagick*


pear config-set temp_dir /tmp2


/opt/rh/php55/root/usr/bin/pecl install Imagick

pecl install Imagick


add /etc/php.ini

extension=imagick.so

php -i | grep Imagick -i


/opt/rh/php55/root/usr/bin/pecl install Imagick


vim /opt/rh/php55/root/etc/php.ini 

Monday, 7 March 2016

Upgrade Git version >= 1.7.10 on CentOS 6

Step 1: Install rpmforge Repository
Download and install rpmforge repository rpm using following commands.
RHEL/CentOS 6 - 64bit
# rpm -i 'http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm'
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

RHEL/CentOS 6 - 32bit
# rpm -i 'http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm'
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
Step 2: Edit rpmforge Yum Repository File
Edit your rpmforge repository file and change enabled=1 from 0 in [rpmforge-extras] section.
# vim /etc/yum.repos.d/rpmforge.repo
change the enabled=0 flag to enabled=1 and save it.
Step 3: Upgrade git Version
Upgrade git version on your system using following command and check the upgraded version.
# yum update git
Check git version
# git --version
git version 1.7.12.4
Step 4: Finally disable rpmforge-extras Repo
Edit and disable rpmforge-extras repository in rpmforge.repo and clean the yum data.
# yum clean all