Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   Hướng dẫn sử dụng Plesk (http://quantrinet.com/forum/forumdisplay.php?f=195)
-   -   Hướng dẫn cài đặt imagick trên PLesk (http://quantrinet.com/forum/showthread.php?t=10153)

hoctinhoc 11-06-2018 08:25 AM

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/


Bây giờ là 08:37 PM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.