Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://tecadmin.net/install-imagemagick-on-linux/
- Step 1. Install Required Packages
- First we need to install required packages in order to install ImageMagic and IMagick PHP extension.
- For CentOS,RHEL Users:
- # yum install gcc php-devel php-pear
- For Ubuntu Users:
- $ sudo apt-get install gcc
- Step 2. Install ImageMagick
- After installing required packages, let’s install ImageMagick using following command.
- For CentOS,RHEL Users:
- # yum install ImageMagick ImageMagick-devel
- For Ubuntu Users:
- $ sudo apt-get install imagemagick
- Step 3. Install ImageMagick PHP Extension
- 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.
- For CentOS,RHEL Users:
- # pecl install imagick
- # echo "extension=imagick.so" > /etc/php.d/imagick.ini
- For Ubuntu Users:
- $ sudo apt-get install php5-imagick
- Step 4. Restart Apache and Check Extension
- After completing above steps you need to reload apache service to enable php exension using following command
- CentOS,RHEL Users:
- # service httpd reload
- Ubuntu Users:
- # service apache2 reload
- ==================
Advertisement
Add Comment
Please, Sign In to add comment