• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

ImageMagick configuration on multi Php

kude

New Pleskian
Hello, I installed another php version a while ago. Today I am trying to add ImageMagick to this php version but after launching the following command

Code:
./configure '--with-libdir=lib64' '--cache-file=../config.cache' '--prefix=/usr/local/php-5.6.5' '--with-config-file-path=/usr/local/php-5.6.5/etc' '--disable-debug' '--with-pic' '--disable-rpath' '--enable-fastcgi' '--with-bz2' '--with-curl' '--with-freetype-dir=/usr/local/php-5.6.5' '--with-png-dir=/usr/local/php-5.6.5' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr/local/php-5.6.5' '--with-openssl' '--with-pspell' '--with-pcre-regex' '--with-zlib' '--enable-exif' '--enable-ftp' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--with-unixODBC=/usr' '--enable-shmop' '--enable-calendar' '--without-sqlite3' '--with-libxml-dir=/usr/local/php-5.6.5' '--enable-pcntl' '--enable-mbstring' '--enable-mbregex' '--with-gd' '--enable-bcmath' '--with-xmlrpc' '--with-mysql=/usr' '--with-mysqli' '--with-snmp' '--enable-soap' '--with-xsl' '--enable-xmlreader' '--enable-xmlwriter' '--enable-pdo' '--with-pdo-mysql' '--with-pdo-pgsql' '--with-pear=/usr/local/php-5.6.5/pear' '--with-mcrypt' '--enable-intl' '--enable-imagick'  '--without-pdo-sqlite' '--with-config-file-scan-dir=/usr/local/php-5.6.5/php.d'

it sends me back this error configure:
Code:
WARNING: unrecognized options: --enable-fastcgi, --enable-imagick
Could you help me, please?
 
Hi kude,

please have a look at the warning:
WARNING: unrecognized options: --enable-fastcgi, --enable-imagick

Please read the manual, when compiling PHP:

http://php.net/manual/en/configure.about.php
...
--enable-fastcgi
If this is enabled, the CGI module will be built with support for FastCGI also.

As of PHP 5.3.0 this argument no longer exists and is enabled by --enable-cgi instead.


For imagick, it is easier to use PECL:

pear config-set preferred_state beta
pecl install imagick

If you don't have "PEAR" and "PECL" installed, please install it first on your system. with for example: "apt-get install php-pear php5-dev" ( or equivalent commands instead of "apt-get" depending on your system )
 
Back
Top