• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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