network

Feb 28, 10:04 AM

  1. 1 – download a centOS install disk from one of these:
  2. ftp://mirrors.easynews.com//linux/centos/6.3/isos/i386/CentOS-6.3-i386-LiveCD.iso
  3. ftp://mirrors.easynews.com//linux/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-LiveCD.iso

#
  1. 2 – download and install virtualbox:
  2. https://www.virtualbox.org/wiki/Downloads

#
  1. 3 – download and install magicdisk
  2. http://www.magiciso.com/download.htm

#
  1. 4 – using magickdisk, mound the CD from step one, run virtualdisk, and create a

# centOS installation

  1. http://forum.directadmin.com/showthread.php?t=44449
  2. we might need to remove the existing installation:

# yum remove ImageMagick # yum remove ImageMagick-devel

su root ;

yum —assumeyes update; ## start with everything up-2-date

yum —assumeyes install gcc gcc-c++ bzip2-devel freetype-devel libjpeg-devel ;
yum —assumeyes install libpng-devel libtiff-devel libungif-devel zlib-devel freetype-devel ;
yum —assumeyes install automake autoconf libtool ;

cd ~;
mkdir ./ImageMagick;
cd ./ImageMagick;
curl http://www.imagemagick.org/download/legacy/ImageMagick-6.8.2-10.tar.gz > ImageMagick-6.8.2-10.tar.gz ;
tar -x -z -f ImageMagick-6.8.2-10.tar.gz ;
cd ./ImageMagick-6.8.2-10 ;
./configure —prefix=/opt/imagemagick —enable-shared —with-perl —with-threads —with-magick_plus_plus ;
make && make check && make install ;

cd ~;
mkdir ./magicwand;
cd ./magicwand;
curl http://www.magickwand.org/download/php/MagickWandForPHP-1.0.9-2.tar.gz > MagickWandForPHP-1.0.9-2.tar.gz ;
tar -x -z -f MagickWandForPHP-1.0.9-2.tar.gz ;
cd ./MagickWandForPHP-1.0.9 ;
phpize ;
./configure —with-magickwand=/opt/imagemagick/ ;
make && make test && make install ;

cd ~
mkdir imagick ;
cd imagick ;
curl http://pecl.php.net/get/imagick-3.1.0RC2.tgz > imagick-3.1.0RC2.tgz ;
tar -z -x -f imagick-3.1.0RC2.tgz ;
cd ./imagick-3.1.0RC2 ;
ln -s /opt/imagemagick/include/ImageMagick/wand ;
ln -s /opt/imagemagick/include/ImageMagick/magick ;
phpize ;
./configure —with-imagick=/opt/imagemagick ;
make && make test && make install ;

cat >> /etc/php.ini <<END ;
extension=imagick.so
extension=magickwand.so
END

cat >> /etc/php.d/imagick.ini <<END ;
extension=imagick.so
extension=magickwand.so
END

cat >>/var/www/html/.htaccess <<END ;
php_flag log_errors on
php_value error_log /var/www/html/errors.log
php_flag display_errors on
php_value error_reporting 6143
END

yum —assumeyes install ImageMagick-devel ; ## not sure if we need this or not…

pecl install imagick <<END; ## needs a blank answer

END

chkconfig httpd on ;
/etc/init.d/httpd restart ;

echo ‘‘ > /var/www/html/phpinfo.php ;
echo ‘please try http://127.0.0.1/phpinfo.php in your browser!’;
echo ‘be sure to look for both the magick section AND the magicwand section near the bottom!!’;

echo ‘‘ > /var/www/html/testMagickWand.php ;
echo ‘also try http://127.0.0.1/testMagickWand.php in your browser!’;

  1. http://www.topwebhosts.org/wp/lamp/linux/how-to-install-php-imagick-on-centos-5/
  2. yum install php-pear gcc
  3. yum install ImageMagick ImageMagick-devel
  4. pecl install imagick
  5. echo “extension=imagick.so” >> /etc/php.d/imagick.ini
  6. echo “extension=imagick.so” >> /etc/php.ini
  7. service httpd restart ;
Mark Edwards

,

---

Commenting is closed for this article.

---