pusatdata

Install ImageMagick

Mar 25th, 2015
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. http://tecadmin.net/install-imagemagick-on-linux/
  2.  
  3.  
  4.  
  5.  
  6. Step 1. Install Required Packages
  7.  
  8. First we need to install required packages in order to install ImageMagic and IMagick PHP extension.
  9.  
  10. For CentOS,RHEL Users:
  11. # yum install gcc php-devel php-pear
  12. For Ubuntu Users:
  13. $ sudo apt-get install gcc
  14. Step 2. Install ImageMagick
  15.  
  16. After installing required packages, let’s install ImageMagick using following command.
  17.  
  18. For CentOS,RHEL Users:
  19. # yum install ImageMagick ImageMagick-devel
  20. For Ubuntu Users:
  21. $ sudo apt-get install imagemagick
  22. Step 3. Install ImageMagick PHP Extension
  23.  
  24. At this point you have successfully installed ImageMagick package on your system. Now are are going to install ImageMagick php extension, So that we can use it through php code.
  25.  
  26. For CentOS,RHEL Users:
  27. # pecl install imagick
  28. # echo "extension=imagick.so" > /etc/php.d/imagick.ini
  29. For Ubuntu Users:
  30. $ sudo apt-get install php5-imagick
  31. Step 4. Restart Apache and Check Extension
  32.  
  33. After completing above steps you need to reload apache service to enable php exension using following command
  34.  
  35. CentOS,RHEL Users:
  36. # service httpd reload
  37.  
  38. Ubuntu Users:
  39. # service apache2 reload
  40.  
  41.  
  42. ==================
Advertisement
Add Comment
Please, Sign In to add comment