Archive for January, 2012

Upgrade Centos 5.5 / RHEL 5.5 ImageMagick from 6.2 to 6.7

We where running RHEL 5.5 and many of the new resize / background features where not available in image Magick 6.2. So we needed to upgraded.

convert -version
wget http://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-devel-6.7.4-7.x86_64.rpm
wget http://www.imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-6.7.4-7.x86_64.rpm
sudo yum install ImageMagick-devel-6.7.4-7.x86_64.rpm ImageMagick-6.7.4-7.x86_64.rpm
convert -version

That is all there is to it.

Then exclude ImageMagick from being updated

http://www.cyberciti.biz/faq/redhat-centos-linux-yum-update-exclude-packages/

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
exclude=ImageMagick* <--important line to add

References

Learned about yum installing rpm’s from here

https://github.com/Snorby/snorby/wiki/CentOS-5.5-64bit-by-RISC427

Change path for _www user on OSx for Apache

While trying to use wget and image magic on my mac via a call to apache,

calls to exec where failing when doing

exec($cmd = 'wget '. escapeshellarg($remote_url) .' -O '. escapeshellarg($local_path) .' 2>&1', $out, $status);

I fix this by changing the path for my _www user.

mate /System/Library/LaunchDaemons/org.apache.httpd.plist

and

<key>EnvironmentVariables</key>
<dict>
    <key>PATH</key>
    <string>/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string>
</dict>

Restarting apache i can no make calls to wget and git. Read the rest of this entry »