Chia Sẽ Kinh Nghiệm Về IT

Tìm Kiếm Với Google

Gởi Ðề Tài Mới  Gửi trả lời
Công Cụ Xếp Bài
Tuổi 11-06-2018, 08:25 AM   #1
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:

[root@server ~]# yum install ImageMagick
[root@server ~]# yum install ImageMagick-devel


[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 = “”

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:
  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời

Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt

Bây giờ là 04:56 AM. Giờ GMT +7

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