|
||||||||
|
||||||||
|
|
Công Cụ | Xếp Bài |
11-06-2018, 08:25 AM | #1 |
Guest
Trả Lời: n/a
|
Hướng dẫn cài đặt imagick trên PLesk
Hướng dẫn cài đặt imagick trên PLesk
How to install Imagick on a Plesk server. I ran into a problem where the Photo Album software “Piwigo” would not render watermarks on uploaded images. Seems the PHP extension “Imagick” is required. Use the following steps to install the required tools on your Plesk server as root user: ImageMagick: [root@server ~]# yum install ImageMagick [root@server ~]# yum install ImageMagick-devel PHP-imagick: [root@server ~]# yum install gcc (Please note: if it is already installed, then it will be updated if required) [root@server ~]# yum install make automake [root@server ~]# yum install php-pear [root@server ~]# yum install php-devel [root@server ~]# pecl install imagick Now you will have to add the imagick extension in your PHP condifuration file: [root@server ~]# cd /etc/php.d/ [root@server ~]# nano -w imagick.ini Then you put following line in that file: extension = “imagick.so” And save it with <CTRL> <O> After finishing this, you will have to restart Apache as follows: [root@server ~]# service httpd restart To verify your installation, you can use following command: To check ImageMagick: [root@server ~]# which convert Output should be: /usr/bin/convert For PHP-imagick: [root@server ~]# php -m | grep imagick Output should be: imagick Final check will be best with PHP command phpinfo(): Create a php-file in your website and put following in there: <? phpinfo(); ?> Then call this PHP file with your webbrowser and see if imagick is working. Tham khảo: https://www.uk-cheapest.co.uk/suppor...gick-on-plesk/ https://tedoc.nl/325/ |
|
|